How do I select one object at a time and deactivate others

0 favourites
  • 5 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I have a family called pointers.

    I want that you only can select one pointer at a time, and if you go to select one while one other is actived this one is deactivated.

    Is a stupid thing but after an hour i can't get it working correctly

  • Guess this is related to picking objects, however there are loads of ways for picking stuff and without knowing exactly how you are trying to do this, its fairly difficult to give advise. So think you need to be a bit more specific in regards to where the problems occurs.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a menu with X icons.

    When with the mouse i click on a icon this one is selected, ok. I use a instance variable called "active" 0/1. And when is active i set the animation to On. when is 0 animation is OFF.

    Then, when i select another of the icons of the family i created i want the first one get deactivated and activate the last one.

  • You should be able to do it like this.

    On Mouse click Pick Pointer
    
    -- Pick all Pointers   -> Set Pointer.active = 0
                                            Pointer.Animationframe = <whatever it needs to be>
    
                                       -> Set Pointer.active = 1
                                          Pointer.Animationframe = <whatever it needs to be>
    
    [/code:1d3ona86]
    
    added:
    Here is how it looks in C2:
    
    [img="https://dl.dropboxusercontent.com/u/109921357/Menu%20picking/Menu_picking.jpg"]
  • nimos100 Worked! THANKS!

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