Point an arrow to the right angle

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
coderm
Prole
Posts: 6
Joined: Sat Aug 04, 2012 1:14 am

Re: Point an arrow to the right angle

Post 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?
User avatar
richapple
Citizen
Posts: 65
Joined: Sun Dec 25, 2011 10:25 am

Re: Point an arrow to the right angle

Post 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
minimal shooter.love
(1.04 KiB) Downloaded 351 times
Last edited by richapple on Sat Aug 04, 2012 5:40 pm, edited 1 time in total.
User avatar
dreadkillz
Party member
Posts: 223
Joined: Sun Mar 04, 2012 2:04 pm
Location: USA

Re: Point an arrow to the right angle

Post 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.
coderm
Prole
Posts: 6
Joined: Sat Aug 04, 2012 1:14 am

Re: Point an arrow to the right angle

Post by coderm »

Ah finally I figured it out, wasn't easy. :) It works now.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests