tilde key affects game?
by David Horn · in Torque X 3D · 05/24/2009 (6:23 pm) · 0 replies
I've been working with different code that determines movement.
The code I have in a Movement Component in an _UpdateInput function created using the torque book barely works.
HOWEVER, when I hit the tild (`) key to bring up the console (for use with the TorqueConsole.Echo code), then hit the tilde key again, it works perfectly.
If I move it via physics, the ship barely moves if not at all, but I toggle the output screen and it works fine.
If I move the ship by increasing and decreasing the x position, it runs INCREDIBLY choppy. Then I toggle the output screen and it's perfectly fine.
Any idea as to why toggling the output screen would suddenly "jolt" my game into working correctly?
*EDIT I actually find that it only works if I use the TorqueConsole.Echo(px.ToString());
If I take out the TorqueConsole.Echo command, it doesn't work even if I toggle the ouput window???
The code I have in a Movement Component in an _UpdateInput function created using the torque book barely works.
HOWEVER, when I hit the tild (`) key to bring up the console (for use with the TorqueConsole.Echo code), then hit the tilde key again, it works perfectly.
If I move it via physics, the ship barely moves if not at all, but I toggle the output screen and it works fine.
If I move the ship by increasing and decreasing the x position, it runs INCREDIBLY choppy. Then I toggle the output screen and it's perfectly fine.
Any idea as to why toggling the output screen would suddenly "jolt" my game into working correctly?
*EDIT I actually find that it only works if I use the TorqueConsole.Echo(px.ToString());
If I take out the TorqueConsole.Echo command, it doesn't work even if I toggle the ouput window???
About the author