Jump to content
  • 0

Custom Enemy Sprites Appearing Below Map (GZDoom)


Immorpher

Question

Has anyone encountered this? I have some custom enemy sprites (generally twice typical resolution) in GZDoom. They seem to be able to attack and die. But they are invisible. Using no clip, I can see that their graphics are showing, but it is below the level. They are PNG files if that helps. Below is my decorate script

 

Spoiler

actor 64ChaingunGuy : ChaingunGuy Replaces ChaingunGuy
{
    attacksound "grunt/attack"
    scale 0.67
    Radius 15
    Height 50
    States
    {
    Missile:
        CPOS E 10 A_FaceTarget
        CPOS FE 4 BRIGHT A_CustomBulletAttack (5.6, 0, 1, 2, "BulletPuff")
        CPOS F 1 A_CPosRefire
        Goto Missile+1
    Pain.Vertigo:
        CPOS G 0 ThrustThingZ (0, 55, 0, 0)
        CPOS G 3
        CPOS G 3 A_Pain
        Goto See
    Death:
        CPOS H 5
        CPOS I 5 A_Scream
        CPOS J 5 A_NoBlocking
        CPOS KL 5
        CPOS M -1
        stop
    XDeath:
        CPOS N 5
        CPOS O 5 A_XScream
        CPOS Q 5 A_NoBlocking
        CPOS RSTU 5
        CPOS V -1
        stop
    Raise:
        CPOS MLKJHI 5
        goto See
      Crush:
            POL5 A 0
            POL5 A 0 A_PlaySound ("Misc/Gibbed")
            POL5 A -1
            Stop
    }
}

actor 64StealthChaingunguy : 64Chaingunguy replaces stealthchaingunguy
{
    scale 0.67
    Radius 15
    Height 50
    renderstyle translucent
    +STEALTH
    alpha 0
}

Spoiler

Screenshot_Doom_20190527_033354.png.85dd4ffeefb4d85013ab30ea6853e488.png

 

Edited by Immorpher

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1

The usual problem with custom sprites is that you forgot to give them offsets. The offsets should indicate the coordinate of the "base" point of the image, which for a walking actor should be about the center bottom. If there's no offsets, then it'll use the top left corner (the coordinates at the [0, 0] point) and so the monsters is shuffled below the floor and to the right.

Share this post


Link to post
  • 1

You can do this in Slade. Create a new Wad Archive, drag and drop your PNGs into Slade and then click on the sprites. You can then change the gfx offsets either to the single sprite or all of them at once, if you select them all. Just go for "Monster GL friendly" and check if it looks okay. Slade will display some kind of guide lines.

 

Don't forget to save every single sprite in Slade. Then export them either as PNGs or whatever you need.

Share this post


Link to post
  • 0

Yes it looks like slade is the way to go! I see that photoshop killed my offsets, and now I have them opened in slade. Oh and that automatic is great! Will need to do some minor adjustments but that is no problem. :)

Edited by Immorpher

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
Answer this question...

×   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...