Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Immorpher

Custom Enemy Sprites Appearing Below Map (GZDoom)

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

 

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. :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×