Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualwarnexus

Posted 05 July 2013 - 08:12 PM


if (inputClass.IsActionSequence(PLAYER_MOVEDOWN, PLAYER_MOVEDOWN_FORWARD, PLAYER_MOVEFORWARD))
{
//Do something - Hadouken!
}

 

If I decided to change the button sequence of the fighters' move during development at some point, the above code looks more read-able to me. 


#1warnexus

Posted 05 July 2013 - 08:08 PM


if (inputClass.IsActionSequence(PLAYER_MOVEDOWN, PLAYER_MOVEDOWN_FORWARD, PLAYER_MOVEFORWARD))
{
//Do something - Hadouken!
}

 

If you decided to change the button sequence of the fighters' move during development at some point, the above code looks more read-able.


PARTNERS