hello how to retrieve the layer object
me.game.currentLevel.getLayerByName("background");
throwing error : Uncaught TypeError: Cannot read property 'getLayerByName' of undefined
at <anonymous>:1:21
So can anyone help me to get the layer
me.game.getEntityByName("mainPlayer")[0];
also throwing error : Uncaught TypeError: me.game.getEntityByName is not a function
at <anonymous>:1:9
for melonJS Game Engine v4.1.0