Djohnson255 Posted April 17, 2020 Share Posted April 17, 2020 I cant get the audio to work for this game I am making. This is all of the code related to the audio and it says Cannot read property 'audio' of undefined this.load.audio('krusty remix', "SpongeBob Trap Remix Krusty Krab.mp3"); music = game.add.audio('krusty remix'); music.loopFull(); music.play(); Quote Link to comment Share on other sites More sharing options...
Heretic86 Posted April 21, 2021 Share Posted April 21, 2021 Can we see a bit more of your code? What is there doesnt really give us a clear explanation as to why your property is coming back undefined. I am curious however if you log any of your objects, what your Dev Tools show... 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.