Jumping issue...
I have tried everything posted on the forum, but doesnt work for some reason,
How can i make my actor jump. I have a button and the restitution of the ground and the actor is 0.
Thanks.
How can i make my actor jump. I have a button and the restitution of the ground and the actor is 0.
Thanks.
Comments
You will need an integer if you want to control the amount of jumps.
Darren.
make a attirubte called jump and set it to 0
in you jump button have a rule when touch is pressed change attribute jump to 1, then in the otherwise section of that rule put a change attribute behavior changing attribute jump to 0
then in whatver actor you want to jump have a rule when attirbute jump=1 change attribute self motion linear velocity Y to 300
make sure u have sme accelerate down or gravity