32x32, 32x64,16x16 does not matter..
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??
" Do we need us? "Ionware Productions - Games and Game Tools Development
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement