Game Development Community

Programming in T2d

by Jacob Wagner · in Torque Game Builder · 07/27/2005 (12:16 pm) · 1 replies

I am kind of confused as to how to program for torque 2d what with the event driven approach and no main loop.

Here's an example of what I'm working on:

for an rpg game, I want my character to only be able to move 1 tile at a time, kind of like Dragon Warrior 1 or final fantasy 1 or any very old school rpg.

I thought I could use a timer, and at the end of the timer, the character stops moving, but I figure that if I do that, eventually the character wont be lined up exactly anymore.

If I had a main loop, I could just check the players coordinates and stop him from moving once he got at the right location.

Can anyone tell me how to do this ? I'm sure its very simple but I am just lost.

Matthew, where is your RPG tutorial? Hehe

#1
07/27/2005 (12:29 pm)
Sorry, I didn't realize that matthew had made a tutorial on this very subject:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7576