• Content Count

  • Joined

  • Last visited

About andersthorborg

  • Rank

Contact Methods

  • Twitter
  1. This happened to me as well. For me it was because the anchor point of the sprites are centered as soon as you apply the physics. So if you position sprite at x:0, its center will be at x:0 meaning that its left side will be out of bounds creating an instant collision. So if you want to position something to the left use x: itemWidth/2.
  2. Hi there, I am new to phaser and to test it out I am recreating the old SlimeSoccer Java-browser-game. ( I've implemented it with P2 physics and generally it is working pretty well. However I am having a difficulty with making the body of the "players" behave properly when colliding with the ball. So far I haven't found a way to create the semi circlular shape with phaser/P2? Is it correct that this is not possible - that it is either a full circle or a polygon? I have created a polygon with a lot of points to "simulate" the circular shape, but it doesn't work as intended. I've tried actually making circular bodies to test the physics and that works great, except they should be "cut in half". Does anyone have a clue to how to approach this? Thanks! Anders