Jump to content

collideCallback generating an error


tatanyn
 Share

Recommended Posts

I am attempting to set up collision and overlaps that call functions.  Per the example in the tutorial I am placing the following code in the 'create' function and then placing the returnOrb function in the 'update' function.  I am getting t "Uncaught ReferenceError: returnOrb is not defined".  Which would make sense to me if i wasn't doing exactly what the Phaser tutorial told me to do.  what am i actually supposed to  do?

  this.physics.add.overlap(dude, orbs, returnOrb);
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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