Add sound on each good answer

Hello,

I would like to know if there is a way to add a sound (like jackpot) when the students finds the good answer.

And also an other animation (instead of the stars).

Thank you in advance for your help !

0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
otacke's picture

Hi Jonathan!

You should be able to achieve both by using the customization hooks.

The easier one probably is the hook alter_styles for visual overrides, e.g. changing the star animation that you mentioned. The other one is the hook alter_scripts that can be used to add your own scripts. You'd let it listen to the appropriate event (usually the xAPI "answered" event) and evaluate it's result property to check whether the answer was correct or not - and to play an appropriate sound.

Cheers,
Oliver