I’m trying to make a game where i’m controlling an spaceship and avoids asteroids. Now, in order to avoid the asteroids my ship needs to change direction by rotating clockwise or counter clockwise when holding the screen.
Lets say when i hold the right part of the screen, my ship will rotate 0.01 degree clockwise per millisecond and counter clockwise if i hold the left part of the screen.
I’m new to Lua so any ideas is much appreciated. Thanks. 