User:Jimita/SpriteInfo

From SRB2 Wiki
Jump to navigation Jump to search

Sprites

SpriteInfo formats

[explanation of SpriteInfo and SOC Sprite blocks]

SPRTINFO

Bruh:

Sprite NAME
{
	Frame frame character
	{
		XPivot x
		YPivot y
		RotAxis axis
	}
	Frame frame character
	{
		XPivot x
		YPivot y
		RotAxis axis
	}
	...
}

[explanation of Frame keywords]

Sprite2 NAME
{
	Skin skin name
	Skin another skin name
	Frame frame character
	{
		XPivot x
		YPivot y
		RotAxis axis
	}
	Frame frame character
	{
		XPivot x
		YPivot y
		RotAxis axis
	}
	...
}

[explain the difference between Sprite and Sprite2]

Example

Sprite2 NFLY
{
	Skin sonic
	Frame A
	{
		XPivot 22
		YPivot 47
		RotAxis Z
	}
}

SOC SpriteInfo

SpriteInfo NAME
	Frame frame character
		XPivot = x
		YPivot = y
		RotAxis = axis
SpriteInfo NME2
	Frame frame character
		XPivot = x
		YPivot = y
	Frame frame character
		YPivot = y
		RotAxis = axis
	...
Sprite2Info NAME
	Skin skin name
	Frame frame character
		XPivot = x
		YPivot = y
		RotAxis = axis
Sprite2Info NAME
	Skin skin name
	Skin another skin name
	Frame frame character
		XPivot = x
		YPivot = y
	...

Example

Sprite2Info STND
	Skin sonic
	Frame A
		XPivot = 18
		YPivot = 54
Sprite2Info WAIT
	Skin sonic
	Frame A
		XPivot = 18
		YPivot = 54
	Frame B
		XPivot = 18
		YPivot = 54