I would like to make my actor move other yctors in my scene as if he is using th


  • Posts: 20
I have controls to rotate a pistol like actor and would like to use it to move an actor around. I donĀ“t know how to make it stay inside a radius and so that the player is able to move it around 360 degrees . It should work like the gravity gun from half life but how do I do this in 2d?


  • Posts: 1760
Install the Easy math extension - http://www.stencyl.com/developers/market/

The blocks there should help you.

I'm also attaching a piece of code that I use to spawn bullets a certain distance from a rotating turret in case it's of use.
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.


  • Posts: 20
Thank you very much! It works just fine now.