W
Wyatt Johns
Guest
At the moment I have an object that moves via:
motion_add (image_angle, key_up + key_down);
//key up and down are a user input using keyboard check where up is positive and down is negitive
But I'm having an issue trying to figure out how to make the object always move towards the direction the image is facing. Basicly I would like to make it so the user pressing forward and back words sets the speed the object moves. But left and right change the direction it moves.
motion_add (image_angle, key_up + key_down);
//key up and down are a user input using keyboard check where up is positive and down is negitive
But I'm having an issue trying to figure out how to make the object always move towards the direction the image is facing. Basicly I would like to make it so the user pressing forward and back words sets the speed the object moves. But left and right change the direction it moves.