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

#1 2010-12-18 17:20:51

TGKookie
Scratcher
Registered: 2010-12-03
Posts: 29

Jumping

Attention all scratchers!!! I need to know how you can jump and move while in the air I'm making a game and that needs fixing. HELP!

Offline

 

#2 2010-12-18 17:55:53

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Jumping

The easiest way is to separate your jumping and movement scripts into two different scripts that run at the same time. Like this:

http://www.freeimagehosting.net/uploads/863422984e.gif

Last edited by hmnwilson (2010-12-18 17:57:06)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-12-18 18:55:33

TGKookie
Scratcher
Registered: 2010-12-03
Posts: 29

Re: Jumping

What if you are not touching the olatform and you want him to fall? But not if he is Jumping.

Offline

 

#4 2010-12-18 19:06:44

TGKookie
Scratcher
Registered: 2010-12-03
Posts: 29

Re: Jumping

Oops mean platform

Offline

 

#5 2010-12-18 22:23:45

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Jumping

http://i52.tinypic.com/j9r14x.gif

This takes each boolean condition frame for frame, no repeat blocks beside the forever, it should run smoothly and simultaneously with the horizontal movement in one script.  Also, if you walk off a platform, you will still fall.

Last edited by Kileymeister (2010-12-18 22:24:58)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#6 2010-12-19 17:13:02

icecube46
Scratcher
Registered: 2010-10-23
Posts: 13

Re: Jumping

hmnwilson wrote:

The easiest way is to separate your jumping and movement scripts into two different scripts that run at the same time. Like this:

http://www.freeimagehosting.net/uploads/863422984e.gif

i recomend
changing the  <repeat until <touching[ platform}] with a repeat until touching colorblank

Offline

 

#7 2010-12-20 01:53:55

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Jumping

Seems like your problem is solved. I think scratch should have video tutorials for making this kind of thing. Then, people can just link to a vid tutorial without having to build and screenshot the script.


Hai.

Offline

 

#8 2010-12-23 11:10:38

TGKookie
Scratcher
Registered: 2010-12-03
Posts: 29

Re: Jumping

Actually i'm making a game without air platforms so how do you just jump while moving? (Without using the platform?)

Offline

 

#9 2010-12-23 13:04:30

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Jumping

TGKookie wrote:

Actually i'm making a game without air platforms so how do you just jump while moving? (Without using the platform?)

Check my script.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer