Overlapped Ingame sprites with different actions ?

0 favourites
  • 1 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hi

    Ive searched the forum about the overlapping objects, but didnt solve my problem.

    For example when user clicked on Player Object, a menu will popup with selections for upgrade buttons or etc. But the user can also click on the enemy sprite and another menu will popup and for example maybe display enemy information with button close.

    Now during gaming this so called popup menu can overlapped each other for example and user might click on button close enemy information popup and the event of Player upgrade button might be fired since both are overlapping.

    So I was thinking that I just group all controls of the menu and put into a Family

    Then when user clicked or Touched on Family objects, I just pick top instances and do some events based on button type. Correct ?

    But how do I know which is clicked or Touched ? I have to declare Instance variable for the family as identifier? Is this the only way ?

    Are there any more elegant way to do this ?

    Some example



  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)