Rkfu Posted March 27, 2016 Share Posted March 27, 2016 Hello! Help me Pls. I started working with the Phaser. I have an example http://codepen.io/anon/pen/RagQBL and this example does not work. Link to comment Share on other sites More sharing options...
megmut Posted March 27, 2016 Share Posted March 27, 2016 You had some issues with setting the body to enabled and enabling the physics on the sprites. I think fundamentally the reason it didn't work, is you were setting the sprite's x position.. you need to use sprite.body.x to use the physics engine as the sprite.x is just the rendering pixel cord. http://codepen.io/anon/pen/jqwKWK The fixes have been implemented and the physics works now. Hope this is what you were looking for. Rkfu 1 Link to comment Share on other sites More sharing options...
Recommended Posts