Jump to content

GAME_OVER event fires but GAME_OBJECT_OVER does not


returnKitten
 Share

Recommended Posts

I have a game with bubbles made using Matter as the physics engine illustrated by the image below.

When the mouse is over a bubble I'm adding a tween to highlight it (and then another tween when the pointer goes out to remove that highlight). I'm using the events GAMEOBJECT_OVER and GAMEOBJECT_OUT to add those tweens.

Everything works fine except one thing: when, for instance, I have the pointer over bubble 1 in the image below and then move the pointer down directly to the windows bar, and then move back the pointer again to bubble 1, the GAMEOBJECT_OVER event is not fired. On the other hand, if I move the pointer down from bubble 1 to the windows bar, and then to the left always through the bar, and then back up to bubble 2, the GAMEOBJECT_OVER event is fired for bubble 2. I've also checked and the GAME_OUT and GAME_OVER events are correctly fired when the pointer leaves and enters the game canvas, respectively.

Note: the game canvas extends below the screen, so there's an overflow that's not visible. This is by design and I'm not sure if that's what's causing this.

Is this a bug?

Full list of events here for reference https://newdocs.phaser.io/docs/3.54.0/Phaser.Input.Events

Capturar.PNG

Edited by returnKitten
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...