Query about making an event occur
by Daniel Novatnak · in Torque Game Builder · 01/22/2008 (11:28 am) · 1 replies
Right now in my code the user can click a stove and the avatar moves to a spot in front of the stove.
At this point I want the avatar to do an animation when it arrives, and update some values. I know how to animate and manipulate its values, but not a clue as to how to trigger it.
I thought that giving the avatar a field called destPosition (which is the desired position) and when destPosition == avatar's position then I would trigger the event and have the avatar move to the next position that's stored in an a queue. However, I don't know where to actually place this code, nor if it will actually work.
Any ideas? Please be very thorough.
At this point I want the avatar to do an animation when it arrives, and update some values. I know how to animate and manipulate its values, but not a clue as to how to trigger it.
I thought that giving the avatar a field called destPosition (which is the desired position) and when destPosition == avatar's position then I would trigger the event and have the avatar move to the next position that's stored in an a queue. However, I don't know where to actually place this code, nor if it will actually work.
Any ideas? Please be very thorough.
Torque Owner Dan Maruschak