Game Development Community

Some questions on tiles...

by Vinicius Gouveia · in Torque Game Builder · 07/16/2009 (6:03 am) · 2 replies

There's some stuff that I wanted to do with tiles but I can't find documentation that explains how to do it, and even though I don't know about them, I know that it is posible to do it.

What I wanted to do is:
1- Move the character tile by tile (Arcade-esque feel :P )
2- Move/Spawn enemies on tiles
3- Randomly spawn objects on the tiles

Also, if you guys know any documentation that says stuff about'em, I would be most grateful.

Thanks!

#1
08/17/2009 (5:27 am)
I would also be interested in documentation that actually works with the version of TGB (1.7.4) I own.
#2
08/17/2009 (10:53 am)
i dont have the docs at hand right now, but i know there are functions that let you know what tile are you in, set it up, and some more...

if im not mistaken, you might find some stuff about tiles in the 1.7.2 documentation.

now, to move the char tile by tile, you should know how big are the tiles (theres a function for that), and set up the player to sit in the very middle (for ease of calculation) of the tile, then when moving, just make it move the size of the tile in the desired direction.

to spawn enemies... jsut decide in what tile you want it to spawn...

im gonna leave it as that right now, but im gonna look into the docs, i know i've worked with that kinda things, i just dont rmember the methods right now.