Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I am working on one of the endless Runner Game. I am about to complete the Game but facing one minor problem. I am new to Construct 2. I am using the single textures for Menu screen with Play button and Game Over Screen with Replay button. For the button clicked event i have to use the button object in the Construct 2 Game engine and i am using it. But the thing is that inbuilt Buttons are visible with default color or pattern. I want that inbuilt button will not be visible but the click event for that button should work or to make the opacity of button to zero but its event will work. Thanks in advance.
You can style the button-object with css...
If you use the default button as a button you can't without using LittleStain's method, if you set it enabled but invisible it is still not accessible.
However, If you use a sprite as a button you can set its opacity to 0 and use an on-mouse click type event and it works as you are wanting.
Change the 'button-object' CSS color attributes to "transparent"
Set CSS style "color" to "transparent"
Set CSS style "background-color" to "transparent"
Set CSS style "border-color" to "transparent"
Or just use a transparent sprite?
Develop games in your browser. Powerful, performant & highly capable.
Thanks to all. I have used the technique of sprites as a buttons and apply On Touch event on that and it is working fine.