Problem with jump
agueis
Member Posts: 420
Hello I have a problem when the actor hero is jumping, if i jump with space and the space is always down the actor hero bounce with the ground, i want that the actor hero when touch the ground stop of bounce when the space is down, how can i do it?, thanks
Comments
Make boolean attribute 'jump_done'
When collides with ground actor & space is down & jump_done is false -> change attribute jump_done to true
When space is not pressed change jump_done to false
An easier way, if I'm reading this right. Just go into the actor and ground actor and scroll down to the I think Physics and locate where it says "Bounciness" and change it to 0 for both actors.
But if you have rules like 'when space is pressed & actor collides with ground -> jump' and you keep pressing space down, it jumps again when actor collides with ground actor.
Hello opa thank you for you´re help it works for me.