oxxxo

Members
  • Content Count

    19
  • Joined

  • Last visited

  1. hey , thanks I will try to implement this code
  2. I am not sure if I am describing it right... on the topic title but I was wondering if there is a tween function in phaser that lets the button pops out a little bit to signify that this button has been tap.. I cant describe it but here is an example http://themostclickedbutton.com/
  3. I had already tried, storing it in local browser storage.. but this is not what really I wanted.. I want players to submit there score into some server .. and have there score ranked..
  4. Hi im planning to add an online leaderboard to my game.. The player does not need to log in the game, they just play and once the game is finish they will be ask for a name and submit that name along with the score to the leaderboard.. I had research some google REST API and some stuff are still quite confusing.. any help is appreciated.. thanks..
  5. oxxxo

    Make image wave..

    thanks, I have not found these examples...
  6. oxxxo

    Make image wave..

    Is there a function in phaser tween that makes the image wave like a flag?
  7. I noticed that the timer event also stop when the user switch tab or look at another window then start again once you come back to the tab where the game is open. is there a away to change this? or is it possible for the timer to be continuous even the user leave the browser?
  8. when I was using 2.0.4 version the screen resizing was good.. it responds to every screen size with proper scaling but when upgrading to 2.3.0 the screen resizing was not that efficient... when I am on my browser is just sets on full browser size this is what i added on the index.html: <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width">and this is on the Boot.js file: this.input.maxPointers = 1;this.stage.disableVisibilityChange = false;this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.scale.minWidth = 320;this.scale.minHeight = 480;this.scale.pageAlignHorizontally = true;this.scale.pageAlignVertically = true;this.stage.forcePortrait = true;this.scale.setScreenSize(true); What would I change so that is just changes to proper screen size
  9. I am trying to change the color of the sprite using tint, however after certain milliseconds the color will go back to its original color, My goal is just to let the user know that there is a color change at some moment. var button = this.add.sprite(10, 750, this.drawButtons(0, 0, 160, 160, 20, "yellow" )); button.inputEnabled = true;function returnColor(){ button.tint = 0xffff33;}function changeColor () { button.tint = 0xff0000; this.time.events.add(50, this.check, this).autoDestroy = true;; }function update() { this.button.events.onInputDown.addOnce(changeColor, this);}the timer actually works, however the longer you are on the game the longer the color change responds.. it seems like the timer event is adding up the time.. what is the right way to implement this?
  10. yah right.. here what solved my problem: this.choice1 = this.add.sprite(10, 750, this.drawButtons(0, 0, 160, 160, 20, "yellow" )); this.choice1.inputEnabled = true; this.showChoice1 = this.add.bitmapText(0 ,0,'gamefont', '' + this.choice , 110); this.choice1.addChild(this.showChoice1); this.showChoice1.anchor.setTo(0.5, 0.5); this.showChoice1.x = 78; this.showChoice1.y = 74;I manually set the coordinates inside the parent object then having set the anchor to 0.5 sets the bitmap text at the center what ever size it is..
  11. Hi, I appreciate all for your help .. I had figured out the way how to center it.. thanks
  12. Hi , ur right Im not using the current version of Phaser.. I already downloaded the newest one and implement it. However I could not still center the bitmaptext in its parent: Heres the remodelling code, this.choice1 = this.add.sprite(10, 750, this.drawButtons(0, 0, 160, 160, 20, "yellow" )); this.choice1.inputEnabled = true; this.showChoice1 = this.add.bitmapText(0 ,0,'gamefont', '' + this.choice, 105); this.choice1.addChild(this.showChoice1); this.showChoice1.anchor.x = 0.5 this.showChoice1.anchor.y = 0.5;
  13. it is a bitmapText: which I declared like this, this.showChoice1 = this.add.bitmapText(50 ,this.choice1.centerY - 10,'gamefont', '' + this.choice, 100);this.choice1.addChild(this.showChoice1);
  14. I tride it and it doesnt work: this is how I add a bitmap to the sprite: this.choices.addChild(this.showChoice1); this.showChoice1.anchor.x = 0.5;this.showChoice1.anchor.y = 0.5; its says x in not define
  15. I added a bitmap text as a child of a sprite but I can't position the text in its center.