Game Development Community

Combo movements

by Tom · in Game Design and Creative Issues · 04/16/2006 (2:30 pm) · 1 replies

Hi,
i got the xbox 360 controller to work with my computer, and i use the two analoug sticks. however, i wish to incooerate combo moves into my game. (like moving the movemnt stick one back back an left to make a special move ore something- think soul calibure) i was wondering if anyone has any ideas how i could do this.

also maybe for sword fighting games, where its if the character is stil, its a horizontal slash, a quick forward and the hit button, s like a poke attack and circle and hit button is like a storm attack ( think zelda- majoras mask)

*on a seperate note, can i echo the values of variables into the councel wndow? *i did the log fiel, but i would need it in real time*

#1
04/18/2006 (5:06 pm)
What you would do is find the movement code in client/scripts/default.bind.cs and find for say
function moveleft(%val)
{
   $mvLeftAction = %val * $movementSpeed;
}
then change that to
function moveleft(%val)
{
   $mvLeftAction = %val * $movementSpeed;
   $LeftDown = %val;//val = 1 if button down 0 if up
}
then find whatever attack code you want I am just using the fire weapon code.
function mouseFire(%val)
{
   if($LeftDown)
     TriggerLeftAttack();
   else
     TriggerNormalAttack();
}
you would need to define those two functions but that would be the bare basics.