Moving NPC - Last Piece of the Puzzle
by Yuen Choi · in Torque Game Builder · 04/19/2009 (8:57 pm) · 1 replies
I am trying to make a diner Dash type of game. I managed to get my NPCs to spawn at a scheduled interval. Each NPC has its own hunger level so depending on what their hunger level is, they will travel to certain parts of the game world. I've been trying to make this final part of the gameplay work but it just isn't working.
Can anybody help me figure out how to accomplish this?
So the pseudocode is as follows:
Spawn NPC
Check Hunger Level
If Hunger Level == 0 then send them to station 1
If Hunger Level == 1 then send them to station 2
Once NPC1 gets their food go to Table 1
NPC2 gets food, go to Table 2
After done eating Go to the Exit Trigger
If it's all conditioned, do I still need to use the onUpdate() function?
Can anybody help me figure out how to accomplish this?
So the pseudocode is as follows:
Spawn NPC
Check Hunger Level
If Hunger Level == 0 then send them to station 1
If Hunger Level == 1 then send them to station 2
Once NPC1 gets their food go to Table 1
NPC2 gets food, go to Table 2
After done eating Go to the Exit Trigger
If it's all conditioned, do I still need to use the onUpdate() function?
Torque Owner michael bailey