How to use sprite sheets?
#3
(09-09-2022, 12:39 AM)40wattstudio Wrote: I have a program that can create sprite sheets (Texturepacker), but now that I have a sprite sheet, I'm not sure how I would implement it in QB64/PE.
You could use a program like Windows Paint (Windows) or GIMP (Linux) that shows you the current position of the mouse cursor in pixels. Then make rectangular selections around the picture elements to get the top and left coordinates, and the width and height of each sprite. This promises a long time of hard work, and experimentation and it's not for the lazy. The considerate people creating the sprite sheets create sprites that require the same width and height which would make programming easier, but the sprites have to be gathered correctly. You have to watch out because some larger screen elements (like a boss in an arcade game) could occupy two or more squares of an "unit" in the sprite sheet.
Reply


Messages In This Thread
How to use sprite sheets? - by 40wattstudio - 09-09-2022, 12:39 AM
RE: How to use sprite sheets? - by James D Jarvis - 09-09-2022, 12:50 AM
RE: How to use sprite sheets? - by mnrvovrfc - 09-09-2022, 12:57 AM
RE: How to use sprite sheets? - by 40wattstudio - 09-09-2022, 02:47 PM
RE: How to use sprite sheets? - by bplus - 09-09-2022, 01:52 AM
RE: How to use sprite sheets? - by 40wattstudio - 09-09-2022, 02:00 AM
RE: How to use sprite sheets? - by 40wattstudio - 09-09-2022, 01:23 PM
RE: How to use sprite sheets? - by TerryRitchie - 09-09-2022, 02:34 PM
RE: How to use sprite sheets? - by 40wattstudio - 09-09-2022, 02:43 PM
RE: How to use sprite sheets? - by 40wattstudio - 09-12-2022, 10:31 AM
RE: How to use sprite sheets? - by TerryRitchie - 09-13-2022, 01:53 AM
RE: How to use sprite sheets? - by 40wattstudio - 09-09-2022, 01:57 AM
RE: How to use sprite sheets? - by Pete - 09-12-2022, 03:54 PM



Users browsing this thread: 3 Guest(s)