Atan2 and aiming info.

Blitz3D Forums/Blitz3D Beginners Area/Atan2 and aiming info.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hehe
Thanks for the hint.
I think that the whole procedure thakes tooooooo much processor time for being usefule for a shoot-em-up.....
Basically this function is used to trace a sort of spline curve wich i define graphically the knot points.....
The movement function calculate the curve smoothness,and move the object facing in the correct directions (now thanks to the various help)....firstly i load a sprite and calculate during the load time of the program the various frame.
After finished the animation have the number of rotations that i set and move the object along the curve.
It's a sort of follow way point procedure but it also make much more smooth movements thanks to the spline approximation.
I think it's more usable with an rpg or an adventure game....
Or maybe i use this code only for boss :P
(indeed it's slow....but i'm just happy that it works!)