Here's how you can recreate it, since it isn't done yet:
// Syntax: motion_add(direction,speed) // Adds a set motion to the current motion
// Calculate where the object would travel at the different speeds x1=cos(degtorad(direction))*speed; y1=-sin(degtorad(direction))*speed; x2=cos(degtorad(argument0))*argument1; y2=-sin(degtorad(argument0))*argument1;
// Add up the two coordinates x3=x1+x2; y3=y1+y2;
// Set the new speed to the distance to the new coordinates speed=point_distance(0,0,x3,y3);
// Find out what direction the new coordinates are from our position direction=point_direction(0,0,x3,y3); I believe that should work.
|