Jump to content

Search the Community

Showing results for tags 'state-manager'.

  • 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. Not sure I'm in the right place, but here goes: I'm running Phaser 2.2.4 and have read the Interphase book. My question is this: If you have a hero sprite, how do you pass him from one state to another? Passing him into the Init function in the new state does not seem to work. I pass him to Init, which seems to work, but when I run this.professor.body.velocity.y = 200; I get an error. My code looks like this: init: function (p){ this.professor = p;} ..... update: function () { this.physics.arcade.collide(this.professor, this.layer3); this.professor.body.velocity.y = 200; ....
×
×
  • Create New...