Datamosh

Members
  • Content count

    2
  • Joined

  • Last visited

About Datamosh

  • Rank
    Newbie

Contact Methods

  • Twitter
    datamoshgames

Recent Profile Visitors

156 profile views
  1. Resize or change shape

    I solved the problem by deleting the contents of player.body.shapes and adding a new shape using setShape. Example: player.body.shapes = [] player.body.addShape(new me.Rect(0, 0, 16, 16))
  2. Resize or change shape

    Hello! I need to change/adjust the collision rectangle when the entity crouches. I guess that I need to use addShape and setShape but I do not understand how to do it. Can anybody help me with an example or snippet? Thanks!