Jump to content

Search the Community

Showing results for tags 'state arcade physics'.

  • 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. In the code below, the collision check works fine but when I try to use the commented out lines, my game doesn't load. I've tried a bunch of stuff but this.nope.ohmygodplsmakeitstop var game = new Phaser.Game(400, 490, Phaser.AUTO, '');var main_state = {preload: function() { this.game.load.image('bird', 'assets/bird.png'); this.game.load.image('cat', 'assets/catyo.png'); },create: function() { this.bird = this.game.add.sprite(100, 245, 'bird'); this.cat = this.game.add.sprite(300, 245, 'cat');},update: function() { this.game.physics.collide(this.bird, this.cat); //this.cat.rotation = this.game.physics.arcade.angleBetween(this.cat, this.bird); //this.game.physics.arcade.moveToObject(this.cat,this.bird);}};game.state.add('main', main_state); game.state.start('main');
×
×
  • Create New...