Game Development Community

Only one component calling processtick()

by Matt Kenley · in Torque X 2D · 10/19/2007 (10:16 am) · 1 replies

Hey all,

I have 1 component for the main character which moves him with the mouse, this works fine.

I have another component which rotates a shoulder cannon and fires, but the process tick method does not seem to be called for this component. I applied the component to the cannon and did an output to the screen, but got nothing back. Please help me out.

#1
10/19/2007 (10:48 am)
Sorry guys, I made a dumb mistake, they add a line of code for you in the movementcomponent which calls this tick method: ProcessList.Instance.AddTickCallback(Owner, this); So if anyone is having this same problem, put that line in the onRegister method.