Hi,
- How would I detect a click/tap anywhere on the screen?
- How would I change the color hue of a sprite?
That’s all for now, thanks!
Jesse
Hi,
That’s all for now, thanks!
Jesse
Hi Jesse!
The Examples section contains this, and this, which should give you an idea of how to detect tap/click input.
Instructions can be found in the Graphics manual.
Good stuff - thanks!
(working on the playing game screen now - the last part)
Well…
How can I easily recognize a click/tap on anywhere on the whole screen?
I am making a simple top-down “Flappy Bird” inspired racing game.
Input is simple, no click/tap on screen = move car right, while click/tap on screen = move car left.
Let us know, thanks!
Open your game.input_binding
file and create a mouse/touch trigger with "touch"
as the action name.
Paste this in your on_input() function
if action_id == hash("touch") and action.released then
-- move left
else
-- move right
end
got it, thanks!