OpenXcom Forum

Modding => Help => Topic started by: The Martian on May 14, 2022, 01:36:51 pm

Title: How are the sprite sheets for bullet sprites laid out?
Post by: The Martian on May 14, 2022, 01:36:51 pm
Could someone please explain the layout of the bullet sprite images?
(https://openxcom.org/forum/index.php?action=dlattach;topic=10557.0;attach=56896)

How does this animate and how big is each frame?

What part is the bullet and what part is the trail that follows it?
Title: Re: How are the sprite sheets for bullet sprites laid out?
Post by: Nord on May 15, 2022, 04:21:11 am
Each bullet is a chain of a squares of 3x3 pixels, from left to right. For example, when you shoot stright right side, bullet sprite will be turned like that in pixels: ...9,10,11,6,7,8,3,4,5,0,1,2.
Title: Re: How are the sprite sheets for bullet sprites laid out?
Post by: The Martian on May 15, 2022, 01:03:35 pm
It was chains like this that were throwing me off as there are dots before the larger blocks and I thought it was an animation loop of some kind:
(https://openxcom.org/forum/index.php?action=dlattach;topic=10557.0;attach=56913)

But after watching it closely ingame I see what you are describing:
(https://openxcom.org/forum/index.php?action=dlattach;topic=10557.0;attach=56914)

Thank you for the help.