How do I toggle frames on a sprite with btn click

0 favourites
  • 3 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • I am trying to do something very simple that I have done a million times in other languages, but cannot figure it out in Construct 2.

    All I want to do is flip between two images when a user touches the sprite. I am currently using the mouse click even for testing.

    When the user clicks on the sprite image, it will flip to a disabled looking image and the opposite when the user clicks it a second time. It would flip back to the enabled image.

    I believe my issue is when the user clicks the image, it does row 7, but then continues onto row 8. This makes no sense to me. It should exit out and not go to the second click until the user clicks again.

    If I disable action 8, action does what I want, but I need action 8 to flip back.

    As you can see I have also tried using sub action.

  • I am trying to do something very simple that I have done a million times in other languages...

    try if....else

    or modulo

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome - that worked. Thank you so much!

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