A Couple Of Questions (SOLVED)

Hi,

  1. How would I detect a click/tap anywhere on the screen?
  2. How would I change the color hue of a sprite?

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.

3 Likes

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
1 Like

got it, thanks!