bborncr

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. Thanks for the help! Yes, I do have the body enabled. When the game starts there is just a black screen. Below is the console error. If I comment out the callAll line the game runs. bullets = game.add.group(); bullets.enableBody = true; bullets.physicsBodyType = Phaser.Physics.ARCADE; bullets.createMultiple(20, 'bullet'); bullets.setAll('anchor.x', 0.5); bullets.setAll('anchor.y', 0.5); bullets.setAll('scale.x', 0.3); bullets.setAll('scale.y', 0.3); bullets.setAll('bounce.x', .5); bullets.setAll('bounce.y', .5); bullets.setAll('mass', 0.05); bullets.callAll('body.setSize',null, 8,8,8,8); Phaser v2.6.2 | Pixi.js | Canvas | WebAudio http://phaser.io ♥♥♥ phaser.js:87888 Uncaught TypeError: Cannot read property 'setTo' of undefined at Phaser.Sprite.setSize (phaser.js:87888) at Phaser.Group.callAll (phaser.js:33670) at Object.create (asteroids movement.js:49) at Phaser.StateManager.loadComplete (phaser.js:30083) at Phaser.Loader.finishedLoading (phaser.js:74233) at Phaser.Loader.processLoadQueue (phaser.js:74190) at Phaser.Loader.asyncComplete (phaser.js:74263) at Phaser.Loader.fileComplete (phaser.js:75120) at HTMLImageElement.file.data.onload (phaser.js:74522) asteroids movement.js:87 Uncaught TypeError: Cannot read property 'animations' of undefined at Object.update (asteroids movement.js:87) at Phaser.StateManager.update (phaser.js:30128) at Phaser.Game.updateLogic (phaser.js:36337) at Phaser.Game.update (phaser.js:36280) at Phaser.RequestAnimationFrame.updateRAF (phaser.js:61979) at _onLoop (phaser.js:61962)
  2. I am trying to adjust the physics body size of some bullets. bullets.createMultiple(20, 'bullet'); bullets.setAll('anchor.x', 0.5); bullets.setAll('anchor.y', 0.5); bullets.setAll('scale.x', 0.3); bullets.setAll('scale.y', 0.3); bullets.setAll('bounce.x', .5); bullets.setAll('bounce.y', .5); bullets.setAll('mass', 0.05); bullets.callAll('body.setSize',8,8,8,8); //this line kills the game When I add the final line with the callAll() method the game won't start. One example added two single quotes '' : bullets.callAll('body.setSize', '', 8,8,8,8); But that didn't work either.
  3. Does anybody know what tools/technologies are used to make the Google Doodle games? Are there members of this forum who have made mini games for Google?
  4. bborncr

    Welcome!

    Hello all! I've always wanted to try programming some simple games. Just messing around in my spare time. I like the freedom of HTML5 being able to run in a browser...no installation...just share a URL.
  5. One of my assets is a spaceship that is facing upwards. The arcade physics body appears to face to the right. I tried to find some sort of a mechanism to orient the two but could not find anything. In the end I just rotated the image to match the physics body. Is that the correct way to do this or am I missing something?