philWhite Posted January 2, 2018 Share Posted January 2, 2018 Hi all, I'm feeling pretty dense here, I'm just having a play with Phaser Editor and I'm running in to some issues. I can't seem to add a Prefab Sprite or a Group to the main canvas. So I'm creating a sprite via New > Sprite Prefab File (lets say it called MySprite), I drag MySprite from the assets panel on to the Main canvas. When I run in the browser the console just come up with "Reference Error: MySprite is not defined" Am I missing something here? Thanks for looking! PhaserEditor2D 1 Link to comment Share on other sites More sharing options...
PhaserEditor2D Posted January 3, 2018 Share Posted January 3, 2018 Hi, I think the problem you have is that you should load the MyScript.js file into the game. You can do it with a script tag in the index.html file (as you do in any website), or by adding a script asset to the assets-pack.json file. Tell me if it works for you. Link to comment Share on other sites More sharing options...
philWhite Posted January 4, 2018 Author Share Posted January 4, 2018 Fantastic, this does the trick Thanks! PhaserEditor2D 1 Link to comment Share on other sites More sharing options...
Recommended Posts