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
scene plugin install failure #6800
Comments
What's the code you used when the animated tiles plugin wouldn't load properly? |
the code I was using the animated tile plugin was my own game project. specifically my default scene class which is a class that builds of the scene object. specifically it was |
window.AnimatedTiles = AnimatedTiles; You can instead load the plugin script as a |
thank you for the suggestion, i will give that a try. |
Version
Description
i found an issue with phaser.js . it was a issue loading some plugins. as an example the animated tiles plugin would not load properly because if line 126250 " pluginManager.installScenePlugin(systemKey, window[this.key], sceneKey, this.loader.scene, true);". if this line is change to "pluginManager.installScenePlugin(systemKey, Function(
return ${this.key}
)(), sceneKey, this.loader.scene, true);" then the plugin works correctly.the script this resides in is here :
phaser/src/loader/filetypes/PluginFile.js
Line 114 in e337b6e
Example Test Code
code can be found at the text links below.
Additional Information
here is the plugin that was having trouble working.
https://phaser.discourse.group/t/phaser-3-5-animated-tiles-tiled/11148
phaser without fix.txt
phaser with fix.txt
defaultScene.txt
The text was updated successfully, but these errors were encountered: