first key press after launching a game

For questions about using Classic.

Post » Sun Feb 14, 2010 10:46 am

Try this cap: [url:1ny5p3ry]http://tecbug.pl/pub/problem1.cap[/url:1ny5p3ry]
Space should always change sprites animation.
But it doesn't do it on the first key press (space) (after launching a game). After first space press it works fine. What is wrong?
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Sun Feb 14, 2010 11:46 am

Since this is basically a toggle, you won't get get proper results with events like that. You should use an ELSE condition for this.



Or even easier:



Thanks to Shviller for pointing that one out, hehe. It's a nice and simple method for toggles. :mrgreen:
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Sun Feb 14, 2010 1:35 pm

Thanks for great advice!
B
53
S
14
G
10
Posts: 282
Reputation: 7,578


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest