Search the Community

Showing results for tags 'param of add'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

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. Hey. So im trying to make a game where you can pickup this box with a chicken. This is the code i use to create the box, but it says error: "" What's going on? I've a version where i dont have any states for the game, and it's working fine. But when i try to implement my code inside the game with states code, it comes up with this error. The rest of the code is working fine for (var i = 0; i < 1; i++) { //box var b = boxGroup.create(0, 0, 'box'); b.name = 'box' + i; b.exists = false; b.visible = false; b.checkWorldBounds = true; b.events.onOutOfBounds.add(function(){resetBox, this}; var idle = b.animations.add('idle'); b.animations.play('idle', 10, true); b.body.drag = new Phaser.Point(100, 100); b.body.drag.y = -400; b.anchor.setTo(0.5, 0.5); b.scale.setTo(0.6, 0.6); b.body.setSize(231.6, 226.8, 50); b.body.collideWorldBounds = true; }