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.
Develop games in your browser. Powerful, performant & highly capable.
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?
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.