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

#1 2012-05-30 17:47:46

ZombieHappines
Scratcher
Registered: 2012-01-19
Posts: 100+

Sky tower defense

i need a script that moves and air balloon forward well moving it up and down as if it filling and losing air


http://i47.tinypic.com/10wr3bq.jpg
http://i50.tinypic.com/2w7onpy.png

Offline

 

#2 2012-05-30 20:43:06

ScratchToonie
New Scratcher
Registered: 2012-05-13
Posts: 12

Re: Sky tower defense

This might help...

(Air Balloon]
If you choose it to move forward...

when flag clicked
wait [0.1] secs
forever
change x by [1]
if <touching [stop v]
stop script
end
end

If you choose it going up and down

when flag clicked
forever
change y by [1]
wait [Your seconds] secs
change y by [-1]
wait [Your seconds same as the one you did] secs
end

Offline

 

#3 2012-05-30 22:37:00

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Sky tower defense

ScratchToonie wrote:

This might help...

(Air Balloon]
If you choose it to move forward...

when flag clicked
wait [0.1] secs
forever
change x by [1]
if <touching [stop v]?>
stop script
end
end
If you choose it going up and down

when flag clicked
forever
change y by [1]
wait [Your seconds] secs
change y by [-1]
wait [Your seconds same as the one you did] secs
end

Fixed your scripts.

Last edited by amcerbu (2012-05-30 22:37:20)

Offline

 

Board footer