Game Engine: Next Scene Start After Sound is Finished

Hi,

I want to have the scene Start begin after a sound is finished. Kind of like sonic.exe (That Creepypasta game) where after you click “Start” or whatever, he laughs and when he’s done, the game starts. I have a child text with an adult plane and it has two actuators: “Mouse Over” and “Mouse Left Click.” Now how do I plug in the sound to finish and AFTER it is done, you start the game. If you need the file, let me know.

Thanks,
Shadow Pro :cool:

EDIT: cotax’s solution worked perfectly for my type of situation with the mouse. Thanks for responding!

Hi! In aud module (python library to play sound in the blender game engine), you have a “status” option to tell you whether a music is currently played or not:

http://www.blender.org/api/blender_python_api_2_74_release/aud.html?highlight=audaspace
http://www.blender.org/api/blender_python_api_2_74_release/aud.html?highlight=status#aud.Handle.status

Doesn’t the actuator sensor not work?

Hi Monster! That’s another thing I don’t know at the moment… I’ll Test. Thanks!

EDIT: With Monster’s Solution: http://www.mediafire.com/download/0k56laiax2leqnp/mp3StatusMonster.rar

EDIT2: I just tested with an actuator setScene… It seems that you have to use a delay sensor with actuator sensor (the state of actuator sound is inactive at the first frame):

Attachments


I just tested with an actuator setScene… It seems that you have to use a delay sensor with actuator sensor

it’s that or using property+expression something like:

Attachments


Appreciate the responses, but I want it so after I click something, it plays the sound and then when finished, starts the next scene.

Thanks,
Shadow Pro

You could just replace the always sensor with 2 mouse sensors(mouse left and mouse over)

Here a .blend, click on the cube, wait, tadaa. (lower your volume!)
wait_til_sound_ends_after Click.blend (1.05 MB)