Hi lovers!
I started use Love 2D on a mobile android phone. I trying make a plataform but I having problems to assign buttons on screen, the only that works until now it's use the mouse 1 button like a touch, I searched a lot but I don't find nothing unfortunately. Have a way create buttons on screen like the sonic 1 for mobile? Thx
And one more question, have a way to look the output terminal on mobile version?
Virtual buttons mobile
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- CaptainMaelstrom
- Party member
- Posts: 161
- Joined: Sat Jan 05, 2013 10:38 pm
Re: Virtual buttons mobile
You can just draw images of the buttons on the screen. Have one sprite/image showing what the button looks like when it's pressed and one normal. Somewhere in the touch callback function, set a value to tell your game to draw the pressed button as opposed to the normal looking one.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 4 guests