Jump to content

game.physics.arcade.overlap error


Aperosuz
 Share

Recommended Posts

Hi everybody,

I want to call a function if one group and one sprite overlap (or collide, i have try with the two but no one work ..)

So i make this

game.physics.arcade.overlap(enemyBullet(group), boat(sprite), enemyHitsPlayer(function), null, this);

But when i play my game, the screen going black and say enemyHitsPlayer is not defined..

i have put this line on my update() function...

I work on the 2.4.3 phaser.io version.

 

Thanks for your help

I hope you have all the information to help me

 

Aperosuz

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...