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

Two problems with custom monster

Question

I'm creating a simple custom monster that's just a clone of a cacodemon, but has a different sprite and can't move. I have two problems with the monster:

1. The sprite will drop straight through the ground. If not given a higher Z position, the cacodemon clone will just spawn into the ground. But if I do give it a higher position, it will just fall through.

2. If I give the monster NOGRAVITY so I can actually see it, when the sprite faces to the right the sprite will be offset far to the left.

I'm using GZDoom: Doom 2 (UDMF), and here's my decorate file:

Spoiler

actor Bathodemon 15000
{
	SpawnID 200
	Health 400
	Radius 31
	Height 46
	Mass 400
	Speed 0
	PainChance 128
	Monster
	SeeSound "caco/sight"
	PainSound "caco/pain"
	DeathSound "caco/death"
	ActiveSound "caco/active"
	Obituary "$OB_CACO"
	HitObituary "$OB_CACOHIT"
	States
	{
	Spawn:
		BATH A 10 A_Look
		Loop
	See:
		BATH A 3 A_Chase
		Loop
	Missile:
		BATH B 5 A_FaceTarget
		BATH C 5 A_FaceTarget
		BATH D 5 BRIGHT A_HeadAttack
		Goto See
	Pain:
		BATH E 3
		BATH E 3 A_Pain
		BATH F 6
		Goto See
	Death:
		BATH G 8
		BATH H 8 A_Scream
		BATH I 8
		BATH J 8
		BATH K 8 A_NoBlocking
		BATH L -1 A_SetFloorClip
		Stop
	Raise:
		BATH L 8 A_UnSetFloorClip
		BATH KJIHG 8
		Goto See
	}
}

 

 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1

This problem has nothing to do with DECORATE, but with sprite offsets. Select any graphic in SLADE3 and there will be fields for x/y offset values below the preview image. You should set the values such that the graphic would appear properly as a sprite in the game. The "Sprite" preview type makes the in-game appearance visible in SLADE3's preview (the default preview type is "Auto" and it does the same thing as "Sprite" only if it detects that the graphic is not a texture/patch/menu text). Besides editing the offsets manually, SLADE3 allows you to block-select multiple graphics and automatically generate more-or-less proper offsets for all of them.

Edited by scifista42

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
×