B
Bokkie2988
Guest
Hi,
So im making this game where if you shoot the enemy it dies and slides for about a second. I want the enemy to slide in the direction of where you shot him (which works) but right now, sometimes when you kill the enemy the image angle is right, but sometimes it is reversed.
The code used:
Where dir is the image_angle of the weapon at that moment.
this code sets the image_angle of the killed enemy.
Can anyone help me?
So im making this game where if you shoot the enemy it dies and slides for about a second. I want the enemy to slide in the direction of where you shot him (which works) but right now, sometimes when you kill the enemy the image angle is right, but sometimes it is reversed.
The code used:
Code:
image_angle = dir-180;
this code sets the image_angle of the killed enemy.
Can anyone help me?