How to rotate actor and emit laser beam from it?
i have circle actor which can rotate.My problems is how to rotate any angle and emit laser beam from it?For example, rotate actor estimate 45 degree and emit laser beam 45 degree.thanks.
Comments
On your rotating circle:
Contrain game.angle to self.rotation
Create new rule:
When touch is pressed
Spawn new actor
Actor - laserbeam
Direction - game.angle
Spawn behind actor
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page