My problem is, patrolling enemies change their sprites depending on the direction, but how to do this with bullets? They shoot bullets but always in the same direction and I want them to shoot bullets where they facing (4 possible ways: up, down, left or right). If you have played Battle City on Nintendo NES or the Famicom you will understand how those tanks behaved.
Any input is greatly appreaciated.
What I did with enemy2 (patrolling red tank)
Create event
Set path (I have a path for them)
Creave moving instance of enemy_bullet (speed 4 - relative)
Set alarm 0 to 200
Alarm 0 event
Creave moving instance of enemy_bullet (speed 4 - relative)
Set alarm 0 to 200 //in order to create a loop
Step
Execute a piece of code
switch(direction)
{
case 180: sprite_index = enemy_2left;break;
case 0: sprite_index = enemy_2right;break;
case 90: sprite_index = enemy_2up;break;
case 270: sprite_index = enemy_2;break;}



Find content
Male


