Doom sprite not appearing!

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
XASSASSINX
Posts: 380
Joined: Tue Dec 20, 2016 4:53 pm
Location: MURICAA BROTHER! Just kidding, Brazil.

Doom sprite not appearing!

Post by XASSASSINX »

My sprite is not appearing, I'm making a replacement of the invulnerability sphere, The replacement is a new megasphere (Which i can't do too) Here is the code:
(Note, About that "lizardhealthbonus", that's because i'm making some changes on that mod "Lizard squad")

Code: Select all

ACTOR FullWarPack : LizardHealthBonus replaces InvulnerabilitySphere
{
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.FANCYPICKUPSOUND
	Inventory.Amount 100
	inventory.pickupmessage "Picked up a Full War Pack!"
	states
	{
	Spawn:
		PINV A -1
		Stop
	}
}
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Doom sprite not appearing!

Post by Nevander »

Is the graphic that you want to appear in place of the Invulnerability Sphere also named PINVA0?
XASSASSINX
Posts: 380
Joined: Tue Dec 20, 2016 4:53 pm
Location: MURICAA BROTHER! Just kidding, Brazil.

Re: Doom sprite not appearing!

Post by XASSASSINX »

Yep. PINVA0. (The only problem that i can find is that it's with a white background)
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Doom sprite not appearing!

Post by Mikk- »

Did you make sure to set the sprite offsets correctly?
XASSASSINX
Posts: 380
Joined: Tue Dec 20, 2016 4:53 pm
Location: MURICAA BROTHER! Just kidding, Brazil.

Re: Doom sprite not appearing!

Post by XASSASSINX »

Mikk- wrote:Did you make sure to set the sprite offsets correctly?
Uhhh... I'm not sure, How i do that? I remember seeing a post about sprites offset, But i didn't get it clear.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Doom sprite not appearing!

Post by Mikk- »

If your offsets are 0,0 then the sprite will appear sunken into the ground. Set the offsets by dragging your sprite using the guide lines as a reference. Changing Auto to Sprite will show the cross-guidelines where the horizontal line represents the ground in game.
Image
XASSASSINX
Posts: 380
Joined: Tue Dec 20, 2016 4:53 pm
Location: MURICAA BROTHER! Just kidding, Brazil.

Re: Doom sprite not appearing!

Post by XASSASSINX »

Yeah. I changed that. But still, I'm doing a invulnerability sphere replacement,The replacement is basically a megasphere clone. If the invulnerability sphere sprite code is PINV, Then why the hell when i spawn it, It appear with a invulnerability sphere sprite instead of the custom one?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Doom sprite not appearing!

Post by wildweasel »

What exactly have you named your sprite, and where in your WAD file is it located? The Invulnerability sphere uses frames A through D of the PINV sequence; e.g. it looks for sprites named PINVA0, PINVB0, etc. Those sprites must be placed in a specific location within the project - in WAD files, make sure they're in between blank lumps called S_START and S_END; in PK3/ZIP files, they belong in a folder called Sprites.

I apologize if this post sounds patronizing, but if you weren't aware of the sprite alignment features, there's a decent chance you might not have known this info either.
XASSASSINX
Posts: 380
Joined: Tue Dec 20, 2016 4:53 pm
Location: MURICAA BROTHER! Just kidding, Brazil.

Re: Doom sprite not appearing!

Post by XASSASSINX »

Thank you! Now the sprite is correctly working! About the fact that i'm "spamming", I will stop that. I'm still learning how things work here. (just noticed that you said to me to make one trhead with all of my quetsions in another post)
Locked

Return to “Editing (Archive)”