Jump to content

Search the Community

Showing results for tags 'collision bind'.

  • 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. Hello Im new to panda, so this is proberly a very basic q: game.createClass('Alien', { name: 'Hans', health: 10, init: function(myX, myY) { Ninja = new game.Animation('media/ninja_1.png', 'media/ninja_2.png', 'media/ninja_3.png','media/ninja_4.png'); Ninja.animationSpeed = 0.1; Ninja.position.set(game.system.width / 2 - Ninja.width / 2, game.system.height - Ninja.height); //Ninja.anchor.set(0,1); Ninja.addTo(game.scene.stage); this.shape = new game.Rectangle(Ninja.width,Ninja.height); this.body = new game.Body({ position: {x: 100, y: 100}, collisionGroup: 1, collideAgainst: 0 }); this.body.addShape(this.shape); //this.body.collide = this.collide.bind(this); }, //init mousedown: function() { console.log("allo"); game.audio.playSound("swipe", false); } });I keep getting a error when I add this: this.body.collide = this.collide.bind(this); The error is: Cannot read property 'bind' of undefined
×
×
  • Create New...