How to acess a tile
by zackl · in Torque Game Builder · 08/04/2010 (5:05 pm) · 4 replies
Hey could someone tell me how I can access a tile/tiles in script that is assigned a particular imagemap.
would it be something like this.
%this.t2dTileLayer.image = "imageMap"
I am trying to use an if statement that grabs a tile that I have a background image on.
thanks for any help.
would it be something like this.
%this.t2dTileLayer.image = "imageMap"
I am trying to use an if statement that grabs a tile that I have a background image on.
thanks for any help.
#2
08/04/2010 (5:33 pm)
thank you for your reply.I looked at the documentation but I don't see anyway to access a tile that already has a imageMap on it.I don't want all the tiles the same I am trying just to set custom data on particular tiles.Maybe I am just not getting it. I really hate being a n00b.
#3
Are you trying to get the image map that is on the tile or the custom data that is set on the tile?
08/04/2010 (5:42 pm)
Ahh, sorry, it seemed from the code that you posted, that you were trying to set the image map for a tile. Are you trying to get the image map that is on the tile or the custom data that is set on the tile?
#4
08/04/2010 (5:57 pm)
I am trying to set the custom data on a tile based on if it has a image map on it or not. Basically I went through the match 3 tutorial and I am trying to figure out how to have different layouts instead of just a square grid. I am thinking it needs to be based off the background of the the tile as to wether or not a tile will get generated.If that makes any sense... it has been a long night and my brain hurts.. oh how I love coffee.
Torque Owner RollerJesus
Dream. Build. Repeat.
This link explains all.