This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-03-17 16:38:06

minihydro
Scratcher
Registered: 2011-03-16
Posts: 50

When creating a scartch game

When you make a scartch character i dont know how to make it jump up i know how to make it move left and right,

but how make it jump up.

minihydro,

Offline

 

#2 2011-03-17 16:42:50

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: When creating a scartch game

Try this simple script. If you want something more complicated, I'd be happy to give it to you.

when Green Flag Clicked
forever
    if <key [up arrow] pressed?>
       repeat (10) times
            change y by 1
        repeat (10) times
            change y by -1

If you want to adjust the speed of the jump and fall, just change the value in the "repeat" block. If you want to change the height of the jump and fall, just adjust the "change y" block.

I hope that helped!  smile  If you want more, just ask.

Offline

 

Board footer