I need some help with this
![mdk5316](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I have a simple circle that has a barrel on it. I need to know how to get the barrel to move back and forth around the circle. And when i click the button, i need to know how to fire a projectile in the direction of the barrel's angle. If anyone can help, it would be appreciated greatly
Comments
When Key up is touched move to self.position y + 10. Along those lines.
Might wanna look at the cannon template in GameSalad, see how that's done.
That will cause the object to rotate around to the spot you touch.
to fire an object you could...
Spawn actor > bullet on touch release. ensure that angle is set to relative to actor in the spawn rule
(you can also offest X and Y pos of the spawn to make it come from the end of the barrel)
just make sure that your bullet actor has a Move/Acclerate rule setup on it so it has a speed.