/*
#=dense tile
@=player
.=blank space or something
@
##################
#................#
#................#
##################
*/
And the tile under the player gets destroyed, like so:
/*
#=dense tile
@=player
.=blank space or something
*=destroyed tile, not dense
x=the point they should fall to
@
######*###########
#................#
#.....x..........#
##################
*/
What would be the best away of having gravity affect the player if the tile below them suddenly gets destroyed and having them drop down to [x]?
I thought of running gravity in a while() loop and having it run every tick, but that's unnecessary and quite stupid. I honestly can't come up with a way to do for the life of me.
I already have the gravity and such made, I'm just thinking of a way to do this without a loop.
[edit] Heh, figured it out. Boy, I'm stupid!