rich Posted March 23, 2014 Author Share Posted March 23, 2014 Also in the console when the phaser game starts there are no hearts, but some strange characters. Thanks for the particles emitter catch, I've fixed that. The above happens if you don't have a UTF8 charset meta tag in your html file (which you pretty much always should have). I find it amusing no-one has spotted the easter egg in the hearts yet either Link to comment Share on other sites More sharing options...
MichaelD Posted March 24, 2014 Share Posted March 24, 2014 Yes also having the y = 0 issue on a tileSprite, running the latest 2.0.1 just downloaded it. Link to comment Share on other sites More sharing options...
rich Posted March 24, 2014 Author Share Posted March 24, 2014 I bet you didn't build it from source though Link to comment Share on other sites More sharing options...
MichaelD Posted March 24, 2014 Share Posted March 24, 2014 Isn't the phaser.min.js in the build folder already "build"? Build it with bower, y=0 seems to have been solved, but still I can't get collision to works = game.add.tileSprite(0, game.world.height - 128, 1024, 128, 'ground');game.physics.enable(s, Phaser.Physics.ARCADE);s.body.immovable = true;player = game.add.sprite(150, game.world.height - 350, 'raven');game.physics.enable(player, Phaser.Physics.ARCADE);function update() { var _player = player; var _s = s; var result = game.physics.arcade.collide(_s, _player, collisionHandler, null, this); var _result = game.physics.arcade.overlap(_s, _player, collisionHandler, null, this); window.console.log(result,_result);} Link to comment Share on other sites More sharing options...
rich Posted March 24, 2014 Author Share Posted March 24, 2014 I don't push new build files very often (every couple of days perhaps) mostly because that's not how I develop it - so yeah it's always behind the actual source. I'll do a push now of the actual build files. Link to comment Share on other sites More sharing options...
MichaelD Posted March 24, 2014 Share Posted March 24, 2014 Yes it is working now. Both overlapping and collision. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts