Problems with angles

InLaNocheInLaNoche Member Posts: 20
edited July 2012 in Working with GS (Mac)
Maybe I'm spending too much time on this, but I am trying to get things to work the way I want them to. That aside, I am still working on a missle tracking system. I have run into various issues (not code issues, but Creator issues). The lastest has come as I was attempting to make my 4th run at this missle thing. For targeting, I am using the VectorToAngle function. the target is on the left, the missle comes from the right. The first thing I do on the missle creation (added to the scene) is to wiat 0.25 seconds, then set the launch angle and speed. For the first 3 missle attempts, this worked well (with vectorToAngle(missle.x-target.x, missle.y-target.y)). I would set the move speed to 80 (test speed) and it would go to the target's starting point.

The reason I have been creating multilple tries at this, is that ever since I made my first angle attribute, I am having trouble deleting the attributes from actors. That aside, so I go to make my 4th missle, and it goes backwards. Hmm... So I go bakc and try my 1st missle (that kind of worked, or at least lauched in the right direction) and it goes backwards now too. what's the deal?

PS. Working with Windows GSC.
Sign In or Register to comment.