PDA

View Full Version : Sprites sheet using Texture2D class




mlady
Mar 4, 2009, 06:24 AM
hi to all,

in my game I would like to use sprites sheet (similar to this http://www.yoyogames.com/extras/resource/file/san1/244/244/princespriteswb3.gif) so I don't need to load every file separately (while it uses lots of memory)

I am wondering how could I do that using Texture2D class. I will probably need to write new method just to show a crop from that sprite sheet, but maybe someone has experienced the same thing.


Thanks in advance.
martin