Stencyl 3.4.0 is now out. Get it now!

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

SonofArchilles

  • Posts: 11
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?

JeffreyDriver

  • Posts: 1305
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.

SonofArchilles

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