newbie11

Members
  • Content Count

    5
  • Joined

  • Last visited

About newbie11

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi! can anyone tell me how to put some value on my "score" i already use if (playState.score <= 3){ game.add.text(20, 20, "practice more",{font: '50px Sports World', fill: '#b7e2fe'}); but it doenst work var winState = { create: function () { game.add.tileSprite( 0, 0, 1000, 490, "background3") if (playState.score >= loadState.hiscore) { loadState.hiscore = playState.score; } var hiscoreLabel = game.add.text(473, 155, loadState.hiscore, {font: '50px Sports World', fill: '#fdf59e'}); var scoreLabel = game.add.text(473, 243, playState.score, {font: '50px Sports World', fill: '#b7e2fe'});; var spaceKey = game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR); spaceKey.onDown.addOnce (this.restart, this); var escKey = game.input.keyboard.addKey(Phaser.Keyboard.ESC) escKey.onDown.addOnce (this.menus, this); }, restart: function (){ game.state.start('play'); }, menus: function (){ game.state.start('menu'); }, } thats my code pls help me thank you!
  2. newbie11

    how to loop

    how can i loop my background and make it like it move going to left??? thank you!
  3. Good day! Hi sir! i know its a bit weird messaging you directly but i really seeking for some help about the game that i create i am new to this kind of thing so i really need your help. The problem is my game didnt run when i add a sequence like boot>preload>game>end, but before it is running completely fine but only does is the game like when you run it it directs to the game so i thought off adding those states. I know it is not that kind of serious like the others but i really need your help Thank you! ps : my grammar and english is not that good bec im from ph hehe.. index.html phaser.min.js boot.js game.js load.js menu.js play.js win.js