I want to know how to make the bottomless pits from traditional platformers without making kill tiles at the bottom of the tilemap. Any suggestions?
1 Like
Would this work?
If sprite y is less than 16, game over!
you could extend the tilemap and put a tile that is made for deaths
Im specifically trying to avoid that…
Heres the code.
In my opinion the better way would absolutely be to utilise invisible tiles on your tilemap (out of curiosity, why do you want to avoid doing this with the tilemap?).
Otherwise you could track the y position, although this isn’t ideal as it would be a pain to implement multiple ‘fall heights’.
But that would look like this:
Thanks! And to answer your question, i want the character to die when it hits the absolute bottom of the screen. If i use death tiles, they’ll die a tile above where i want them to, which is a lot more unforgiving.