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

#1 2008-11-27 15:42:18

Anneli97
Scratcher
Registered: 2008-11-27
Posts: 2

Plz, someone help me!

I'm making a game.. I want my elephant to go up to a, like a board or something.. I want it to JUMP up to it, but I figured out how to jump. But how should I do so that the elephant stays on the board instead of going down again..?


Sorry if my English is so bad.. I'm 11 years and from Sweden  tongue

Offline

 

#2 2008-11-27 16:16:19

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Plz, someone help me!

In your script that causes the elephant to fall, you need something that checks to see if it is standing on the platform and only runs the falling script if it isn't.

The simplest method would be to check "if touching colour" (platform), but that can lead to characters not falling when their head is stuck through the bottom of a platform.

Slightly more complicated is to make the elephants feet a different colour and then you can check

"if colour (feet) touching colour (platform)", which is what I used in my game "Gobo and the flood"

***

There are more complicated methods, but that should get you started

Last edited by Mayhem (2008-11-27 16:18:43)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer