Hi everyone,
I have an object that is able to move right, left and up on touch. The game itself is vertical scrolling. When the object collides with "enemy" it is supposed to drop vertically down. However, the control is still enabled when the object is falling so when I tap right or left the object will move off screen.
How do I disable touch control once collision happens?
I used set ignoring input but it doesn't pick up.
I'd also like to know how to stop object from moving off screen if possible.
Thanks.