I am currently working on Doodle Jump game. I want to add touch screen function so that the player touch the right side of the screen, the doodle move to the right and vice versa.
How can I add invisible collider for both right and left side using javascript?
And how to write the function so that the touch screen function works on mobile?