I'm trying to make an enemy that, when he spots, you, fires a barrage of bullets - like chaingunner, but using projectiles - but when he starts firing, he continues in one direction until he's done. However, my enemy spirte stays turned to this initial direction, but his projectiles keep aiming at the player. So I can circle around the monster who looks north, but when I'm behind him, he's still shooting at me - from his behind.
How to make these projectiles go in a single direction and not chase me?
I've removed A_FaceTarget so the enemy sprite acts like it should, but that doesn't help with the projectiles.
Example code:
Quote
Missile:
ZHRT E 20 A_Playsound ("dune/sight")
ZHRT E 10
ZHRT FE 2 Bright A_CustomMissile("Bolt",32,0,random(-12,12),0)
ZHRT F 2
ZHRT FE 2 Bright A_CustomMissile("Bolt",32,0,random(-12,12),0)
ZHRT F 2
ZHRT FE 2 Bright A_CustomMissile("Bolt",32,0,random(-12,12),0)
ZHRT F 2
ZHRT FE 2 Bright A_CustomMissile("Bolt",32,0,random(-12,12),0)
ZHRT F 2
ZHRT FE 2 Bright A_CustomMissile("Bolt",32,0,random(-12,12),0)
ZHRT F 2
Question
Szuran
I'm trying to make an enemy that, when he spots, you, fires a barrage of bullets - like chaingunner, but using projectiles - but when he starts firing, he continues in one direction until he's done. However, my enemy spirte stays turned to this initial direction, but his projectiles keep aiming at the player. So I can circle around the monster who looks north, but when I'm behind him, he's still shooting at me - from his behind.
How to make these projectiles go in a single direction and not chase me?
I've removed A_FaceTarget so the enemy sprite acts like it should, but that doesn't help with the projectiles.
Example code:
And the projectile:
Share this post
Link to post
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.