My avatar freezes
by Mark Brown · in Torque Game Engine · 04/27/2007 (3:09 pm) · 2 replies
Ahhhhhggg...!!!
A year of frustration from one problem.
Using Torque Game Engine 1.4.2
My avatar freezes!
My project is a randomly generated 3D maze constructed from a huge library of rooms and spare parts. It works very well most of the time.
But... occasionally my avatar freezes. I run the game with the avatar hidden ( camera only ). When frozen, the keyboard and mouse motion commands no longer work (including jump ). The viewing commands work fine. I can spin around in all directions and look up and down.
I recently hooked up a new keyboard command ( using the "u" key ) as follows:
function Unstick(%val)
{
%position = $global_player.getTransform ( );
%position = vectorAdd ( ".2 .2 .75", %position );
$global_player.setTransform ( %position );
}
When stuck, I press the "u" key and it works as expected, that is the avatar/camera rises and moves over slightly. However it is not subject to gravity. Repeated pressing of the "u" key simply causes the avatar/camera to rise steadily up thru the building and into the sky. I still have full viewing control but no motion or gravity.
1) Why would I loose motion control ( usually at or near the top of stairs )?
2) How do I regain motion control?
A year of frustration from one problem.
Using Torque Game Engine 1.4.2
My avatar freezes!
My project is a randomly generated 3D maze constructed from a huge library of rooms and spare parts. It works very well most of the time.
But... occasionally my avatar freezes. I run the game with the avatar hidden ( camera only ). When frozen, the keyboard and mouse motion commands no longer work (including jump ). The viewing commands work fine. I can spin around in all directions and look up and down.
I recently hooked up a new keyboard command ( using the "u" key ) as follows:
function Unstick(%val)
{
%position = $global_player.getTransform ( );
%position = vectorAdd ( ".2 .2 .75", %position );
$global_player.setTransform ( %position );
}
When stuck, I press the "u" key and it works as expected, that is the avatar/camera rises and moves over slightly. However it is not subject to gravity. Repeated pressing of the "u" key simply causes the avatar/camera to rise steadily up thru the building and into the sky. I still have full viewing control but no motion or gravity.
1) Why would I loose motion control ( usually at or near the top of stairs )?
2) How do I regain motion control?
About the author
#2
The random maze "maze_mission.mis" is generated before the game begins and is not altered during the game.
How would I get going again?
04/27/2007 (5:04 pm)
How would I inspect the area for "collision gaps"?The random maze "maze_mission.mis" is generated before the game begins and is not altered during the game.
How would I get going again?
Associate David Montgomery-Blake
David MontgomeryBlake