Heppell08 Posted February 28, 2014 Report Share Posted February 28, 2014 In my game i have it very physics based. I flip the gravity so the player is then walking on the underside of the tilemap. My problem is this: I want the jump function to work the same as normal with the onFloor() but it doesnt work when i flip the gravity around and walk on the underside. I have a timer stopping it from being spammed but its also not worth increasing that timer too a high number because some jumps are quicker than others and would require the player to physically wait before the timer would reset and allow jumping. Is there a way to use touching.up or something similar? Thanks Link to comment Share on other sites More sharing options...
Heppell08 Posted February 28, 2014 Author Report Share Posted February 28, 2014 update: Yeah i fixed it with a bit of console logging and added this to my reverse jump function:player.body.blocked.up === true frenetikm 1 Link to comment Share on other sites More sharing options...
Recommended Posts