tuxemon.event.actions.fadeout_music module

final class tuxemon.event.actions.fadeout_music.FadeoutMusicAction(duration)[source]

Bases: EventAction

Fade out the music over a set amount of time in milliseconds.

Script usage

fadeout_music <duration>
Script parameters:

duration – Number of milliseconds to fade out the music over.

Parameters:

duration (int) –

duration: int
name: ClassVar[str] = 'fadeout_music'
start()[source]

Called only once, when the action is started.

For all actions, you will need to override this method.

For actions that only need to run one frame you can simply put all the code here. If the action will need to run over several frames, you can init your action here, then override the update method.

Return type:

None