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.
Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Overlapped pierceable tiles keep colliding with projectiles every frame
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
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.
1 x
- Creeper
- Superfighter
- Posts: 172
- Joined: Wed Mar 23, 2016 9:44 am
- Title: okokok is real #1
- SFD Account: Krypa
- SFD Alias: Krypa
- Started SFD: Pre-Alpha 1.1.6
- Location: US
- Gender:
- Age: 21
- Contact:
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.JakSparro98 wrote: ↑Sun Apr 22, 2018 5:39 pmIn 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.
Actualy, I don't see a problem with this "bug", I don't see it as a gamebreaking bug. problem solved
0 x
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
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.
Fixed for the release.
4 x
Gurt