bah! i am so mad at them, the cheapest is $24 but when i got it it was $14.95 man i want the new version with gpx2 or whatever update
can you POSSIBLY imagine how happy I was???
but, ya, as soon as I have enough I'll buy it.
where the ship rotates right and the target does the same, or where the bullet can shoot at the many different angles. like in a normal astroids game. to where instead of shooting up down left an right, it can shoot at all angles like 45o an stuff, i hope u know what i meanSgt. Sparky wrote:sorry to double post but: how do i use the "directional_velocity" code? to make my actow when i press up to go forwards even if its facing left? um... could you help me?
directional_velocity = 5;
angle = 90; //up
double xdist(int deg, double dist)
{
return dist * cos(degtorad(deg));
}
double ydist(int deg, double dist)
{
return -dist * sin(degtorad(deg));
}xvelocity *= .99;
yvelocity *= .99;
int dir = animpos * 10;
xvelocity += xdist(dir, .1);
yvelocity += ydist(dir, .1);xvelocity *= .95;
yvelocity *= .95;