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

#1 2008-06-20 16:35:48

JUSTJAMES
Scratcher
Registered: 2008-06-20
Posts: 38

Important

Someone please help me! I Am making a platform game but how do I make it that my character can stand on the platforms, which are sprites? Also, what does it do when you put a (color) touching (color)? PLease help me!  sad

Offline

 

#2 2008-06-20 16:46:48

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Important

gravity:<when green flag clicked>
             <forever>
             <if> <touching color[ the color the sprite is standing on
             <change y by(0
              <end>
              <if>   <not> <touching color[ same color ]>>
              <change y by( -5
               <end>
               <end>

   it works like gravity

Last edited by keroro645 (2008-06-20 16:49:17)

Offline

 

#3 2008-06-20 16:52:23

JUSTJAMES
Scratcher
Registered: 2008-06-20
Posts: 38

Re: Important

Thanks!

Offline

 

#4 2008-06-20 16:59:53

JUSTJAMES
Scratcher
Registered: 2008-06-20
Posts: 38

Re: Important

It didn't work...

Offline

 

#5 2008-06-20 17:23:37

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Important

put that in the character.

Offline

 

#6 2008-06-20 19:22:41

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Important

The Color Touching Color block will return a true value if the first color exists in the costume of the sprite that is running the block AND that color is in contact with the second color (either in the background, or on another sprite).  It is very useful for testing to see if part of your sprite is touching a specific color.

As for the standing on platforms...the script keroro645 supplied you looks like it should work.  If you are still having trouble with it, Share the project to the web and update this thread with a link to the project and I'm sure you will get the help you are looking for.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#7 2008-06-21 01:08:27

yummyrocks
Scratcher
Registered: 2008-06-17
Posts: 4

Re: Important

It Means (If Color <> is touching color<> Do This, so basically if one certain color is touching another certain color this will happen.

Offline

 

#8 2008-06-21 13:29:58

JUSTJAMES
Scratcher
Registered: 2008-06-20
Posts: 38

Re: Important

I see, i put it on the platform.
Thanks again!

Offline

 

#9 2008-06-21 13:44:56

JUSTJAMES
Scratcher
Registered: 2008-06-20
Posts: 38

Re: Important

Um... what do i do with the sprite to make it jump?
I mean so it doesn't go to a fixed place but top wherever the gravity was set
so if my stickman jumped from a lower platform, he would get onto the higher platform?

Offline

 

Board footer