8 Point Directional Movement?
by Kevin Mitchell · in Torque Game Engine Advanced · 01/02/2009 (2:19 pm) · 4 replies
Anyone know if there's already a resource that removes the strife and back features of the arrow keys and just has the character always turn in the given direction and run straight?
I tried setting the keys like
$mvForwardAction = %val;
$mvYaw = 0;
$mvForwardAction = %val;
$mvYaw = 0.25;
$mvForwardAction = %val;
$mvYaw = 0.5;
$mvForwardAction = %val;
$mvYaw = 0.75;
And changing the += in the code from += to = but the screen just shakes and make me keep running forward. So before i try to reinvent the wheel is there a wheel out there already made?
I tried setting the keys like
$mvForwardAction = %val;
$mvYaw = 0;
$mvForwardAction = %val;
$mvYaw = 0.25;
$mvForwardAction = %val;
$mvYaw = 0.5;
$mvForwardAction = %val;
$mvYaw = 0.75;
And changing the += in the code from += to = but the screen just shakes and make me keep running forward. So before i try to reinvent the wheel is there a wheel out there already made?
About the author
Riding Solo since 2005. Current Project: Fated World 2005-Present RPG Engine Tool Kit - Now available.
#2
03/19/2009 (11:33 pm)
setGodViewMode in Advanced Camera ,maybe that's what you want.
#3
06/07/2009 (3:51 am)
@Kevin: ever get the 8-way directional movement working with advanced camera god view or orbit view?
#4
www.garagegames.com/community/resource/view/5474/3#comments
Currently works with Advanced Camera god mode view, but only for 0 to PI (ie, my character won't walk left).
06/07/2009 (10:56 pm)
Btw, I posted some comments here about my progress:www.garagegames.com/community/resource/view/5474/3#comments
Currently works with Advanced Camera god mode view, but only for 0 to PI (ie, my character won't walk left).
Torque Owner Jules
Something2Play