Page 1 of 1

Virtual buttons mobile

Posted: Wed Aug 09, 2017 5:30 am
by dreamaster
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?

Re: Virtual buttons mobile

Posted: Fri Aug 25, 2017 12:34 am
by CaptainMaelstrom
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.