Hello:
I'm stuck on very simple things. I need clickable invisible hotspots on the screen. I've put a button but when it is invisible it doesn't work. So I've put a sprite and made it opacity 0, but how do I detect an event if the sprite is clicked or touched? I don't see a way to do this.
Thanks for suggestions.
Right-click in the layout > insert new object > mouse or touch
Then in the event sheet it's on mouse clicked / on touched
Develop games in your browser. Powerful, performant & highly capable.
Yes of course, thanks. Its easy when you know how...
Another question if you don't mind... is there a way to make this respond to either a mouse click or touch?
Add the condition on mouse button clicked
Right click on event, select to make it an OR block
Add the condition on any touch start
Will now be on mouse click OR touch
I think you can only use Touch plugin. Touch events work with mouse too.
Got it, thank you!