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

#1 2010-04-16 16:48:44

Paedella
Scratcher
Registered: 2010-04-12
Posts: 3

Changing the 'goal's' animation upon reaching it

Hiyyo.
I've been trying to figure things out on my own until here, but even though I'm messing around, I need some help with this.

I have two sprites - the character (Tilde, the girl in my avatar) and the 'goal'. The goal is another animated character. I want her to change to a different animation loop once Tilde reaches her and then have something else happen (As a filler, I have the goal send "done" and Tilde says "Level Complete" when she receives "done")

So, my problem is, I can make the goal loop its two sprites BEFORE you reach her as the goal, but when I get there, there's no change.
The "Level Complete" part worked fine before I made separate sprites for the before and after completion part. (Aka the 'happy1' and 'happy2' sprites)

I have it set up like this on the goal:

<when green flag clicked>
<if> (touching (Tilde))
<broadcast[ done ]and wait c>
<forever>
<switch to costume[ happy1
<wait( 0.2 )secsc>
<switch to costume[ happy2
<wait( 0.2 )secsc>
<end>
<else>
<if> (Not = touching (Tilde))
<forever>
<wait( 0.2 )secsc>
<switch to costume[ cry1
<wait( 0.2 )secsc>
<switch to costume[ cry2
<end>


Note that this is what I got after trying like two other combinations...
Rrrrr. So... I hope that isn't too confusing. Help me if you can, please!

Offline

 

#2 2010-04-16 17:02:48

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Changing the 'goal's' animation upon reaching it

When green flag clicked
Forever if touching tilde
switch to costume ()
wait(0.2)
switch to costume ()
wait(0.2)
else
switch to costume ()
wait(0.2)
switch to costume ()
wait(0.2)

Offline

 

#3 2010-04-16 17:31:35

Paedella
Scratcher
Registered: 2010-04-12
Posts: 3

Re: Changing the 'goal's' animation upon reaching it

Ahhh thank you so much! : DD I swear I tried something like that before... I think I had an extra Forever in there last time.

Offline

 

Board footer