🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

32x32, 32x64,16x16 does not matter..

Started by
-1 comments, last by HellRiZZer 23 years, 10 months ago
All those questions what someone was asking about, such as "what tile size I should use and how to make them work" is a little bit ... unreasonable.. you just have to think a little bit.. Let''s start?? ) ok, you got a tile, say 48 by 32. You want to place it on your engine 32x32 tiles. So, the thing you can do is : You can just say "if that kind of tile is on certain location then bitblt it there with your displacement. Explaining : You got Ground Tile as 1. So you say: for myx=0 to 10 for myy=0 to 10 blt it to myx(x-int(tile.lwidth-32)/2),myy(y-int(tile.lheight-32)/2) it means that if your tile is 32 pixels then tile.lwidth-32=32-32=0 x=0 if tile.lheight=48 then it will place it to: (48-32)/2=8 pixels above main coordinate y. Right?? ) Right. ) So, if you got a tile 48 by 48 and you want to palce it on 32x32 pixels engine, then use that way. Also you can add some IF''s statements in pre-rendering stage to specify you custom parameters. Like, if maparray(myx,myy)=2 then do something or set something to something. Or use CASE.. ) You get the idea??

This topic is closed to new replies.

Advertisement