Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Sprite Map Tutorial

Author
Message
madmunkey
11
Years of Service
User Offline
Joined: 9th May 2012
Location: United Kingdom
Posted: 12th Jun 2012 19:56 Edited at: 12th Jun 2012 19:56
Can anyone post an example of how to cut a sprite sheet with DarkGDK.NET and store them in an array

something like this for example...

jojoofu
15
Years of Service
User Offline
Joined: 23rd Feb 2009
Location: Where ever Carmen Sandiego is
Posted: 12th Jun 2012 20:08
Are all off the images stored in one file , like a GIF for example ?

" The best slaves are the ones who think they are free. "
madmunkey
11
Years of Service
User Offline
Joined: 9th May 2012
Location: United Kingdom
Posted: 12th Jun 2012 20:10
They are, the actual file I want to do is this so need to make the pink transparent and slice it up into characters/monsters etc...

madmunkey
11
Years of Service
User Offline
Joined: 9th May 2012
Location: United Kingdom
Posted: 13th Jun 2012 16:45
Managed to work this out myself

Had to split the image up so I just had one Row on Monsters/Characters then did the following



Any comments welcome if this is the wrong way or there is a better way
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 14th Jul 2012 02:19
In the past, especially in the days of the Atari ST and Amiga 1200 when using sprite sheets, I always ended up writing a utility program to define a data file which stores the coordinates of each sprite on the sheet.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-03-29 07:51:50
Your offset time is: 2024-03-29 07:51:50