Game Development Community

How do to use tile scripts?

by CharlesL · in iTorque 2D · 01/12/2012 (4:02 pm) · 4 replies

How do you use a tile script? Do you put in a class name(That didn't seem to work)? Do you put in the script name? Or do you put in the script itself?

Thanks,
CharlesL

#1
01/12/2012 (11:24 pm)
You create a new datablock (likely what you call class name, though you might by error use standard ones or use behaviors) with the proper name and then assign that to the tile in the editor / in the file.

Question is what you want to do with it / what you expect it to do.
#2
01/13/2012 (1:13 pm)
I wanted to be able to put bonuses in the tilemap(that dissolve when touched).
#3
01/13/2012 (5:19 pm)
Sounds more like you want to align objects with the grid of the tilemap as tiles on them don't work like normal objects
#4
01/14/2012 (1:29 pm)
OK, thanks.