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

#1 2012-09-23 04:47:22

jdp1594
New Scratcher
Registered: 2012-09-23
Posts: 2

Platform basics help!

I know how to make the sprite jump and land on a object/platform. But how do I make it so it don't go through the object it lands on.

I want it to be able to land on a black box however not be able to go through the box. So any ideas thanks!  smile

Offline

 

#2 2012-09-23 04:55:10

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Platform basics help!


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-09-23 05:09:52

jdp1594
New Scratcher
Registered: 2012-09-23
Posts: 2

Re: Platform basics help!

But that looks like its all about jumping and i already know how to do that, i just want to know how to stop it going through something is can land on, like a black box?? thanks anyway!

Offline

 

#4 2012-09-23 05:28:04

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Platform basics help!

Take a look at this.


http://i50.tinypic.com/312u714.jpg

Offline

 

#5 2012-09-26 00:57:18

destructo-serpent
Scratcher
Registered: 2012-07-25
Posts: 1000+

Re: Platform basics help!

jdp1594 wrote:

But that looks like its all about jumping and i already know how to do that, i just want to know how to stop it going through something is can land on, like a black box?? thanks anyway!

when [up arrow v] key pressed
repeat [number]
change y by [10]
end
repeat until <touching color [ color of ground]?>
change y by [-10]

Offline

 

#6 2012-09-26 16:32:35

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Platform basics help!

This forum post gives an example of a platformer script and walks through how the code does what it does  smile


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer