Setting Animation Frame stops event firing?

Get help using Construct 2

Post » Thu Mar 29, 2012 5:58 am



So when a mosquito flies over a hand object it should continually subtract one from the health.

However the event only fires the first time.

If I disable the "set animation frame" action then health is continously decreased.

What is going on?
B
7
S
1
Posts: 74
Reputation: 1,232

Post » Thu Mar 29, 2012 7:41 am

ok this is easy to fix .
click on the object > then click on animation "edit" in the left side > click on the animation you want (eg. move the one that you want to make it continue moving) then see in left side there is a speed,loop...
click on loop to "yes". and done!

i can't imagen what you are working on so this the thing i knew about animation!zsangerous2012-03-29 07:43:16
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Thu Mar 29, 2012 11:53 am

Thanks for the reply, but it doesn't seem to make the difference.
I set loop to yes. Speed is at 0. (I don't actually want to animate it)
I just want to display a different picture on contact.
Frame 0 is black mosquito.
Frame 1 is red mosquito.

When the mosquito touches the hand it should turn red and continue to subtract 1 from the health when still touching.
I set the frame to 1 so it turns red, but it no longer subtracts 1 from the health, except the very first time.
B
7
S
1
Posts: 74
Reputation: 1,232

Post » Thu Mar 29, 2012 12:03 pm

Check the collision polygon for the frame 1, it's probably not overlapping the hand anymore.

To be sure, post your capx on the forum. (host it on dropbox)
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Thu Mar 29, 2012 12:16 pm

Aha!
Excellent, I must have changed the collision polygon between frame.
Got it working now, thanks!
B
7
S
1
Posts: 74
Reputation: 1,232


Return to How do I....?

Who is online

Users browsing this forum: Matthew de, onzephyr and 0 guests