Ninjadoodle Posted August 3, 2017 Share Posted August 3, 2017 Hi @enpu Is there a way to have more than one mediaFolder? I'm working on a long term project in which a lot of small games will be sharing the same resources (e.g. ui/hud elements). Is there a way for the game to have two media folders - one from which it loads its own unique resources, and one for shared elements between games? Just want to see if its possible Thank you in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted August 3, 2017 Share Posted August 3, 2017 You can use something like this to load assets outside of your game folder: game.addMedia('../../mygame/media/player.png', 'player'); Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted August 3, 2017 Author Share Posted August 3, 2017 Oh awesome! I didn't realise, since the same can't be done with the engine (unless you change the sourceFolder - which I have sorted now). Thanks heaps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.