[TEXTUREs] What is wrong with thee sprites?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Ravick
Posts: 2053
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

[TEXTUREs] What is wrong with thee sprites?

Post by Ravick »

Hi there.

I've included the atipork's sprites/gfx from Hexen in a pk3, but it keeps floating and "bobbing". I'd like to also have a variant of it that appears as a static golden pig statue with rotations. So, I set the following in my TEXTUREs lump, to create new sprites with the same graphics:

Code: Select all


Sprite PORCA1, 15, 15
{
	Patch PORKA0, 7, 15
}

Sprite PORCA2, 21, 16
{
	Patch "PORKB0", 10, 16
}

Sprite PORCA3, 26, 14
{
	Patch PORKC0, 13, 14
}

Sprite PORCA4, 20, 13
{
	Patch PORKD0, 10, 13
}

Sprite PORCA5, 15, 13
{
	Patch PORKD0, 7, 13
}

Sprite PORCA6, 20, 13
{
	Patch PORKF0, 10, 13
}

Sprite PORCA7, 25, 14
{
	Patch PORKG0, 12, 14
}

Sprite PORCA8, 21, 16
{
	Patch PORKH0, 10, 16
}
However, the actor is invisible in game. It spawns and works as it should, but have no sprites. I don't get any error msg at the console.
What am i doing wrong?

Thanks in advanced!
Post Reply

Return to “Scripting”