How do I toggle frames on a sprite with btn click

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to do something very simple that I have done a million times in other languages...

    try if....else

    or modulo

  • Awesome - that worked. Thank you so much!

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