This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

Far background tiles can absorb projectiles?

Did you encounter a problem, exploit, glitch or bug while playing the game or running the dedicated server software? Tell us about it here.
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Far background tiles can absorb projectiles?

Post by NearHuscarl » Sun Apr 12, 2020 7:31 pm

Far background tiles are not supposed to absorb projectiles, but the value from the collision filter contradicts the reality.

Code: Select all

public void OnStartup()
{
	var fb = Game.CreateObject("FarBgShadow00A");
	var cf = fb.GetCollisionFilter();
	Game.WriteToConsole(cf.AbsorbProjectile, cf.ProjectileHit); // true false
}
0 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

Post by Gurt » Tue Apr 14, 2020 5:16 pm

AbsorbProjectile serves no purpose while ProjectileHit is false. The default value for AbsorbProjectile is true for most objects in the game no matter what ProjectileHit says.
0 x
Gurt

NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Post by NearHuscarl » Tue Apr 14, 2020 7:45 pm

Yeah I know. The value is wrong still. For your context, I was creating a const value for CollisionFilter which disables collision to all objects, just want to reference the value from the farbg to make sure I was right.
0 x
Image

Locked