I want to make vehicle move when touching by the mouse clicked on any screen part and stop when mouse click is off.How do I get it?
Develop games in your browser. Powerful, performant & highly capable.
If you are using bullet, you could do:
Mouse button is down; set angle towards mouse.x, mouse.y; bullet set enabled
Else: Bullet set disabled