Jump to content

Use ID block in if


donpink
 Share

Recommended Posts

Phaser objects are Javascript objects, so you can add any field you like to it. You can set this.body.uniqueId = 10 and then later on test that field. Just be careful not to overwrite / set a field that already exists. To quickly know all the fields / methods of an object, just log it into the console : console.log(this).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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