How do I disable buttons

0 favourites
  • 5 posts
From the Asset Store
J-BoB Game Button Sound Pack comes with 300 high-quality sound effects
  • Hi im kind of struck

    A simple menu layout with option, credit and play button, I have the play button with 3 second sound to it, during those 3 second i want to disable all buttons from working. I have try putting each button to diiferent groups and deactivated the group. I've try button destroy on play button click, still the 2 method doesnt seem to work. How can i archive this? sorry for the bad grammar

    tks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The default buttons of Construct2 are very limited, if its not wanting to cooperate, I would recommend making your own sprite button and simply writing your own control events for when the sprite is clicked on, hovered over, etc. This will allow you to use all the cool sprite actions as well.

    That said, have you tried simply setting the other buttons invisible during this period (and then spawning fake ones that do nothing), or overlaying them with an invisible sprite on another higher clear layer so they can't be clicked, or giving each a variable condition you can toggle on/off when play is active...

  • Disable collision on the buttons you don't want to be clicked. Send the .capx file if you want, this should be easy to do.

    Sometimes for this kind of thing I like to set up a global variable for MenuButtonEnabled, which has values of Yes or No. Where you have the 'on click' actions for each button, put these actions under when MenuButtonEnabled=Yes. During the 3 second timer when Play is clicked, set MenuButtonEnabled to No.

  • Thanks for the reply

    Here is what i did

  • As you will soon learn using Construct2... there are a dozen ways to do most anything you are trying to accomplish, its really about finding what looks good to you and doesn't slow down your game (on mobile).

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