I've been struggling to figure out how to achieve an attack pattern that makes bullets spawn delayed from each other.
Right now when my imp attacks all the bullets are fired at the exact same time, I want a single tick of time to pass before another bullet is fired.
I've looked, but I can't find any functions that work in decorate that delay time. I'm not even sure if the way i'm trying to implement delays are possible.
I would appreciate it if you can tell me what I should do.
My current DECORATE code:
Spoiler
ACTOR DoomImp1 replaces DoomImp{
var int user_i;
var int user_a;Health60Radius20Height56Mass100Speed8PainChance200Monster+FLOORCLIP
SeeSound"imp/sight"PainSound"imp/pain"DeathSound"imp/death"ActiveSound"imp/active"HitObituary"$OB_IMPHIT"Obituary"$OB_IMP"States{Spawn:
TROO A 0{
A_SetUserVar(user_i,0);
A_SetUserVar(user_a,24);}
TROO AB 10 A_Look
LoopSee:
TROO AABBCCDD 3 A_Chase
LoopMelee:Missile:
TROO EF 2
TROO F 0{while(user_i < user_a){
A_CustomMissile("BrownImpBall",32,0,user_i*(360/user_a));
A_SetUserVar(user_i, user_i +1);//WAIT FOR 1 FRAME HERE <----------------------------}
A_SetUserVar(user_i,0);}
TROO G 20GotoSeePain:
TROO H 2
TROO H 2 A_Pain
GotoSeeDeath:
TROO I 8
TROO J 8 A_Scream
TROO K 6
TROO L 6 A_NoBlocking
TROO M -1StopXDeath:
TROO N 5
TROO O 5 A_XScream
TROO P 5
TROO Q 5 A_NoBlocking
TROO RST 5
TROO U -1StopRaise:
TROO ML 8
TROO KJI 6GotoSee}}
I've been struggling to figure out how to achieve an attack pattern that makes bullets spawn delayed from each other.
Right now when my imp attacks all the bullets are fired at the exact same time, I want a single tick of time to pass before another bullet is fired.
I've looked, but I can't find any functions that work in decorate that delay time. I'm not even sure if the way i'm trying to implement delays are possible.
I would appreciate it if you can tell me what I should do.
My current DECORATE code:
Share this post
Link to post