let's say you want to move 4 pixels in an angel of 30.
what you do is this:x+=lengthdir_x(4,30); //arg0 - length: 4, arg1 - direction: 30 y+=lengthdir_y(4,30);basically, lengthdir_x returns how much you need to add to the X value in order to move arg0 pixels in the direction specified in arg1.
lengthdir_y does that with the Y.
hope this helps.
awsome thanx for the help. but i figured out a little diffrently
Len = point_distance(0, 0, DX, DY);
Angle = point_direction(0, 0, DX, DY);
bullet_id = instance_create(x + lengthdir_x(Len, Angle + image_angle), y + lengthdir_y(Len, Angle + image_angle), obj_bullet);
bullet_id.direction = image_angle;
bullet_id.speed = 10;