How do I change score and animations correctly

Get help using Construct 2

Post » Sun Jul 12, 2015 12:34 pm

As per .capx located at:

http://dropcanvas.com/#W3Sv3N1p5NSasj

1.) I can not get it to add 1 to score ONLY!!! when the two colours match up via the instance variables?

2.) Rather than random for the player on any click how do I do it so it cycles instead through each animation frame? click = animation frame 0, THEN NEXT click = animation frame 1 and so on?
B
10
S
3
Posts: 110
Reputation: 1,082

Post » Sun Jul 12, 2015 12:52 pm

take a look: capx modified
Image Image
B
27
S
16
G
152
Posts: 886
Reputation: 79,200

Post » Sun Jul 12, 2015 1:53 pm

I actually got the score working somehow went away for lunch came back and it worked, lol. But I noticed you used modulo for the cycling I presumed that would not of worked, many thanks!
B
10
S
3
Posts: 110
Reputation: 1,082

Post » Sun Jul 12, 2015 2:01 pm

With using modulo, you can cycling left and right, much better for player
right click next
left click previous
Image Image
B
27
S
16
G
152
Posts: 886
Reputation: 79,200

Post » Sun Jul 12, 2015 2:40 pm

Many thanks!
B
10
S
3
Posts: 110
Reputation: 1,082


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests