• Content Count

  • Joined

  • Last visited

About NRJ

  • Rank

Profile Information

  • Gender

Recent Profile Visitors

556 profile views
  1. 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. 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.
  3. I want to make an animated image button in phaser 3 which changes its frame based on events such as pointerout, pointerover and pointerdown.
  4. I will take a look at this, thanks.
  5. I will take a look at these options, thanks.
  6. 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.