1. Problem: Enemies
So my enemies (I'm gonna call them zombies now) are trying to kill me. Here is the code:
move_towards_point(obj_player.x,obj_player.y,2) image_angle=point_direction(x,y,obj_player.x,obj_player.y);
Simple code to make them follow me, and face my direction.
But if I have multiple zombies in the room and they follow me for some time, they "overlap". Hope u know what I mean.. So what should I do?? D:
2. Problem: Shotgun
Ok so the player has weapons to defend himself (obviously). I so far made a normal pistol, and a mini uzi. But when it comes to the shotgun I am stuck...
When the player left clicks, obj_bullet is created at obj_player.x,obj_player.y and in the create event of the bullet it has this code:
image_angle=point_direction(x,y,mouse_x,mouse_y) move_towards_point(mouse_x,mouse_y,20)
For the shotgun I want 5,6 maybe 7 bullets to fire out, and each bullet in its own direction, if that makes sense... And remember this is a Top Down Shooter. Any help would be appreciated.











