Copy link to clipboard
Copied
If anyone is familiar with the HTML5 Flappy Bird Clone tutorial on Adobe Animate by Christopher Caleb and has a solution for this, that would be great. When I add the sound from part 6 of the tutorial, it causes the whole game to stop working. When loaded in the browser, the ground has disappeared and clicking and pressing keys doesn't do anything. Here is the code they added for sound:
Main.prototype.registerSound = function()
{
createjs.Sound.registerSound("sound/point.wav", "point");
createjs.Sound.registerSound("sound/flap.wav", "flap");
createjs.Sound.registerSound("sound/hit.wav", "hit");
}
They put this in the main function:
this.registerSound();
Then, they called the sound in each function where it should play, like this:
createjs.Sound.play("point");
Is there any reason why this would cause the game to stop working? I am working in Adobe Animate 2017. Thank you.
Copy link to clipboard
Copied
Moving to Adobe Animate CC - General​
Copy link to clipboard
Copied
Any errors in the web browser console? I'd look there first.
Copy link to clipboard
Copied
It's telling me that this.registerSound is not a function. I have checked multiple times for spelling errors and there are none.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more