M
mateus souza
Guest
hello, I'm doing a top down project, however no matter what I do the bullet keeps coming out of the gun barrel, could anyone help me? I'm learning to use the game maker yet and I do not know some basic things.
my sprite = x=128 y= 85
origin = x=40 y=49
gun tip = x=119 y=62
global mouse left button =
if (!fire){
fire = true
alarm[0] = cooldown;
instance_create(x+lengthdir_x(77,image_angle),y+lengthdir_y(77,image_angle),obj_bullet);
}
my sprite = x=128 y= 85
origin = x=40 y=49
gun tip = x=119 y=62
global mouse left button =
if (!fire){
fire = true
alarm[0] = cooldown;
instance_create(x+lengthdir_x(77,image_angle),y+lengthdir_y(77,image_angle),obj_bullet);
}