Page 2 of 2
Re: Point an arrow to the right angle
Posted: Sat Aug 04, 2012 5:18 pm
by coderm
OK but in your example it only points from the upper left to a picture down right. What I need is, it could be anywhere within a 360 radius.
What was the code you used?
Re: Point an arrow to the right angle
Posted: Sat Aug 04, 2012 5:21 pm
by richapple
Wait wait wait, what exactly do you want?
Also, you can use math.deg(
ang in rad) for angle converting
and you didn't see anything
Re: Point an arrow to the right angle
Posted: Sat Aug 04, 2012 5:24 pm
by dreadkillz
coderm wrote:OK but in your example it only points from the upper left to a picture down right. What I need is, it could be anywhere within a 360 radius.
What was the code you used?
It works anywhere. I only restricted their spawn points. You're free to check my code.
Re: Point an arrow to the right angle
Posted: Sat Aug 04, 2012 7:57 pm
by coderm
Ah finally I figured it out, wasn't easy.
It works now.
Thanks.