Driftwood Gaming
Knight
- Xy$
- 0.00
I'm looking for some code that shows how to use Input.isPressed('up') or ('left') or ('right') or ('down') etc...
What commands can I put in the (' ') and why isn't this working?
p, li { white-space: pre-wrap; }
if (Input.isPressed('right') && Input.isPressed('down') && Input.isPressed('left'))
{ $gameMessage.setBackground(1);
$gameMessage.setPositionType(2);
$gameMessage.add("Blitz Activated: Aura Storm >All Enemies -1000HP");
$gameTroop.members()[1].startAnimation(185, false, delay15);
$gameTroop.members()[1].gainHP(-1000);
} else {
$gameMessage.setBackground(1);
$gameMessage.setPositionType(2);
$gameMessage.add("Incorrect Blitz Combo"); }
[doublepost=1447399638,1447399550][/doublepost]It doesn't crash but it is only accepting the else handler every time. So I can't even test the IF statement's contents.
What commands can I put in the (' ') and why isn't this working?
p, li { white-space: pre-wrap; }
if (Input.isPressed('right') && Input.isPressed('down') && Input.isPressed('left'))
{ $gameMessage.setBackground(1);
$gameMessage.setPositionType(2);
$gameMessage.add("Blitz Activated: Aura Storm >All Enemies -1000HP");
$gameTroop.members()[1].startAnimation(185, false, delay15);
$gameTroop.members()[1].gainHP(-1000);
} else {
$gameMessage.setBackground(1);
$gameMessage.setPositionType(2);
$gameMessage.add("Incorrect Blitz Combo"); }
[doublepost=1447399638,1447399550][/doublepost]It doesn't crash but it is only accepting the else handler every time. So I can't even test the IF statement's contents.