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

#1 2012-05-30 14:47:53

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

Costume change

i am making a cookie eating game and i need a script that changes the cookies costume one at a time when the mouth opens and closes


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

Offline

 

#2 2012-05-30 15:12:41

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

Re: Costume change

For the person eating the cookie,

when gf clicked
forever
switch to costume [mouth open v]
wait [1] secs
switch to costume [mouth closed v]
broadcast [bite v]
wait [1] secs
For the cookie,
When I receive [bite v]
next costume
This should work.  smile

Last edited by sonicfan12p (2012-05-30 15:13:01)


Why are the secret organizations getting all the attention?  mad

Offline

 

#3 2012-05-30 15:13:52

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

Re: Costume change

Thanks Sonicfan12 you are a big help


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

Offline

 

#4 2012-05-30 16:20:39

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Costume change

when gf clicked
forever
if <touching [cookie v]?>
broadcast [eating v]
wait until <not<touching [cookie v]?>>
end
end

when I receive [eating v]
repeat (costume amount)
next costume


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

Board footer