supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Invincibility frames after using a door/teleport

Open Rusty-Box opened this issue 2 years ago • 4 comments

It is always quite annoying and unfair if you enter a door but an enemy is right in front of the exit door, getting Tux hurt. You could build a level to prevent that from ever happening, however, i see this as more trouble some and believe an even better solution would be to grant Tux a short moment of "invincibility" so that players have time to move away from an enemy should they be right in front of the door.

Rusty-Box avatar Sep 27 '23 14:09 Rusty-Box

Even with invincibility frames, this is still a design issue. If invincibility is given, wouldn't that only cover up the design issue, instead of point towards fixing it?

Vankata453 avatar Oct 05 '23 10:10 Vankata453

Even with invincibility frames, this is still a design issue. If invincibility is given, wouldn't that only cover up the design issue, instead of point towards fixing it?

I wouldn’t say that. Yes you can attempt avoiding enemy presence near doors but in the process you limit the areas and ways you can place doors. Keep in mind, enemies that are not smart variants like Vicious Ivy can sometimes end up in all sorts of places or a snail you kicked near a door intentionally or by accident. To avoid all these cases most doors must be excluded from all places with even the slightest potential enemy presence. Invincible frames would give you a greater wiggle room. Levels should still attempt to prevent enemy groups near doors but should an enemy still slip in on or offscreen it would make much less frustrating

Rusty-Box avatar Oct 05 '23 11:10 Rusty-Box

Fair, I see what you mean. Just wonder how many frames that invincibility should take up.

Vankata453 avatar Oct 05 '23 11:10 Vankata453

Not many. It should be just enough to get away from the spawn the door teleports you. A second should be just fine, I think. Not sure how many Tux gets from getting hurt but maybe try the same amount for teleporting?

Rusty-Box avatar Oct 05 '23 11:10 Rusty-Box