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

#1 2013-03-06 10:45:36

VLRUS
New Scratcher
Registered: 2013-03-06
Posts: 2

How to jump from plateform to plateform?

Hi, I'm a beginner to scratch, and I was just wondering, is it possible to someone make it so your Sprite jumps from Platform to platform?

Offline

 

#2 2013-03-06 12:44:05

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How to jump from plateform to plateform?

Yes, it is.  smile

Could you give more details though?

Are you asking basically how to make a jump action? And if so, would you want to use gravity or no?

Regards,

CAA14

Offline

 

#3 2013-03-07 10:21:19

VLRUS
New Scratcher
Registered: 2013-03-06
Posts: 2

Re: How to jump from plateform to plateform?

Yes, with gravity, trying to make the sprite jump up and land on the platform.

Thanks

Offline

 

#4 2013-03-07 10:50:15

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How to jump from plateform to plateform?

Okay, I will get back to you on this later today if I can.

Regards,

CAA14

Offline

 

#5 2013-03-07 12:01:39

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How to jump from plateform to plateform?

Here it is, this should work:

For gravity, put in the player's scripts:

when gf clicked
forever
change y by (-10)
end
Then, to stop when touching  a platform, you can do it several ways, but using color, you need to outline the top of your platforms in whatever color you use in the following color block:

(Also put this in the player's scripts)
when gf clicked
forever
if <touching color? [#0000000>
change y by (10)
end
end

Then, to jump, put this in the players scripts:

when gf clicked
forever
if <key [space v] pressed?>
repeat (100)
change y by (20)
end
end
end
If you have any problems with these or these aren't what you're looking for, then please tell me.

Hope that helps,

CAA14

Offline

 

#6 2013-03-07 12:18:35

Nomolos
Scratcher
Registered: 2011-07-29
Posts: 1000+

Re: How to jump from plateform to plateform?

Hey VLRUS! Welcome to Scratch! You want a sprite that jumps from platform to platform? This should help. Just press the up arrow to jump and use the left and right arrows to land on a platform!

Last edited by Nomolos (2013-03-07 12:19:13)


Goodbye 1.4. I'll always remember you and treasure your awesomeness in my heart.
RIP 1.4: 2007-2013 *Sniffles* *Sobs* *Bursts into tears*

Offline

 

Board footer