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

#1 2008-02-04 18:29:45

dearkids
Scratcher
Registered: 2008-01-15
Posts: 97

How do I make a sprite able to stand on something?

Please help me! Oops, i meant to put this is FAQ. Please tell me how!


Final Fantasy VII's best characters are Cloud, Nanaki, and Cid. Don't deny it.

Offline

 

#2 2008-02-04 18:40:15

Bluekingice
Scratcher
Registered: 2007-12-25
Posts: 86

Re: How do I make a sprite able to stand on something?

[blocks]<forever>
<if><<  <not> <touching color[
<change y by( -2[/blocks]

or any other negative number

Last edited by Bluekingice (2008-02-04 18:41:24)


http://a2.cdn.gaiaonline.com/gaia/members/ava/28/c1/15af04d1c3c128_flip.png?
My GAIA Online avatar.

Offline

 

#3 2008-02-04 22:31:09

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: How do I make a sprite able to stand on something?

When you say "stand on", I would guess that you also have an interest in what would happen if there wasn't something to stand on (otherwise you could just set the y-position of the sprite and leave it at that "level").

This is a common question and I've been collecting examples that show how to move/jump/stand/bounce in a demo gallery.  Like most things in programming, there are lots of different ways to approach the problem, there isn't really a right or wrong way.  What's important is to have the sprite act the way you want.  Therefore, I've gathered examples from different authors into the gallery:

http://scratch.mit.edu/galleries/view/9206

Hope this helps.

-MrEd

Offline

 

#4 2008-02-05 17:22:16

sparkygirl
Scratcher
Registered: 2008-01-17
Posts: 500+

Re: How do I make a sprite able to stand on something?

cool idea, i needed to learn that to!!! oh, but, bluekingrice does NOT rule!!!! k, got that!!! he has to much ego for his own good  ;p


My theme: http://www.scratch.mit.edu/ext/youtube/?v=kgqC24I_7Zc
Everything You Wanted by Hawk Nelson

Offline

 

#5 2008-02-06 00:29:27

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: How do I make a sprite able to stand on something?

sparkygirl wrote:

oh, but, bluekingrice does NOT rule!!!! k, got that!!! he has to much ego for his own good  ;p

sparkygirl, please remember that the Terms of Use for this site call for people to be respectful.  This is not the place for insults of any kind.

Offline

 

#6 2008-02-06 17:06:16

sparkygirl
Scratcher
Registered: 2008-01-17
Posts: 500+

Re: How do I make a sprite able to stand on something?

sorry/....


My theme: http://www.scratch.mit.edu/ext/youtube/?v=kgqC24I_7Zc
Everything You Wanted by Hawk Nelson

Offline

 

#7 2008-02-07 01:17:26

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

Re: How do I make a sprite able to stand on something?

Is "Jetpack Girl" still included with scrath?  That has a basic example of gravity and standing on platforms.


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

 

#8 2008-02-12 11:23:51

solid891
Scratcher
Registered: 2008-02-12
Posts: 1

Re: How do I make a sprite able to stand on something?

http://scratch.mit.edu/forums/viewtopic.php?pid=19730#req_message
seteffectto_

Offline

 

Board footer