Jump to content

How to make charakter info or Eq popup window?


Mizukage
 Share

Recommended Posts

I assume you're talking about user interfaces.

 

You can just create a Phaser.Group of Phaser.Sprite,  Phaser.Text, and Phaser.Button elements that will make up 

 

If you are specifically talking about animations, you can use Phaser.Tweens  for things like fading in and fading out, popping in and popping out, etc.

Link to comment
Share on other sites

Thanks for tip, i make this menu ui/ux and working fine

    characterMenu: function () {                this.menuOn = true;                playerMenu = this.game.add.sprite(this.game.camera.x + 30, this.game.camera.y + 120, 'playerMenu');                close = this.game.add.button(this.game.camera.x + 215, this.game.camera.y + 123, "close", this.characterMenuClose, this);                menuTextWeapon = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 415, "Weapon - "+this.player.weapon.name,        { font: "18px Arial", fill: "#000", align: "center" });                       menuTextStr = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 440, "Strength - "+this.player.str,        { font: "18px Arial", fill: "#000", align: "center" });                        menuTextAgi = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 465, "Agility - "+this.player.agi,        { font: "18px Arial", fill: "#000", align: "center" });                menuTextExp = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 140, "Experience \n"+this.player.exp+' / '+this.lvl1Exp,        { font: "18px Arial", fill: "#000", align: "center" });                menuTextAttack = this.game.add.text(this.game.camera.x + 185, this.game.camera.y + 225, "Attack \n"+this.playerDmg,        { font: "18px Arial", fill: "#000", align: "center" });                close.scale.setTo(1.1);        playerMenu.scale.setTo(1.2);    },    characterMenuClose: function () {        playerMenu.kill();                close.kill();        menuTextWeapon.kill();        menuTextStr.kill();        menuTextAgi.kill();        menuTextExp.kill();        menuTextAttack.kill();                this.menuOn = false;    },
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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