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

#1 2011-06-25 01:35:05

nicknicknick2
New Scratcher
Registered: 2011-06-25
Posts: 2

y coordinate help

so im making a game, i have made the character shoot etc, but i made it so that when y>100, switch to costume 4. the idea is that when you move him above the ground, he switches to a costume with a jet pack. all help greatly appreciated.

thanks,

NIck

Offline

 

#2 2011-06-25 01:49:50

nicknicknick2
New Scratcher
Registered: 2011-06-25
Posts: 2

Re: y coordinate help

woops sorry i forgot to say that when the character does pass past 100 (y) it doesnt do it automatically, i have t click the block

Offline

 

#3 2011-06-25 08:39:57

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: y coordinate help

Did you put a "When Green Flag Pressed" at the top and the script in a "forever" block?  If there is no "When Green Flag Pressed" it won't start, and if there's no "forever" block, it will only check if y>100 the first frame, then stop checking.

In the end it should look like this:
http://i53.tinypic.com/2r4r8dz.gif


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer