I am trying to accept inputs for special moves in a game I am making. The following code works fine inside of the Flash Pro program, but once it is compiled to a SWF it no longer works.
The buttons that I use for this are Z,A and C and none of them work. All I do is add a “Z” “A” or “C” to an array and pop the last one every time. If the 3 most recent inputs match what the special move is, it does the moves.
Again, it works fine in Flash, but once it’s in the SWF it doesn’t. Anyone know what I could be doing wrong?
public function TestSpecialAttack(SpecialAttack)
{
if(SpecialAttack[0] == playerInput[0] &&
SpecialAttack[1] == playerInput[1] &&
SpecialAttack[2] == playerInput[2])
return true;
}
Does Flash have a problem using those buttons properly in a SWF?
Thanks in advance.