ID:271534
 
Let's say I have something set up like this:

/*
#=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!
How about trying a for() check for the mobs above the deleted tile, when it gets deleted?