oyvind-stromsvik / spelunky

31 stars 4 forks source link

If we fall down next to a block and try to push it we're unable to #39

Closed oyvind-stromsvik closed 2 years ago

oyvind-stromsvik commented 2 years ago

This is because we entered the collision with the block while in the air state and we need to disengage and engage with the block again while on the ground to be able to push it.

Maybe the events need to be global for the player and not per state? Or does it make more sense to add a OnCollisionStay event for this purpose rather than to use Enter and Exit?