GLide KS
Sometimes I sprite "things"
Hello guys, i have a problem, im making sonic corp. : The Terror Backs to 2.1 , and i have a problem making an enemy (its a doom enemy), that dissapears when sees me, here´s the code:
PD: The Obj. Behaviors its not finished yet.
And here´s the gif:
PD: The Obj. Behaviors its not finished yet.
Code:
#Mutant 1
State S_MUTANT_E1_0
SpriteName = F002
SpriteFrame = A
Duration = 1
Next = S_MUTANT_E1_0
Action = A_Look
Var1 = 0
Var2 = 0
State S_MUTANT_E1_1
SpriteName = F002
SpriteFrame = A
Duration = 1
Next = S_MUTANT_E1_2
Action = A_PlaySound
Var1 = sfx_FRE011
Var2 = 0
State S_MUTANT_E1_2
SpriteName = F002
SpriteFrame = A
Duration = 5
Next = S_MUTANT_E1_3
Action = A_Chase
Var1 = 0
Var2 = 0
State S_MUTANT_E1_3
SpriteName = F002
SpriteFrame = B
Duration = 1
Next = S_MUTANT_E1_4
Action = A_PlaySound
Var1 = sfx_FRE011
Var2 = 0
State S_MUTANT_E1_4
SpriteName = F002
SpriteFrame = B
Duration = 5
Next = S_MUTANT_E1_5
Action = A_Chase
Var1 = 0
Var2 = 0
State S_MUTANT_E1_5
SpriteName = F002
SpriteFrame = C
Duration = 1
Next = S_MUTANT_E1_6
Action = A_PlaySound
Var1 = sfx_FRE011
Var2 = 0
State S_MUTANT_E1_6
SpriteName = F002
SpriteFrame = C
Duration = 5
Next = S_MUTANT_E1_7
Action = A_Chase
Var1 = 0
Var2 = 0
State S_MUTANT_E1_7
SpriteName = F002
SpriteFrame = D
Duration = 1
Next = S_MUTANT_E1_8
Action = A_PlaySound
Var1 = sfx_FRE011
Var2 = 0
State S_MUTANT_E1_8
SpriteName = F002
SpriteFrame = D
Duration = 5
Next = S_MUTANT_E1_1
Action = A_Chase
Var1 = 0
Var2 = 0
Object MT_MUTANT_ENEMY1_1
MapThingNum = 2359
SpawnState = S_MUTANT_E1_0
SpawnHealth = 1
SeeState = S_MUTANT_E1_1
SeeSound = sfx_FRE014
ReactionTime = 32
AttackSound = sfx_none
PainState = S_NULL
PainChance = 200
PainSound = sfx_FRE013
MeleeState = S_NULL
MissileState = S_NULL
DeathState = S_XPLD1
XDeathState = S_NULL
DeathSound = sfx_FRE015
Speed = 6
Radius = 24*FRACUNIT
Height = 90*FRACUNIT
DispOffset = 0
Mass = 100
Damage = 0
ActiveSound = sfx_None
Flags = MF_ENEMY|MF_SPECIAL|MF_SHOOTABLE
RaiseState = S_NULL
And here´s the gif: