a little problem with a sprite

Roser

Member
Hello to the person who is reading this, I am going to put in context, I try to make a SOC with a custom sprite, the free slot:

freeslot ("MT_HEARTBOMB", "SPR_HRBM")

the sprite is named HRBMA0

the soc is this

S_THROWNEXPLOSION1 status
SpriteName = HRBM
SpriteFrame = A
Duration = 1
Next = S_THROWNEXPLOSION2
Action = A_ThrownRing
Var1 = 0
Var2 = 0

MT_HEARTBOMB object
MapThingNum = 100
SpawnState = S_THROWNEXPLOSION1
SpawnHealth = 1000
SeeState = S_NULL
SeeSound = sfx_cannon
ReactionTime = 8
AttackSound = sfx_None
PainState = S_NULL
PainChance = 192 * FRACUNITY
PainSound = sfx_None
MeleeState = S_NULL
MissileState = S_NULL
DeathState = S_RINGEXPLODE
XDeathState = S_NULL
DeathSound = sfx_pop
Speed = 60 * FRACUNITY
Radius = 16 * FRACUNITY
High = 24 * FRACUNITY
DispOffset = 0
Mass = 100
Damage = 1
ActiveSound = sfx_None
Flags = MF_NOBLOCKMAP | MF_MISSILE
RaiseState = S_NULL

and the complete error is: R_projectsprite: invalid sprite frame 0/0 for HRBM
 
Try this:

Freeslot
MT_HEARTBOMB
SPR_HRBM

State S_THROWNEXPLOSION1
SpriteName = HRBM
SpriteFrame = A
Duration = 1
Next = S_THROWNEXPLOSION2
Action = A_ThrownRing
Var1 = 0
Var2 = 0

MT_HEARTBOMB object
MapThingNum = 100
SpawnState = S_THROWNEXPLOSION1
SpawnHealth = 1000
SeeState = S_NULL
SeeSound = sfx_cannon
ReactionTime = 8
AttackSound = sfx_None
PainState = S_NULL
PainChance = 192 * FRACUNIT
PainSound = sfx_None
MeleeState = S_NULL
MissileState = S_NULL
DeathState = S_RINGEXPLODE
XDeathState = S_NULL
DeathSound = sfx_pop
Speed = 60 * FRACUNIT
Radius = 16 * FRACUNIT
High = 24 * FRACUNIT
DispOffset = 0
Mass = 100
Damage = 1
ActiveSound = sfx_None
Flags = MF_NOBLOCKMAP | MF_MISSILE
RaiseState = S_NULL
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top