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

#1 2012-06-04 16:34:58

fetzer
Scratcher
Registered: 2009-06-11
Posts: 70

Im not getting it...

Im trying to make my guy stand on another sprite. (basicly not just fall through it) but how do i do this?!

Offline

 

#2 2012-06-04 16:40:09

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Im not getting it...

when gf clicked
forever
if <touching [sprite whatever v]?>
change y by [1]
end
This should help.  smile


Why are the secret organizations getting all the attention?  mad

Offline

 

#3 2012-06-04 16:49:29

fetzer
Scratcher
Registered: 2009-06-11
Posts: 70

Re: Im not getting it...

huh, then do i need to make the spikes and stuff differnt sprites?

Or maybe i can colorcode the spikes,
But also, if its touching That Sprite, wouldn't he move without someone pressing ->

Offline

 

#4 2012-06-04 17:00:16

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Im not getting it...

Yea he would.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#5 2012-06-04 17:47:08

fetzer
Scratcher
Registered: 2009-06-11
Posts: 70

Re: Im not getting it...

OHHHH i just figured out what you mean, i changed it to .1  big_smile

sooo how do i make it where by gravity he auto falls?

Offline

 

#6 2012-06-04 23:20:46

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Im not getting it...

If you want him to increase velocity while falling, you need a variable. Other wise, use this script.

when gf clicked
forever
if <touching [sprite whatever v]?>
change y by [1]
else <not <touching [sprite whatever v]?>>
change y by [-1]
end
I fixed it to include both scripts.

Last edited by sonicfan12p (2012-06-05 11:11:56)


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer