NRJ

Members
  • Content Count

    7
  • Joined

  • Last visited

About NRJ

  • Rank
    Newbie

Profile Information

  • Gender
    Male

Recent Profile Visitors

77 profile views
  1. NRJ

    Handle button hover in Phaser 3?

    var button; function preload() { this.load.spritesheet( 'btn' , 'assets/playgame.png' ,{frameWidth:256,frameHeight:64}); } function create () { button=this.add.sprite(400,300,'btn').setInteractive(); button.on('pointerover',function(pointer){ button.setFrame(1); }) button.on('pointerout',function(pointer){ button.setFrame(0); }) }
  2. NRJ

    How to make buttons in phaser 3?

    Thank you ,prob.
  3. NRJ

    How to make buttons in phaser 3?

    I want to change the frame of the button spritesheet depending upon the mouse events as described in the image url below. I have done this very easily in phaser 2.
  4. I want to make an animated image button in phaser 3 which changes its frame based on events such as pointerout, pointerover and pointerdown.
  5. NRJ

    How to make phaser game full screen?

    I will take a look at this, thanks.
  6. NRJ

    How to make phaser game full screen?

    I will take a look at these options, thanks.
  7. Hello everyone, I am new to phaser,can anybody provide me a simple example on how to make the game occupy the full width and height of the mobile screen(not the inner width and height of the browser, completely full screen). I am currently using Phaser3.14.