S
SashoTAI
Guest
So I was making a platformer shooter and I was adding the gun (obj_shotgun) and made it follow the player. However when I try to make the bullet (obj_bullet) shoot from the shotgun, it just shoots horizontally from the mouse. Any ideas? Here is my bullet code. It's in the create event btw:
- //set up motion
- direction = point_direction(x, y, mouse_x, mouse_y);
- speed = 16;
- image_angle = direction;