Animations problem...

  • iam working on a match 3 game.

    there is 1 sprite with 4 frames. 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)