
double newangle = (animpos/nframes)*360;
vectoradd(&angle, &directional_velocity, newangle, 0.5001);
directional_velocity = 0;
Fojam wrote:
- Code: Select all
double newangle = (animpos/nframes)*360;
vectoradd(&angle, &directional_velocity, newangle, 0.5001);
angle+=180;
angle+=180;
//where that angle is all you want for to move a sprite
directional_velocity = 0;
//where that velocity is of the sprite in another angle
You are understand me? XD
Users browsing this forum: No registered users and 1 guest