How do I create a menu with buttons over a sprite?

0 favourites
  • 2 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hi friends! I have a question, i need for my game one thing... I want that when i click twice on an object appear two buttons over the object. One of this buttons is for upgrade the object and the other to erase or move ... That it's possible? Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have a hud layer and have the two buttons, set it to invisible. Have the sprites with the scroll to behaviour and a booleon.

    On double click sprite, set scroll to behaviour enabled, the booleon to true, and set hud layer visible.

    This should zoom onto the chosen sprite, and the hud (set it to 0,0 for the paralax) should have the buttons open next to the sprite.

    Then on click button, pick the sprite where the booleon is true, and either upgrade it's variables, or destroy it

    Alternatively, you could spawn buttons at position sprite.x+40,sprite.y

    And spawn the other at sprite.x-40,sprite.y

    You would still need a booleon. The first option just saves you from destroying buttons.

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