frozenpeas
Technical User
Hello,
I've made a game. But as soon as I enable buttonMode for my buttons ('play game', 'instructions', etc) it breaks my keyboard controls for the game.
Once I set btnPlay.buttonMode = true, the keyIsDown function is no longer fired.
Any ideas? Thanks.
frozenpeas
I've made a game. But as soon as I enable buttonMode for my buttons ('play game', 'instructions', etc) it breaks my keyboard controls for the game.
Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);
Once I set btnPlay.buttonMode = true, the keyIsDown function is no longer fired.
Any ideas? Thanks.
frozenpeas