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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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