You have to make the event cancelable first.
This commit is contained in:
@@ -1200,7 +1200,7 @@ class PlayState extends MusicBeatSubState
|
||||
Events.logFailSong(currentSong.id, currentVariation);
|
||||
#end
|
||||
|
||||
var event:ScriptEvent = new ScriptEvent(GAME_OVER);
|
||||
var event:ScriptEvent = new ScriptEvent(GAME_OVER, true);
|
||||
dispatchEvent(event);
|
||||
|
||||
if (event.eventCanceled) return;
|
||||
|
||||
Reference in New Issue
Block a user