Problem with Animation

For questions about using Classic.

Post » Sun Jul 19, 2009 9:12 am

Hello!

Following screenshot is with event that when key Space is down, we set playing "fire" animation (once, no loop)



Suggest, why is animation not playing properly? (only flashes for a second). Could it be done properly not chaging first condition (because main character, his directions, have many different events)?

Here is cap file:[url:338ng6ar]http://www.fileqube.com/shared/cQHrvpzo1495790[/url:338ng6ar]
B
3
S
2
G
3
Posts: 146
Reputation: 1,567

Post » Sun Jul 19, 2009 12:43 pm

When key "space is pressed" is not a continuous trigger, "space is down" is.

MouseKeyboard: 5 Key Space is down
> SpriteSet animation to "fire"
System: Else
> SpriteSet animation to "stop"

Not sure why you had all the extra triggers for not pressed, the expression else does the same thing.

[url:1h2mou61]http://files.getdropbox.com/u/666516/animation.cap[/url:1h2mou61]
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests