Move = null on respawn
by Dan Pascal · in Torque X 2D · 11/02/2007 (8:57 am) · 2 replies
When I respawn my character which has the MovementComponent, I lose movement control.
I debug: in the ProcessTick method of the new spawned MovementComponent, the "move" parameter, which should have the snapshot of the controller input is NULL. Since this is called by the engine, it is most mysterious...
I know it's difficult to diagnose without me getting into details, but what could be causing this?
The input map?
I debug: in the ProcessTick method of the new spawned MovementComponent, the "move" parameter, which should have the snapshot of the controller input is NULL. Since this is called by the engine, it is most mysterious...
I know it's difficult to diagnose without me getting into details, but what could be causing this?
The input map?
About the author
#2
it's being called and all the variables are being created and assigned....
nasty bit of trickery
I'll post the code with the next installment- bugs included; maybe you can shed some light on it then,
Thanks
11/02/2007 (10:47 am)
Hey John, I checked PlayerManager.Instance.GetPlayer(playerIndex).ControlObject it's being called and all the variables are being created and assigned....
nasty bit of trickery
I'll post the code with the next installment- bugs included; maybe you can shed some light on it then,
Thanks
Associate John Kanalakis
EnvyGames
John K.