76
Resolved Questions / Re: Can A Continuous Collision Trigger An Event Only Once?[SOLVED]
« on: January 28, 2014, 08:11:48 pm »
Thanks Photon. I'm working on a player that will have a number of interrelated behaviours: Walk, Jump(Fall), and a Jetpack. I have the Jetpack set up so that it is only active after a Jump and the Jump set up so that it is only active after the jump/up thruster control is released. Works OK this far. The one problem however is that if the L/R thruster controls are down as the player touches down, it will immediately shoot L/R along the ground as a Walk, and if I deactivate the Walk, then as a Jetpack movement. The Jetpack animation doesn't play, but I believe the movement isn't disabled until I release the L/R control. I basically have very slippery landings. Same thing happens when the actor is hit from above, it'll shoot along the top of the tiles if I touch. Unfortunately, if I can get this to work, I'm pretty sure I'll have to give up continuous, fluid jumps and a continuing walk from an X-moving fall, but I'd like to make precision landings part of the game play. Hope that made sense.
I guess I never actually answered your question: I'd like the player to freeze upon collision until a subsequent control input. Or at the least, freeze for 1-2 seconds before moving again.
I guess I never actually answered your question: I'd like the player to freeze upon collision until a subsequent control input. Or at the least, freeze for 1-2 seconds before moving again.