Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe Animate Flappy Bird Tutorial - sound not working!

New Here ,
May 17, 2018 May 17, 2018

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.

394
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 17, 2018 May 17, 2018

Moving to Adobe Animate CC - General​

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 18, 2018 May 18, 2018

Any errors in the web browser console? I'd look there first.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 18, 2018 May 18, 2018
LATEST

It's telling me that this.registerSound is not a function. I have checked multiple times for spelling errors and there are none.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines