Animations problem...

Get help using Construct 2

Post » Mon Apr 17, 2017 9:48 am

Message: mrline can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
iam working on a match 3 game.

there is 1 sprite with 4 frames. http://prntscr.com/exddku

when i touch blue dot i want it to change animation to a smaller dot. same thing with other colored dots.

example (i touch blue dot ( animation change to a small blue dot ) and then touch green dot ( green dot change animation to a smaller green dot ) and then these 2 dots blue and green swap positions with each other. after swaping positions blue dot gets default size animations and green dot get default size animation.
B
6
S
3
Posts: 40
Reputation: 698

Post » Mon Apr 17, 2017 12:47 pm

I would handle this with a global. Lets focus on blue. Make two animations big and small. Make global: BlueSelect = 0

Now make two events:
Event: BlueSelect = 0 | Action: set animation to "big"
Event: BlueSelect = 1 | Action:set animation to "small"

Then in your existing code that selects and deselects blue simply add an action that sets the global.
B
16
S
7
G
5
Posts: 30
Reputation: 3,777


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests