Greenmoonbase

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by Greenmoonbase

  1. Try change game.physics.arcade.overlap to game.physics.add.overlap
  2. Hi! What is a preferable way to store the game variables in Phaser 3? Just add them to this? Or use this.data.set / this.data.get? Or something else? Thanks.
  3. Looks like there's no letter spacing for text in Phaser 3 So here's a little solution if someone will need it textline = 'qwerty'; letterSpacing = 10; letter = null; startPositionX = 400; for(var i = 0; i < textline.length; i++){ if(!letter){ letter = this.add.text(startPositionX, 1020, textline[i]).setStyle({ fontSize: '60px' }); } else { letter = this.add.text(nextLetterX, 1020, textline[i]).setStyle({ fontSize: '60px' }); } nextLetterX = letter.x + letter.width + letterSpacing; }
  4. Thank you! Working great!
  5. Is there a way to do line-height, letter-spacing, text-align:center in Phaser 3?