Jump to content

collideCallback generating an error


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


  • Recently Browsing   0 members

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