DannyT

Members
  • Content Count

    2
  • Joined

  • Last visited

About DannyT

  • Rank
    Newbie

Contact Methods

  • Twitter
    dannyt
  1. DannyT

    Create physics sprite from tilemap

    For anyone that finds this in the future: Iterate the children and call: this.physics.add.existing(gameObject) to make the sprites have bodies.
  2. I'm trying to create a group of sprites from a tilemap but want arcade physics sprites this.physics.add.group(map.createFromObjects('myKey', 'mySpawn', myConfig)); Creates my group but the sprites don't seem to have bodies so I'm assuming I need to make physics sprites somehow? I can only find examples of creating them from config rather than converting existing sprites. Any pointers much appreciated.