View Single Post
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 05-24-2010, 05:09 PM

I didn't do pi, I just multiplied the radian by 57.295779 or something like that, and it works fine for me.

Also, I think I know what you are doing, and I have actually already figured that out, I just didn't publish it. There is a way to do it with only the North object and the Direction object (and of course the objects to create the compass), and it just finds the angle between North and Distance, and if it is on the left side it multiplies that angle by -1 so that it turns the other way. I might publish it if I can get my "Objectives" world to work. In "Objectives", I am planning on having a system that points the compass towards a certain objective, telling you where to go in a game, I hope to have it done soon (but I haven't worked on it in a few days). It would be very useful in future objective-based games though, thats why I'm trying to create it.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote