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.

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.
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.
Posts: 33
Reputation: 4,224

Return to How do I....?

Who is online

Users browsing this forum: Invidel, OddConfection and 11 guests