I am trying to stop an object with platform jumping from continuing accelerating after being hit.
How do I cancel/stop platform jumping before deceleration ?
Do you mean stop from moving?
If so, you can make the object time scale to 0.
Do you mean stop from moving? If so, you can make the object time scale to 0.
No ... I want to stop the object from jumping and immediately fall down.
Change its fall speed for a short lapse of time perhaps?
You can use instance variable for that.
When hit set variable to true.
variable true - set max fall speed to xxx.
Why not just set the platform X & Y vectors to 0.
Gravity will take over and your character will just fall to the ground. No need for a variable or timers. Or am I missing something?
Develop games in your browser. Powerful, performant & highly capable.
Why not just set the platform X & Y vectors to 0. Gravity will take over and your character will just fall to the ground. No need for a variable or timers. Or am I missing something?
Thanks, this is what I needed