I'm trying to make one of the characters in my game to jump. I've tried other peoples skripts, but it hasn't seemed to work. Any suggestions? Please check out the game on my page.
Greatly appreciated (:
Offline
When Green Flag Clicked:
forver
if (up arrow) and (touching color "color")
Repeat(10)
Change Y by (4)
repeat until (touching color "color")
Change y by -4
That was a basic Jump and Gravity script here's a smoother one using variables:
When Green Flag Clicked:
Set VarY to (0)
forver
if (up arrow) and (touching color "color")
Repeat(7)
Change VarY by (2)
repeat until (touching color "color")
Change VarY by (-0.5)
Set VarY to (0)
When Green Flag Clicked:
Forever change Y by VarY
I hope that helped, please reply if anything's unclear or if the code doesn't work.

Offline
I tried doing it, but there's some confusion. Is there anyway for you to actually show me with a picture?
Offline