View Full Version : help please
screen_name
03-21-2002, 05:35 AM
okay, im starting to use addtiledef and addtiledef2
now, i made one tile (16x16) for a grass tile
now how do i use addtiledef and addtiledef2 to replace the other grass tiles
i've tried using the x and y in pics1.png for the grass tile, the x and y in the level, and various other ways
can someone please explain please
neomaximus2k
03-21-2002, 06:27 AM
Originally posted by screen_name
okay, im starting to use addtiledef and addtiledef2
now, i made one tile (16x16) for a grass tile
now how do i use addtiledef and addtiledef2 to replace the other grass tiles
i've tried using the x and y in pics1.png for the grass tile, the x and y in the level, and various other ways
can someone please explain please
if i can recall it is somet like
addtiledef2 grass.png,0,0,16,16
basicly
image,X,Y,width,height
SaijinGohan
03-21-2002, 07:43 AM
addtiledef2 image,level,x coordinate for pics1,y coordinate for pics1
screen_name
03-21-2002, 07:45 AM
but what if the image has more than one tile in it
say i have a image 32x32 with a grass tile, flower, and then under those 2 water tiles
how would i get those to replace the other ones properlly
screen_name
03-21-2002, 09:13 AM
okay everyone, i figured it out
thanks though :D
Spanko
03-21-2002, 08:18 PM
For other people who're wondering, the x and y in addtiledef2 are in fact the exact location in pixels on the image pics1.png (Or whatever your tileset is at that time)
screen_name
03-21-2002, 10:30 PM
yeah, thats what i finally figured out :D
anyways, i just copied the whole pics1.png and then starting making tiles and replaced whatever they were on the pics1
and just set the tiledef at 0,0
:D
anyways
Falcor
03-21-2002, 10:32 PM
a WHOLE NEW tileset just for a couple tiles? My firend, i think that defeats the purpose....
screen_name
03-22-2002, 12:31 AM
Originally posted by Falcor
a WHOLE NEW tileset just for a couple tiles? My firend, i think that defeats the purpose....
but im starting to redo everything
neomaximus2k
03-22-2002, 01:07 AM
Originally posted by screen_name
but im starting to redo everything
yes it is but why not just use addtiledef not addtiledef2???
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.