How do i make a "CONFIRMATION CHECK" For my SHOP?

0 favourites
  • 3 posts
From the Asset Store
50 front view of buildings JPG - residences shops and offices - 2048x2048
  • Good morning, I am returning to using Construct, and I am still unsure where to look for resources or examples.

    I am making a game that will have a shop. In this shop, I will have some buttons, such as "Buy Upgrade." When clicking on this upgrade, I will deduct the coin value and change the sprite's animation of my object (the programming logic uses its animation value to perform tasks).

    I can do this so far (maybe not in the best way, but it's manageable). What I need is a "confirmation" button when clicking on BUY. For example, when the player CLICKS, before deducting the value and giving the upgrade, I would like a message to appear like: Are you sure? [YES] [NO]

    I thought about creating a new transparent layout on top, but I am a bit confused and think I might end up doing a lot of unnecessary work. Are there any examples of how to perform this validation?

    If the requirement is met (sufficient coins), when clicking the buy button, the confirmation of YES or NO appears. If YES, apply; if NO, revert to normal.

    Thanks for all

  • An invisible layer for the dialogue may not be such a bad idea. It's probably the easiest solution. Make sure to disable "interactive" in layer properties until you need it, to prevent clicking invisible buttons.

    Alternatively you can create this dialogue on an unused layout, add all objects to a hierarchy. And then when you need to show it - create the entire dialogue from the hierarchy.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • An invisible layer for the dialogue may not be such a bad idea. It's probably the easiest solution. Make sure to disable "interactive" in layer properties until you need it, to prevent clicking invisible buttons.

    Alternatively you can create this dialogue on an unused layout, add all objects to a hierarchy. And then when you need to show it - create the entire dialogue from the hierarchy.

    I need study abouth hierarchy yet..

    Thanks for tip =D

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