selvam Posted June 9, 2016 Share Posted June 9, 2016 Hi Guys, I am new to phaser framework, here i need some clarity about load and unload game assets from phaser cache. because i am developing screen based game like if i am going to screen 2 from screen 1 here i need to load screen 2 & unload screen1 assets then i am back to screen1 from screen 2 then here i want to load screen 1 & unload screen 2 assets. How can do this can you guys any one help to do this. Thanks in advance. Link to comment Share on other sites More sharing options...
drhayes Posted June 10, 2016 Share Posted June 10, 2016 Why are you unloading the assets? Do you know that you need to? Link to comment Share on other sites More sharing options...
caesar Posted June 11, 2016 Share Posted June 11, 2016 try // home.destroy(); or kill(); it helps clear the cache when trying to restart the level Link to comment Share on other sites More sharing options...
selvam Posted June 13, 2016 Author Share Posted June 13, 2016 @caesar, thanks for the reply, @drhayes, because each level of the gaem will have 2MB size of graphics so here we need to remove the old assets to reduce memory, that why i need to unload assets. Link to comment Share on other sites More sharing options...
Recommended Posts