Jump to content

Search the Community

Showing results for tags 'phaser text.setText'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. I've copied the example from http://phaser.io/examples/v2/text/kern-of-duty You can see it in action here http://eclecticmeme.com/ Most of the time I get 7 letters. Sometimes I get 9. I note that in the example the line above it (line 41) is commented out. Anyway If text is set as global and then set to game.add.txt(), what could prevent text.setText() from being accessible? my js is here I'm sure it's something stupid I'm missing. ////////////////////////////////////////////////// function create() { game.add.sprite(0, 0, 'cod'); text = game.add.text(32, 380, '', { font: "30pt Courier", fill: "#19cb65", stroke: "#119f4e", strokeThickness: 2 }); nextLine(); } function updateLine() { if (line.length < content[index].length) { line = content[index].substr(0, line.length + 1); // text.text = line; text.setText(line); } else { // Wait 2 seconds then start a new line game.time.events.add(Phaser.Timer.SECOND * 2, nextLine, this); } }
×
×
  • Create New...