Jump to content

Search the Community

Showing results for tags 'phaser button'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 2 results

  1. So I'm currently trying to implement controller support in my menu. The way I'm doing this right now is by pushing all the buttons into an array and when the player presses up or down on the dpad, they traverse through the array. But here's the issue. What do I use to access the callback parameter of the button? Essentially what I want to do is when the player reaches the button he wants to press in the array, I want to run the callback function. I know phaser does the automatically if you clicked the button. But what if I want to do it manually? if (contro
  2. I created a mobile app using phaser JS and used keyboard key (up/down/right/left) to move my player (hero) and it is working fine eg: if (cursors.up.isDown) { player.body.velocity.y = -100; } hero is moving upward smoothly on press and hold the up key when i used the button for moving the player up/down/right/left : game.add.button(0,0,'btnUp',function(){ player.body.velocity.y = -400; },this); I have added function on click.. but for moving the player I need to press that up button again and again , there is no such 'HOLD' . Also pressing again and again the button player is not movi
  • Create New...