tutorial-war-battles icon indicating copy to clipboard operation
tutorial-war-battles copied to clipboard

Up&left don't work with Fire

Open leomil72 opened this issue 2 years ago • 2 comments

I've tried the tutorial on my Linux box (Kubuntu 22.04) with Defold 1.4.4. I can move the player in any of the 8 directions and fire a rocket anywhere expect to the up&left direction. Curiosly, it doesn't get the combination of moving and firing in such direction.

This is confirmed by a "print(action_id)" that I put inside "on_input" function in the player.script file: when I press the up&left keys together with the fire (space) I only get a sequence of "[up]" and "[left]" while the other combinations give also the "[fire]" action_id.

leomil72 avatar Apr 08 '23 17:04 leomil72

Probably this: https://forum.defold.com/t/war-battles-tutorial-no-rocket-if-up-left-are-pressed/70131

britzl avatar Apr 10 '23 06:04 britzl

I can confirm that changing the "fire" key to another key other than space solves the problem. Very strange. But this is not a fix, it's just a work-around.

leomil72 avatar Apr 10 '23 14:04 leomil72