Page 1 of 1
Overlapped pierceable tiles keep colliding with projectiles every frame
Posted: Sun Apr 22, 2018 3:37 pm
by JakSparro98
Normally when you shoot on pierceable tiles like platforms and other small object they will collide only once when a projectile enters inside the tile, if two platforms are placed in the same position it will result in a new collision every frame, untill the projectile leaves the tile.

I assume this happens because the projectile is storing only one collided tile at a time, this generates a loop because the projectile is alternating the two tiles every frame.
Re: Overlapped pierceable tiles keep colliding with projectiles every frame
Posted: Sun Apr 22, 2018 4:40 pm
by Creeper
This isn't a bug, it's just you overlapping objects, a thing you shouldn't be doing.
Re: Overlapped pierceable tiles keep colliding with projectiles every frame
Posted: Sun Apr 22, 2018 5:39 pm
by JakSparro98
Creeper wrote: ↑Sun Apr 22, 2018 4:40 pm
This isn't a bug, it's just you overlapping objects, a thing you shouldn't be doing.
In fact I never do, I discovered this in "Facility" map, the walkable lamps to the left are affected by this issue since they don't collide with the player and an invisible platform is used to make the illusion that you can jump on those lamps.
Re: Overlapped pierceable tiles keep colliding with projectiles every frame
Posted: Sun Apr 22, 2018 7:29 pm
by Creeper
JakSparro98 wrote: ↑Sun Apr 22, 2018 5:39 pm
In fact I never do, I discovered this in "Facility" map, the walkable lamps to the left are affected by this issue since they don't collide with the player and an invisible platform is used to make the illusion that you can jump on those lamps.
There is a solution to it. Just add an altercollision tile, and enable the "disable projectile hit". It's the dev's fault, they didnt think about it.
Actualy, I don't see a problem with this "bug", I don't see it as a gamebreaking bug.
problem solved
Re: Overlapped pierceable tiles keep colliding with projectiles every frame
Posted: Sun Apr 22, 2018 7:45 pm
by Gurt
It's not a gamebreaking bug but something we have overlooked. While you shouldn't stack tiles of the same type you might want to do that at some situations. Projectiles only remember the last hit tile to avoid hitting it again. Tweaking the projectiles to support up to 3 stacked overlapping tiles (3 is an arbitrary number here to avoid wasting resources) which should be OK.
Fixed for the release.