Jump to content

1.1.3 keyboard input name


xronn
 Share

Recommended Posts

Thanks, i'm trying to kill/remove a sprite when I hit space but the sprite isn't being removed it just stays drawn.

shopClose = this.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);shopUI = this.add.sprite(0, 0, 'shopUI');if (shopClose.isDown){    shopUI.kill();}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...