Jump to content

Update tile collision setCollisionByProperty dinamically


Angelitq
 Share

Recommended Posts

Hi there! I have a question.

 

I created a level that has 

 tiles.setCollisionByProperty({collides: true});

Then while the player makes an action I want to dinamically change it to:

 

 walls.setCollisionByProperty({collides: false});

Is there a way to remove the previous set and set this new one?

 

Regards!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...