• Content Count

  • Joined

  • Last visited

  1. THANKS! it's work. but i have a question, property of fresh is readonly in API, is it can be change?
  2. thanks for your example! if you try to refresh the example, you will see debug body flash in the left top, just close to the first few frames. that is my trouble, because i need body set in correct position at the first time, but sprite's body there are different position in create() and update(). so if i have multiple object in the create level, that cause there are overlap in the first time, and then and then become normal. I don't want objects to happen overlap event in an incorrect position.
  3. hi, because some issue, so i using group to create sprite as my colliders. var octopus; var colliders; var col; function create() { octopus = game.add.sprite(300, 200, 'octopus'); colliders =, 'colliders', null, true, Phaser.Physics.ARCADE); octopus.updateTransform(); col = colliders.create(0, 0); col.body.setCircle(30, -30, -30); col.body.reset(colliders.worldPosition.x + col.x, colliders.worldPosition.y + col.y); game.debug.body(col, 'rgba(255,0,0,0.5)'); } function update(){ game.debug.body(col, 'rgba(255,0,0,0.5)'); } in the example, the body will flash to another point and then go back to the correct position. if i try to use Arcade Physics's overlap in two group. although two group is not overlap. that still cause overlap event. sorry about my english is not well