harishkumarvijay

Members
  • Content Count

    4
  • Joined

  • Last visited

About harishkumarvijay

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. harishkumarvijay

    Modifying polygon Shapes of animated sprite

    HI I found a solution for the issue. Every time when I clear a shape from p2 physics body, it looses its collision group settings. So whenever we clear and load new shape we need to set the collision group again. This solved my issue. Code Snippet: // Collision Group var collisionGroup = game.physics.p2.createCollisionGroup(); // Removing the previously loaded or default shape sprite.body.clearShapes() // Loading a new shape with respect to the sprite sprite.body.loadPolygon(JSONData, name); // Setting the collision group to the body sprite.body.setCollisionGroup(collisionGroup)
  2. I'm trying to apply physics to a animated sprite. I used PhysicsEditor to generate the JSON and loaded the polygon shape for the first frame. Collision detection is not happening when i try to clear the shapes and load the polygon dynamically with respect to animation. Is there any method to clear and load the polygon dynamically to detect collision. Any thoughts ?
  3. harishkumarvijay

    Pixel perfect collision on animated spritesheet

    Hi, I am facing the same issue. Have you found any solution for changing the polygon shapes with respect to their animation frames? It would be really helpful if you could share your thoughts.
  4. I created animations in tile map using phaser-tilemap-plus plugin and it works as expected. But I am getting the following warning message in console, "No such layer name: Tile Layer 1 Is there any fix for the above warning message? Thanks in advance.