Game Development Community

Noob TGB question - class for tiles in a tilemap

by James Staggs · in Torque Game Builder · 07/22/2015 (7:00 am) · 2 replies

Hi all, still running TGB (editors), and I have a tilemap for my "hard" level components, but for a few specific tiles, i'd like to assign them a class so they can spawn enemies, take damage, mount turrets, etc. I know I can assign a class to the whole tilemap, but what about a given tile?

Thanks!
JMS

#1
07/22/2015 (10:36 am)
The solution is "Active Tiles".

It's been a looong while since I've used TGB but I think that it has to be created in C++.

In any case, here are the most relevant posts about it.

Blog post 1
Blog post 2
#2
07/23/2015 (12:50 pm)
Awesome, yet again thanks for your help.
I think what I'm going to do to keep it simple is create smaller tilemaps for various components of the level, put mount points on the tilemap, and mount devices/turrets etc to the tilemap rather than try to script specific tiles. Then I'll clone and place those tilemaps as needed.

Thanks!
JMS