How to work with touch-screens?
Posted: Sat Jan 27, 2018 8:08 pm
I've been having an idea for an Android game and I've really started to like LÖVE.
Can anyone explain to me in-depth what functions to use and stuff when a touch screen (Android) is tapped on?
Currently I have it like:
But that doesn't work. I'm not quite sure how to use the love.touch, so if anyone could help me I would be very happy!
And can someone explain how to do it for a certain part of the screen and how to do it on the whole screen?
Can anyone explain to me in-depth what functions to use and stuff when a touch screen (Android) is tapped on?
Currently I have it like:
Code: Select all
if love.mousepressed then
-- do something
end
And can someone explain how to do it for a certain part of the screen and how to do it on the whole screen?