New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matter - gameObject.emit is not a function #4967
Comments
It depends what the Game Object is. If it's a Sprite, Image, TileSprite, etc, then |
In the phaser 3 example: http://labs.phaser.io/view.html?src=src\game%20objects\tilemap\collision\matter%20platformer%20with%20wall%20jumping.js |
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the |
What was the fix? What version is the last that did not have this bug? |
It's impossible for 3.15 to have this error, as it came about as a result of a brand new plugin added in 3.22. The fix is for 3.23, which isn't published yet. |
Awesome thanks for the info, any eta on 3.23 ? |
Any update on when 3.23 will be released? I am experiencing this bug |
As far as I know the update is supposed to be released sometime in April, there was a news blog posted about it, not sure if it was just for patrons or not. You can use the master branch its quite stable and has a fix for it already. |
Is there a timeline for when |
I'm using 3.23-beta1 and I still seem to be getting this issue? Unless I modify the code to matter.Events.trigger it'll error |
@Brandoning What type of game object is it? #4967 (comment) |
@embeddedt it's a |
That's strange. I also use sprites in my game that collide with each other and I don't have this problem with 3.23-beta1. This is the Phaser minified JS file I'm using (compiled from 7fbe57c last week). |
Where can I get the 3.23-beta* versions? They are not on the npm and there is no git tag that includes 3.23. Edit: I managed to do |
Yes; you have to manually clone the |
On Phaser 3 matterJs examples, like this one: http://labs.phaser.io/view.html?src=src\game%20objects\tilemap\collision\matter%20platformer%20with%20wall%20jumping.js
, when thow bodies collides we receive this error: i.gameObject.emit is not a function
Looking on the source code file: MatterCollisionEvents.js
if I replace the commented line with code below it works without error.
Is it an issue or am I doing something wrong?
Thanks
The text was updated successfully, but these errors were encountered: