Jump to content

Kinda dumb enemy question


nrofl

Recommended Posts

Ive ran into a problem when using decorate for an enemy. The enemy has sprites that have angular sprites (like WRAEA2A8 etc) But the enemy doesnt show these frames when looking at it in other angles. Heres the DECORATE code right now:

 

ACTOR WrathElemental : Cacodemon 15000
{
    Health 1000
    Radius 48
    Height 112
    Mass 400
    Speed 10
    PainChance 16
    ActiveSound "WEIDLE1"
    DeathSound "WEDETH1"
    PainSound "WEPAIN1"
    MONSTER
    +NOGRAVITY
    +FLOAT
    States
    {
        Spawn:
        WRAE A 8
        loop
        See:
        WRAE A 6 A_Chase
        loop
        Missile:
        WRAE CD 6 A_FaceTarget
        WRAE D 0 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 3 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 0 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 3 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 0 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 3 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 0 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        WRAE D 3 A_CustomMissile ("WrathRain", 60, 0, random(-5, -5), 0)
        Pain:
        WRAE E 3 A_Pain
        Goto See
        Death:
        WRAE FGHIJKL 5 A_NoBlocking
        WRAE M 4
        WRAE N -1
        Stop
    }
}

ACTOR WrathRain
{
    Radius 10
    Height 10
    Speed 10
    Damage 8
    SeeSound "imp/attack"
    DeathSound "imp/shotx"
    PROJECTILE
    States
    {
        Spawn:
        WRFI AB 5
        Death:
        WRFI CDEF 10
        Stop
        }
}

 

Any fixes?

Share this post


Link to post

For this issue you have to post a screenshot of your wad opened up in Slade3 (or the wad itself), not the DECORATE

Share this post


Link to post
1 minute ago, Kan3 said:

 

Ok, it looks it's a quite normal oversight.

The first images of every "sprite's frame" of you monster have a number of 0 instead of 1, so you're basically telling the game that there're no other images to check for "rotation".

Facepalm moment. Thanks for clearing that up

Share this post


Link to post
46 minutes ago, Kan3 said:

 

Ok, it looks it's a quite normal oversight.

The first images of every "sprite's frame" of you monster have a number of 0 instead of 1, so you're basically telling the game that there're no other images to check for "rotation".

Oh lord. I believe I am stupid because I get an error that frame C is missing rotations:

https://www.dropbox.com/s/uk856nlplckfaz5/MAYBE.wad?dl=0

Please excuse my idiocracy

Share this post


Link to post

Are you seeing behavior issues with the monster? Typically the attack sequence terminates with "gotosee". Also spawn states for monsters typically have a line that calls "A_Look".

Edited by Nihlith

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...