Lucas Posted March 23, 2014 Share Posted March 23, 2014 I'm doing based on this code, but the bumps are not working ... This map is made with layers and the player is done with sprite. http://haanto.com/phaser-websocket-multiplayer/ I tried to use these two forms:1- game.physics.collide(player.sprite, layer);2- game.physics.overlap(player.sprite, layer); but did not work.. Link to comment Share on other sites More sharing options...
rich Posted March 24, 2014 Share Posted March 24, 2014 Which version of phaser are you using? The code above is for 1.x. So if you're using 2.x you'll need to amend it for the way physics is now handled. Link to comment Share on other sites More sharing options...
Lucas Posted March 24, 2014 Author Share Posted March 24, 2014 I am using version: v1.1.5 - Built at: Wed Feb 12 2014 15:32:36 if possible can I use version 2.x Link to comment Share on other sites More sharing options...
Lucas Posted March 26, 2014 Author Share Posted March 26, 2014 Because when I use the function below, the image loses quality, gets kinda blurry ..player.sprite.body.velocity.x -= 1; Link to comment Share on other sites More sharing options...
Recommended Posts