gamify Posted March 22, 2017 Share Posted March 22, 2017 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"); also throwing error : Uncaught TypeError: me.game.getEntityByName is not a function at <anonymous>:1:9 for melonJS Game Engine v4.1.0 Quote Link to comment Share on other sites More sharing options...
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.