We get it. We use ad blockers too. But GameDev.net needs to display ads in order to continue to be a great platform for you.
Please whitelist GameDev.net. We take safe browsing seriously and review our ads on a regular basis.
Also consider a GDNet+ subscription to remove bulk/3rd party ads.
Jump to content
This is not recommended for shared computers
Sign in anonymously
Don't add me to the active users list
Posted by Aercom
on 21 January 2013 - 04:55 PM
I recommend starting tile_num at 0, not 1!
Would be similar to this
//50 x 50 tiles
sprite_x_start = 32 * (tile_num % 50);
sprite_y_start = 32 * (tile_num / 50);
assuming sprite_y_start is an integer.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC