Movement relative to the screen
by Eric Forhan · in Torque Game Engine · 11/17/2004 (9:57 am) · 4 replies
Does anyone have some insight, or know of a resource that would allow keyboard movement relative to the screen rather than relative to the direction the player is facing (isometric or top-down view)?
IOW, the "up" arrow would always move up the screen.
I'd like to keep the mouse for determining the direction the player faces, so if the he is moving to the left he can continue to face/fire toward the right (or any other direction).
Thanks.
-Eric
IOW, the "up" arrow would always move up the screen.
I'd like to keep the mouse for determining the direction the player faces, so if the he is moving to the left he can continue to face/fire toward the right (or any other direction).
Thanks.
-Eric
About the author
#2
Does that make better sense?
11/17/2004 (10:20 am)
The main camera would be isometric which tracks the player. So, if the player moves left but the mouse faces toward the right it'd be like he' walking backwards. Does that make better sense?
#3
Perhaps this is what you are looking for:
AdvancedCam Orbitmode Camera/Player Independant Rotation (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5934)
You need to have this resource already in:
Advanced Camera (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471)
The Advanced Camera is a great resource IMHO. If the Independant Rotation thing isn't EXACTLY what you're after I don't think, but it would be fairly easy to change.
If I remember correctly, it currently ALWAYS moves left when you press "LEFT" but you can still rotate the mouse freely. The difference will be that when you press a direction the player rotates to that orientation first. This shouldn't be TOO hard to disable as I said however.
I hope this helps.
11/17/2004 (12:51 pm)
Eric,Perhaps this is what you are looking for:
AdvancedCam Orbitmode Camera/Player Independant Rotation (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5934)
You need to have this resource already in:
Advanced Camera (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471)
The Advanced Camera is a great resource IMHO. If the Independant Rotation thing isn't EXACTLY what you're after I don't think, but it would be fairly easy to change.
If I remember correctly, it currently ALWAYS moves left when you press "LEFT" but you can still rotate the mouse freely. The difference will be that when you press a direction the player rotates to that orientation first. This shouldn't be TOO hard to disable as I said however.
I hope this helps.
#4
11/17/2004 (1:15 pm)
Hmm... that may be a start, anyway. Thanks.
Torque Owner Stefan Lundmark