Virtual buttons mobile

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
dreamaster
Prole
Posts: 2
Joined: Tue Aug 08, 2017 4:39 am

Virtual buttons mobile

Post 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?
User avatar
CaptainMaelstrom
Party member
Posts: 161
Joined: Sat Jan 05, 2013 10:38 pm

Re: Virtual buttons mobile

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests