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

#1 2008-05-22 15:41:44

horselover
Scratcher
Registered: 2008-01-26
Posts: 96

How do you make a character stand on a platform?

If you were making a platform game the how would you make the character stand on the platform and be able to jump then go onto the next platform?

Btw I know how to make the charcter jump so you don't need to explain that.


Scratch is so cool!

Offline

 

#2 2008-05-22 15:43:32

horselover
Scratcher
Registered: 2008-01-26
Posts: 96

Re: How do you make a character stand on a platform?

Oops I meant to put it under all about scratch.


Scratch is so cool!

Offline

 

#3 2008-05-23 19:48:49

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: How do you make a character stand on a platform?

To make that you would have the y velocity variable then whenever the sprite is touching a platform set that variable to 0 for further details go to Archmage's sprite movement done right


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#4 2008-05-23 20:33:13

rockie
Scratcher
Registered: 2007-11-18
Posts: 100+

Re: How do you make a character stand on a platform?

<forever if><touching[ platform
<change y by( 1


<forever if>< <not> <touching[ platform
<change y by( -1

Last edited by rockie (2008-05-23 20:33:56)


No signature currently stored in profile.

Offline

 

#5 2008-05-24 09:41:07

maki
Scratcher
Registered: 2008-01-21
Posts: 100+

Re: How do you make a character stand on a platform?

Yeah, it's not telling them what to do on a platform, it's what to do if they're NOT on a platform!


Creepers are exceptionally volatile.

Offline

 

#6 2008-12-29 12:43:33

horselover
Scratcher
Registered: 2008-01-26
Posts: 96

Re: How do you make a character stand on a platform?

ok thanks all of you for your answers


Scratch is so cool!

Offline

 

#7 2008-12-29 12:49:26

techy
Scratcher
Registered: 2008-12-17
Posts: 100+

Re: How do you make a character stand on a platform?

<when green flag clicked>
   <forever>
        <if><touching[ platform ]>
              <set y to( platforms y)>

Last edited by techy (2008-12-29 12:50:17)


Guppy Inc. making projects famous!
http://web-geeks.com/techy.gifhttp://web-geeks.com/grid.gifhttp://web-geeks.com/challenge.gif

Offline

 

Board footer