How I select/unselect instances and

0 favourites
  • 3 posts
  • Hi, first of all sorry for my english. I'm still studying it and don't speak it very good. I'll try to explain the best I can. Thank you for your patience.

    I have 2 objects. Every object has 6 instances. I want to select an instance and to change his position with another instance.

    When I touch the first instance, I want that it rotates to show that is selected, but if I press again the same instance, I want that stops rotating.

    I have managed to select an instance with the condition " on touched sprite1 ".

    But I don't know how to stop the instance if I touch it again.

    Thank you for your help!

  • You can create a Boolean instance variable on your sprite, and then use the 'toggle boolean' action

    On touched sprite: Toggle Sprite.Selected

    is Sprite Selected: spin!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It works! Thank you very much keepee!!!

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