Hi everyone, Matt here,
I’ve just implemented a jump mechanic for my character, when the button is pressed he jumps upward.
The premise i used was taught by Peach in Techority:
**Set up a variable called, onFloor = true
when collision with the ground, do onFloor = true
When they hit a jump button, do onFloor = false.**
It works good, my character will go into a jump animation when jump is pressed.
Ideally though when he falls off a leadge without jumping he should still go into a fall animation (or later half of jump animation)
I’m having a hard time thinking of how i would track falling.
It seems i would need to track the characters .y Position?
And check if it’s getting lower (i.e: falling)
Unless there’s a way to setup a y.velocity tracker so when he’s standing his y.velocity is 0, when falling, as gravity pulls him his y.velorcity increases and if y.velocity > 0 then …
Any ideas on the subject?
I’m not sure the y.velocity idea is implementable?
Thanks
Matt.
[import]uid: 91798 topic_id: 18601 reply_id: 318601[/import]