Fork me on GitHub
Stage
    when_flag_clicked
    set_variable_to("0", @"Manager")
    looks_set_effect_to(-100, "BRIGHTNESS")
    if (( @"LogoShown" == "false" )) {
        switch_backdrop_to(looks_backdrops("Intro"))
        looks_set_effect_to(-100, "BRIGHTNESS")
        repeat(20) {
            looks_change_effect_by(5, "BRIGHTNESS")
        }
        set_variable_to("Intro", @"Manager")
        broadcast(@"Intro")
        wait_until (( @"LogoShown" == "true" ))
        repeat(20) {
            looks_change_effect_by(-5, "BRIGHTNESS")
        }
        switch_backdrop_to(looks_backdrops("Default"))
        looks_set_effect_to(-100, "BRIGHTNESS")
        repeat(20) {
            looks_change_effect_by(5, "BRIGHTNESS")
        }
        set_variable_to("Start", @"Manager")
        broadcast(@"Start")
    }
    else {
        switch_backdrop_to(looks_backdrops("Default"))
        looks_set_effect_to(-100, "BRIGHTNESS")
        repeat(20) {
            looks_change_effect_by(5, "BRIGHTNESS")
        }
        set_variable_to("Start", @"Manager")
        broadcast(@"Start")
    }
    set_variable_to("false", @"LogoShown")
    when_broadcast_received(@"StartMenu")
    wait(1)
    set_variable_to("Menu", @"Manager")
    broadcast(@"Menu")
    set_volume_to(100)
    forever {
        play_until_done("Xaf - Plugged")
    }
    when_broadcast_received(@"StartGame")
    wait(0.5)
    repeat(20) {
        looks_change_effect_by(-1.5, "BRIGHTNESS")
    }
    when_broadcast_received(@"GameOver")
    repeat(20) {
        looks_change_effect_by(1.5, "BRIGHTNESS")
    }
Title
    when_flag_clicked
    set_variable_to("0", @"i")
    hide
    switch_costume_to("Title 1")
    set_size_to(100)
    go_to_xy(0, 0)
    when_broadcast_received(@"Start")
    switch_costume_to("Title 1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, -400)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_y_by(( ( 0 - y_position() ) / 2 ))
    }
    wait(1)
    repeat(5) {
        looks_change_effect_by(10, "GHOST")
    }
    looks_set_effect_to(100, "BRIGHTNESS")
    switch_costume_to("Title 2")
    repeat(20) {
        looks_change_effect_by(-5, "BRIGHTNESS")
        looks_change_effect_by(-2.5, "GHOST")
    }
    wait(1)
    set_variable_to("StartMenu", @"Manager")
    broadcast(@"StartMenu")
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_y_by(( ( 0 - y_position() ) / 2 ))
    }
    hide
    when_broadcast_received(@"Menu")
    if (( @"Manager 2" == "ReMenu" )) {
        repeat(10) {
            looks_change_effect_by(10, "GHOST")
            change_size_by(( ( 50 - size() ) / 2 ))
        }
    }
    switch_costume_to("Title 3")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 400)
    point_in_direction(90)
    show
    repeat(20) {
        looks_change_effect_by(-5, "GHOST")
        change_y_by(( ( 50 - y_position() ) / 4 ))
    }
    when_broadcast_received(@"Menu")
    wait(0.1)
    repeat_until (!( ( @"Manager" == "Menu" ) )) {
        if (( @"SelectedButton" == "Fight" )) {
            repeat(5) {
                change_x_by(( ( 20 - x_position() ) / 2 ))
            }
        }
        if (( @"SelectedButton" == "Character" )) {
            repeat(5) {
                change_x_by(( ( -20 - x_position() ) / 2 ))
            }
        }
    }
    when_broadcast_received(@"Menu")
    repeat_until (!( ( @"Manager" == "Menu" ) )) {
        if (touching_object(_mouse_)) {
            play("Pew")
            repeat(10) {
                change_size_by(( ( 100 - size() ) / 2 ))
            }
            wait_until (!( touching_object(_mouse_) ))
        }
        else {
            if (( size() > "98" )) {
                repeat(10) {
                    change_size_by(( ( 90 - size() ) / 2 ))
                }
                wait_until (touching_object(_mouse_))
            }
        }
    }
    when_broadcast_received(@"Play")
    stop("other scripts in sprite")
    repeat(10) {
        change_size_by(-2)
        looks_change_effect_by(10, "GHOST")
    }
    set_size_to(50)
    switch_costume_to("Title 4")
    go_to_xy(-200, 130)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 0 - x_position() ) / 2 ))
    }
    wait_until (!( ( @"Manager" == "Play" ) ))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_x_by(( ( 200 - x_position() ) / 2 ))
    }
    hide
    when_broadcast_received(@"GameOver")
    wait(1)
    switch_costume_to("Title 3")
    set_size_to(90)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 400)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_y_by(( ( 50 - y_position() ) / 2 ))
    }
    repeat_until (!( ( @"Manager" == "GameOver" ) )) {
        if (touching_object(_mouse_)) {
            play("Pew")
            repeat(10) {
                change_size_by(( ( 100 - size() ) / 2 ))
            }
            wait_until (!( touching_object(_mouse_) ))
        }
        else {
            if (( size() > "98" )) {
                repeat(10) {
                    change_size_by(( ( 90 - size() ) / 2 ))
                }
                wait_until (touching_object(_mouse_))
            }
        }
    }
Undelrine
    start_as_clone
    if (( @"CloneID" == "5" )) {
        delete_this_clone
    }
    next_costume
    set_size_to(0)
    looks_set_effect_to(100, "GHOST")
    point_in_direction(90)
    go_to_xy(0, -100)
    show
    repeat(5) {
        looks_change_effect_by(-10, "GHOST")
        change_size_by(10)
    }
    change_variable_by(1, @"CloneID")
    create_clone_of(_myself_)
    repeat(5) {
        looks_change_effect_by(-10, "GHOST")
        change_size_by(10)
    }
    wait_until (!( ( @"Manager" == "Start" ) ))
    wait(join("0.", costume_number_name("number")))
    repeat(10) {
        change_y_by(( ( -120 - y_position() ) / 2 ))
        looks_change_effect_by(10, "GHOST")
        change_size_by(-5)
    }
    delete_this_clone
    when_broadcast_received(@"Start")
    set_variable_to("0", @"CloneID")
    switch_costume_to("Line 1")
    set_size_to(0)
    looks_set_effect_to(100, "GHOST")
    point_in_direction(90)
    go_to_xy(0, -100)
    show
    repeat(5) {
        looks_change_effect_by(-10, "GHOST")
        change_size_by(10)
    }
    change_variable_by(1, @"CloneID")
    create_clone_of(_myself_)
    repeat(5) {
        looks_change_effect_by(-10, "GHOST")
        change_size_by(10)
    }
    wait_until (!( ( @"Manager" == "Start" ) ))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_size_by(-5)
    }
    hide
    when_flag_clicked
    hide
Buttons
    when_flag_clicked
    set_variable_to("0", @"Manager 2")
    set_variable_to("0", @"SelectedButton")
    hide
    set_size_to(100)
    switch_costume_to("Fight")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Menu")
    create_clone_of(_myself_)
    switch_costume_to("Fight")
    set_size_to(100)
    looks_set_effect_to(0, "BRIGHTNESS")
    looks_set_effect_to(100, "GHOST")
    go_to_xy(400, -150)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 150 - x_position() ) / 2 ))
    }
    repeat_until (!( ( @"Manager" == "Menu" ) )) {
        if (touching_object(_mouse_)) {
            play("Pew")
            repeat(10) {
                change_size_by(( ( 130 - size() ) / 2 ))
                looks_change_effect_by(2, "BRIGHTNESS")
            }
            wait_until (!( touching_object(_mouse_) ))
        }
        else {
            if (( size() > "102" )) {
                repeat(10) {
                    change_size_by(( ( 100 - size() ) / 2 ))
                    looks_change_effect_by(-2, "BRIGHTNESS")
                }
                looks_set_effect_to(0, "BRIGHTNESS")
                wait_until (touching_object(_mouse_))
            }
        }
    }
    start_as_clone
    switch_costume_to("Character")
    set_size_to(100)
    looks_set_effect_to(0, "BRIGHTNESS")
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, -150)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( -150 - x_position() ) / 2 ))
    }
    repeat_until (!( ( @"Manager" == "Menu" ) )) {
        if (touching_object(_mouse_)) {
            play("Pew")
            repeat(10) {
                change_size_by(( ( 130 - size() ) / 2 ))
                looks_change_effect_by(2, "BRIGHTNESS")
            }
            wait_until (!( touching_object(_mouse_) ))
        }
        else {
            if (( size() > "102" )) {
                repeat(10) {
                    change_size_by(( ( 100 - size() ) / 2 ))
                    looks_change_effect_by(-2, "BRIGHTNESS")
                }
                looks_set_effect_to(0, "BRIGHTNESS")
                wait_until (touching_object(_mouse_))
            }
        }
    }
    when_broadcast_received(@"Menu")
    repeat_until (!( ( @"Manager" == "Menu" ) )) {
        if (( touching_object(_mouse_) && mouse_down() )) {
            set_variable_to("Play", @"Manager")
            broadcast(@"Play")
        }
    }
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_x_by(( ( 200 - x_position() ) / 2 ))
    }
    hide
    looks_set_effect_to(0, "BRIGHTNESS")
    looks_set_effect_to(100, "GHOST")
    set_size_to(100)
    go_to_xy(200, -150)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 0 - x_position() ) / 2 ))
    }
    repeat_until (!( ( @"Manager" == "Play" ) )) {
        if (touching_object(_mouse_)) {
            go_to_front_back("front")
            play("Pew")
            repeat(10) {
                change_size_by(( ( 130 - size() ) / 2 ))
                looks_change_effect_by(2, "BRIGHTNESS")
            }
            wait_until (!( touching_object(_mouse_) ))
        }
        else {
            if (( size() > "102" )) {
                repeat(10) {
                    change_size_by(( ( 100 - size() ) / 2 ))
                    looks_change_effect_by(-2, "BRIGHTNESS")
                }
                looks_set_effect_to(0, "BRIGHTNESS")
                wait_until (touching_object(_mouse_))
            }
        }
    }
    start_as_clone
    repeat_until (!( ( @"Manager" == "Menu" ) )) {
        if (( touching_object(_mouse_) && mouse_down() )) {
            if (!( ( @"CharacterSelect" == "1" ) )) {
                broadcast(@"Character")
                wait_until (!( ( touching_object(_mouse_) && mouse_down() ) ))
            }
        }
    }
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_x_by(( ( -200 - x_position() ) / 2 ))
    }
    delete_this_clone
    when_broadcast_received(@"Play")
    wait_until (( x_position() < "100" ))
    repeat_until (!( ( @"Manager" == "Play" ) )) {
        if (( touching_object(_mouse_) && mouse_down() )) {
            set_variable_to("StartGame", @"Manager")
            broadcast(@"StartGame")
        }
    }
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_x_by(( ( -200 - x_position() ) / 2 ))
    }
    hide
    when_broadcast_received(@"GameOver")
    wait(1)
    switch_costume_to("Replay")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    looks_set_effect_to(0, "BRIGHTNESS")
    go_to_xy(400, -150)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 0 - x_position() ) / 2 ))
    }
    repeat_until (!( ( @"Manager" == "GameOver" ) )) {
        if (touching_object(_mouse_)) {
            play("Pew")
            repeat(10) {
                change_size_by(( ( 130 - size() ) / 2 ))
                looks_change_effect_by(2, "BRIGHTNESS")
            }
            wait_until (!( touching_object(_mouse_) ))
        }
        else {
            if (( size() > "102" )) {
                repeat(10) {
                    change_size_by(( ( 100 - size() ) / 2 ))
                    looks_change_effect_by(-2, "BRIGHTNESS")
                }
                looks_set_effect_to(0, "BRIGHTNESS")
                wait_until (touching_object(_mouse_))
            }
        }
    }
    when_broadcast_received(@"GameOver")
    set_variable_to("0", @"Manager 2")
    wait(1)
    wait_until (( x_position() < "100" ))
    repeat_until (!( ( @"Manager" == "GameOver" ) )) {
        if (( touching_object(_mouse_) && mouse_down() )) {
            set_variable_to("Replay", @"Manager 2")
            repeat(10) {
                looks_change_effect_by(10, "GHOST")
            }
            hide
            set_variable_to("ReMenu", @"Manager 2")
            set_variable_to("Menu", @"Manager")
            broadcast(@"Menu")
        }
    }
CharacterHeads
    when_flag_clicked
    set_variable_to("1", @"FirstPlay")
    set_variable_to("0", @"CharacterSelect")
    set_variable_to("1", @"Character")
    hide
    switch_costume_to("1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Character")
    if (( x_position() > "-150" )) {
        set_variable_to("1", @"CharacterSelect")
        repeat(10) {
            looks_change_effect_by(40, "GHOST")
            change_y_by(-30)
        }
        set_variable_to("0", @"CharacterSelect")
    }
    next_costume
    if (( @"FirstPlay" == "1" )) {
        switch_costume_to("1")
        set_variable_to("0", @"FirstPlay")
    }
    set_variable_to(costume_number_name("name"), @"Character")
    set_size_to(70)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, -400)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_y_by(( ( -100 - y_position() ) / 2 ))
    }
    wait(1)
    repeat(10) {
        looks_change_effect_by(40, "GHOST")
        change_y_by(-30)
    }
    hide
    when_broadcast_received(@"Play")
    stop("other scripts in sprite")
    repeat(10) {
        looks_change_effect_by(40, "GHOST")
        change_y_by(-30)
    }
    hide
Characters
    when_flag_clicked
    hide
    switch_costume_to("1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Play")
    switch_costume_to(@"Character")
    set_size_to(70)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, 0)
    point_in_direction(90)
    go_to_front_back("front")
    show
    repeat(20) {
        looks_change_effect_by(-5, "GHOST")
        change_x_by(( ( 0 - x_position() ) / 2 ))
    }
    wait_until (!( ( @"Manager" == "Play" ) ))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    hide
    when_broadcast_received(@"Game")
    set_variable_to("0", @"SlidePos")
    switch_costume_to(@"Character")
    set_size_to(30)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, -100)
    point_in_direction(90)
    go_to_front_back("front")
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( -150 - x_position() ) / 2 ))
    }
    set_variable_to("0", @"SlidePos2")
    set_variable_to("0", @"AT-Trigger")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        if (touching_object("Fireball")) {
            play("Oops")
            set_variable_to("GameOver", @"Manager")
            broadcast(@"GameOver")
        }
    }
    when_broadcast_received(@"Game")
    set_variable_to("0", @"Slide-Trigger")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        if (key_pressed("up arrow")) {
            if (!( ( y_position() > "100" ) )) {
                set_variable_to("1", @"Slide-Trigger")
                set_variable_to(( y_position() + 80 ), @"SlidePos")
                repeat(5) {
                    change_y_by(( ( @"SlidePos" - y_position() ) / 2 ))
                }
                set_variable_to("0", @"Slide-Trigger")
            }
            else {
                set_variable_to("1", @"Slide-Trigger")
                repeat(3) {
                    change_y_by(3)
                }
                play("Crunch")
                repeat(3) {
                    change_y_by(-3)
                }
                set_variable_to("0", @"Slide-Trigger")
            }
        }
        if (key_pressed("down arrow")) {
            if (!( ( "-80" > y_position() ) )) {
                set_variable_to("1", @"Slide-Trigger")
                set_variable_to(( y_position() - 80 ), @"SlidePos")
                repeat(5) {
                    change_y_by(( ( @"SlidePos" - y_position() ) / 2 ))
                }
                set_variable_to("0", @"Slide-Trigger")
            }
            else {
                set_variable_to("1", @"Slide-Trigger")
                repeat(3) {
                    change_y_by(-3)
                }
                play("Crunch")
                repeat(3) {
                    change_y_by(3)
                }
                set_variable_to("0", @"Slide-Trigger")
            }
        }
    }
    when_broadcast_received(@"GameOver")
    repeat(10) {
        turn_left(15)
        change_x_by(-10)
        looks_change_effect_by(10, "GHOST")
    }
    hide
    when_broadcast_received(@"Game")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        point_in_direction(( ( mathop("sin",@"Sine [Characters & Hoverboard]") * 5 ) + 90 ))
    }
CharacterShadow
    when_flag_clicked
    hide
    switch_costume_to("Shadow")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Play")
    switch_costume_to("Shadow")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, -70)
    point_in_direction(90)
    wait(0.7)
    show
    repeat(10) {
        looks_change_effect_by(-5, "GHOST")
    }
    wait_until (!( ( @"Manager" == "Play" ) ))
    repeat(10) {
        looks_change_effect_by(5, "GHOST")
    }
    hide
    start_as_clone
    hide
    switch_costume_to("Slider")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    looks_set_effect_to(0, "COLOR")
    go_to_xy(-500, 0)
    point_in_direction(90)
    show
    repeat(20) {
        looks_change_effect_by(-5, "GHOST")
    }
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        looks_set_effect_to(0, "GHOST")
        repeat(20) {
            change_x_by(( ( -500 - x_position() ) / 4 ))
        }
        repeat_until (( @"ShieldCooldown" == "0" )) {
            change_x_by(4)
            if (!( ( @"Manager" == "Game" ) )) {
                repeat(10) {
                    looks_change_effect_by(10, "GHOST")
                }
                delete_this_clone
            }
        }
        set_x(0)
        wait_until (( @"ShieldCooldown" == "0" ))
        repeat_until (( @"ShieldCooldown" == "1" )) {
            repeat(10) {
                looks_change_effect_by(7.5, "GHOST")
                if (!( ( @"Manager" == "Game" ) )) {
                    repeat(10) {
                        looks_change_effect_by(10, "GHOST")
                    }
                    delete_this_clone
                }
            }
            repeat(10) {
                looks_change_effect_by(-7.5, "GHOST")
                if (!( ( @"Manager" == "Game" ) )) {
                    repeat(10) {
                        looks_change_effect_by(10, "GHOST")
                    }
                    delete_this_clone
                }
            }
        }
    }
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    delete_this_clone
    when_broadcast_received(@"Game")
    create_clone_of(_myself_)
Dragon
    when_flag_clicked
    hide
    switch_costume_to("Dragon 1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Play")
    switch_costume_to("Dragon 1")
    set_size_to(200)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(400, -100)
    point_in_direction(90)
    wait(0.2)
    if (!( ( @"Manager" == "Play" ) )) {
        stop("this script")
    }
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 250 - x_position() ) / 2 ))
    }
    wait_until (!( ( @"Manager" == "Play" ) ))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_y_by(( ( -300 - y_position() ) / 2 ))
    }
    hide
    when_broadcast_received(@"StartGame")
    wait(1.5)
    switch_costume_to("Dragon 1")
    set_size_to(120)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(400, -30)
    point_in_direction(90)
    go_to_front_back("front")
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 150 - x_position() ) / 2 ))
    }
    set_variable_to("Game", @"Manager")
    broadcast(@"Game")
    when_broadcast_received(@"Game")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        wait(0.5)
        switch_costume_to("Dragon 1")
        repeat(5) {
            next_costume
            wait(0.01)
        }
        broadcast(@"Shoot")
        wait(0.5)
        repeat(6) {
            next_costume
            wait(0.01)
        }
    }
    when_broadcast_received(@"FireballDefended")
    wait_until (touching_object("Fireball"))
    change_variable_by(5, @"Score")
    play("Collect")
    broadcast(@"ScorePointer +5")
    repeat(4) {
        looks_change_effect_by(5, "PIXELATE")
        looks_change_effect_by(-10, "BRIGHTNESS")
    }
    repeat(4) {
        looks_change_effect_by(-5, "PIXELATE")
        looks_change_effect_by(10, "BRIGHTNESS")
    }
    when_broadcast_received(@"GameOver")
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
        change_x_by(( ( 200 - x_position() ) / 2 ))
    }
    hide
GameStage
    when_flag_clicked
    hide
    switch_costume_to("Default")
    looks_set_effect_to(0, "BRIGHTNESS")
    set_size_to(100)
    go_to_xy(0, 0)
    when_broadcast_received(@"StartGame")
    wait(0.5)
    switch_costume_to("Default")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    looks_set_effect_to(0, "BRIGHTNESS")
    go_to_xy(0, -400)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_y_by(( ( 0 - y_position() ) / 2 ))
    }
    when_broadcast_received(@"Shake")
    point_in_direction(90)
    repeat(5) {
        change_y_by(-10)
        wait(0.02)
        change_y_by(10)
        wait(0.02)
    }
    when_broadcast_received(@"GameOver")
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    hide
Thumbnail
    when_flag_clicked
    hide
    switch_costume_to("Default")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    forever {
        reset_timer()
    }
    when_greater_than(0.01, "TIMER")
    hide_variable(@"☁ Cloud-Highscore")
    switch_costume_to("Default")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, 0)
    point_in_direction(90)
    go_to_front_back("front")
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
        change_x_by(( ( 0 - x_position() ) / 2 ))
    }
    go_to_xy(0, 0)
Hoverboard
    when_flag_clicked
    set_variable_to("0", @"Sine [Characters & Hoverboard]")
    hide
    switch_costume_to("1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Game")
    switch_costume_to("1")
    set_size_to(40)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, -100)
    point_in_direction(90)
    go_to_front_back("front")
    if (( @"Character" == "1" )) {
        looks_set_effect_to(65, "COLOR")
    }
    if (( @"Character" == "2" )) {
        looks_set_effect_to(0, "COLOR")
    }
    if (( @"Character" == "3" )) {
        looks_set_effect_to(60, "COLOR")
    }
    if (( @"Character" == "4" )) {
        looks_set_effect_to(130, "COLOR")
    }
    if (( @"Character" == "5" )) {
        looks_set_effect_to(210, "COLOR")
    }
    show
    repeat(10) {
        go_to_xy(( of("Characters", "x position") - 5 ), ( of("Characters", "y position") - 40 ))
        looks_change_effect_by(-10, "GHOST")
    }
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        change_y_by(( ( ( of("Characters", "y position") - 40 ) - y_position() ) / 2 ))
        go_to_front_back("front")
        next_costume
    }
    when_broadcast_received(@"GameOver")
    repeat(10) {
        turn_left(10)
        change_x_by(-10)
        change_y_by(-5)
        looks_change_effect_by(10, "GHOST")
    }
    hide
    when_broadcast_received(@"Game")
    set_variable_to("0", @"Sine [Characters & Hoverboard]")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        point_in_direction(( ( mathop("sin",@"Sine [Characters & Hoverboard]") * 5 ) + 90 ))
        change_variable_by(10, @"Sine [Characters & Hoverboard]")
    }
    go_to_xy(( of("Characters", "x position") - 5 ), ( of("Characters", "y position") - 30 ))
Fireball
    when_flag_clicked
    set_variable_to("0", @"Ghost-Effect")
    hide
    switch_costume_to("1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Shoot")
    hide
    switch_costume_to("1")
    set_size_to(70)
    set_variable_to("0", @"v")
    set_variable_to("0", @"Ghost-Effect")
    looks_set_effect_to(0, "PIXELATE")
    looks_set_effect_to(100, "GHOST")
    go_to_xy(30, 10)
    point_towards("Characters")
    go_to_front_back("front")
    show
    repeat_until (touching_object(_edge_)) {
        move_steps(10)
        if (touching_object("Shield")) {
            play("Clang")
            broadcast(@"FireballDefended")
            wait(0.01)
            repeat(10) {
                switch_costume_to("1")
                change_x_by(20)
                change_y_by(-2)
                turn_right(( ( 90 - direction() ) / 4 ))
                if (touching_object("Dragon")) {
                    if (!( ( @"v" == "1" ) )) {
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                        create_clone_of(_myself_)
                    }
                    set_variable_to("1", @"v")
                    set_variable_to("0", @"i")
                    repeat(10) {
                        looks_change_effect_by(10, "GHOST")
                        change_y_by(mathop("tan",@"i"))
                        change_variable_by(-2, @"i")
                    }
                }
            }
            repeat(10) {
                looks_change_effect_by(10, "GHOST")
            }
        }
    }
    repeat(10) {
        go_to_front_back("front")
        move_steps(10)
    }
    when_broadcast_received(@"Shoot")
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
    }
    start_as_clone
    hide
    switch_costume_to("Dot")
    set_size_to(random(50, 100))
    looks_set_effect_to(0, "GHOST")
    looks_set_effect_to(random(-100, 20), "BRIGHTNESS")
    go_to_front_back("front")
    set_y(random(-70, 50))
    point_in_direction(random(0, 360))
    change_x_by(30)
    set_variable_to("0", @"i")
    set_variable_to(random(-5, 5), @"v")
    show
    repeat_until (touching_object(_edge_)) {
        looks_change_effect_by(5, "GHOST")
        turn_right(@"v")
        change_x_by(@"v")
        change_y_by(@"i")
        change_variable_by(-2, @"i")
    }
    delete_this_clone
    when_broadcast_received(@"Shoot")
    wait_until (touching_object(_edge_))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
Shield
    when_flag_clicked
    set_variable_to("0", @"ShieldCooldown")
    hide
    switch_costume_to("1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Game")
    set_variable_to("0", @"TouchTrigger")
    set_variable_to("0", @"ShieldCooldown")
    set_variable_to("0", @"Manager 2")
    set_variable_to("0", @"Shield")
    hide
    set_variable_to("1", @"Cooldown")
    set_variable_to("1", @"ShieldCooldown")
    switch_costume_to("1")
    set_size_to(50)
    looks_set_effect_to(100, "GHOST")
    if (( @"Character" == "1" )) {
        looks_set_effect_to(65, "COLOR")
    }
    if (( @"Character" == "2" )) {
        looks_set_effect_to(0, "COLOR")
    }
    if (( @"Character" == "3" )) {
        looks_set_effect_to(60, "COLOR")
    }
    if (( @"Character" == "4" )) {
        looks_set_effect_to(130, "COLOR")
    }
    if (( @"Character" == "5" )) {
        looks_set_effect_to(210, "COLOR")
    }
    go_to_xy(0, 0)
    point_in_direction(90)
    set_variable_to("0", @"Ctrigger")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        if (key_pressed("left arrow")) {
            if (!( ( @"Cooldown" == "1" ) )) {
                set_variable_to("1", @"Cooldown")
                set_variable_to("1", @"ShieldCooldown")
                set_variable_to("0", @"TouchTrigger")
                show
                go_to("Characters")
                set_variable_to(( of("Characters", "x position") + 40 ), @"SlidePos")
                play("On")
                repeat(10) {
                    change_size_by(2)
                    looks_change_effect_by(-10, "GHOST")
                    change_x_by(( ( @"SlidePos" - x_position() ) / 2 ))
                    if (touching_object("Fireball")) {
                        set_variable_to("1", @"TouchTrigger")
                        set_variable_to(( of("Characters", "x position") + 10 ), @"SlidePos")
                        play("Off")
                        repeat(10) {
                            change_size_by(-2)
                            looks_change_effect_by(10, "GHOST")
                            change_x_by(( ( @"SlidePos" - x_position() ) / 2 ))
                        }
                        hide
                    }
                }
                if (!( ( @"TouchTrigger" == "1" ) )) {
                    set_variable_to("1", @"Shield")
                    wait_until (( !( key_pressed("left arrow") ) || touching_object("Fireball") ))
                    set_variable_to("0", @"Shield")
                    set_variable_to(( of("Characters", "x position") + 10 ), @"SlidePos")
                    play("Off")
                    repeat(10) {
                        change_size_by(-2)
                        looks_change_effect_by(10, "GHOST")
                        change_x_by(( ( @"SlidePos" - x_position() ) / 2 ))
                    }
                    hide
                }
            }
            else {
                play("Crunch")
                wait_until (!( key_pressed("left arrow") ))
            }
        }
    }
    when_broadcast_received(@"Game")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        wait_until (( @"Cooldown" == "1" ))
        repeat(5) {
            change_variable_by(1, @"Ctrigger")
            wait(1)
            if (( @"Ctrigger" == "3" )) {
                set_variable_to("0", @"Ctrigger")
            }
            if (!( ( @"Manager" == "Game" ) )) {
                stop("this script")
            }
        }
        set_variable_to("0", @"Cooldown")
        set_variable_to("0", @"ShieldCooldown")
    }
    when_broadcast_received(@"Game")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        set_y(of("Characters", "y position"))
    }
Controls
    when_flag_clicked
    hide
    switch_costume_to("Controls")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Play")
    switch_costume_to("Controls")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, -130)
    point_in_direction(90)
    wait(0.2)
    show
    repeat(10) {
        change_x_by(( ( 0 - x_position() ) / 2 ))
        looks_change_effect_by(-10, "GHOST")
    }
    wait_until (!( ( @"Manager" == "Play" ) ))
    repeat(10) {
        change_x_by(( ( -400 - x_position() ) / 2 ))
        looks_change_effect_by(10, "GHOST")
    }
    hide
Score
    when_flag_clicked
    hide
    start_as_clone
    go_to_front_back("front")
    looks_set_effect_to(0, "GHOST")
    set_size_to(150)
    show
    wait_until (( @"Manager 2" == "Replay" ))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    delete_this_clone
    procedures_definition("print_ %s")
    broadcast(@"delete")
    set_variable_to("1", @"element")
    go_to_xy(-220, -162.5)
    repeat(length(@"Score")) {
        switch_costume_to(letter_of(@"element", @"Score"))
        create_clone_of(_myself_)
        change_x_by(15)
        change_variable_by(1, @"element")
    }
    when_broadcast_received(@"delete")
    delete_this_clone
    when_broadcast_received(@"Game")
    set_variable_to("0", @"Score")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        print_(1)
    }
    when_broadcast_received(@"StartGame")
    wait(1)
    switch_costume_to("Kostüm10")
    go_to_front_back("front")
    looks_set_effect_to(100, "GHOST")
    set_size_to(150)
    go_to_xy(-220, -162.5)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
    }
    wait_until (( @"Manager" == "Game" ))
    hide
ScorePointer
    when_flag_clicked
    hide
    switch_costume_to("+5")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"ScorePointer +5")
    switch_costume_to("+5")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(( of("Dragon", "x position") - 50 ), ( of("Dragon", "y position") + 100 ))
    point_in_direction(90)
    show
    repeat(10) {
        change_y_by(1)
        looks_change_effect_by(-10, "GHOST")
    }
    repeat(20) {
        change_y_by(1)
        looks_change_effect_by(5, "GHOST")
    }
    hide
    when_broadcast_received(@"ScorePointer +1")
    create_clone_of(_myself_)
    start_as_clone
    switch_costume_to("+1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_front_back("front")
    go_to_xy(( of("Score", "x position") + 10 ), of("Score", "y position"))
    point_in_direction(90)
    show
    repeat(10) {
        change_x_by(1)
        looks_change_effect_by(-10, "GHOST")
    }
    repeat(20) {
        change_x_by(1)
        looks_change_effect_by(5, "GHOST")
    }
    hide
    delete_this_clone
Coins
    when_flag_clicked
    hide
    switch_costume_to("1")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"Game")
    switch_costume_to("1")
    set_size_to(50)
    looks_set_effect_to(100, "GHOST")
    point_in_direction(90)
    set_variable_to("0", @"IFEC")
    set_variable_to("0", @"Position")
    repeat_until (!( ( @"Manager" == "Game" ) )) {
        wait(random(1, 3))
        set_variable_to("0", @"IFEC")
        set_variable_to(random(1, 4), @"Position")
        if (( @"Position" == "1" )) {
            go_to_xy(-150, -100)
        }
        else {
            if (( @"Position" == "2" )) {
                go_to_xy(-150, -20)
            }
            else {
                if (( @"Position" == "3" )) {
                    go_to_xy(-150, 60)
                }
                else {
                    go_to_xy(-150, 140)
                }
            }
        }
        switch_costume_to("1")
        set_size_to(50)
        looks_set_effect_to(100, "GHOST")
        point_in_direction(90)
        show
        if (touching_object("Characters")) {
            set_variable_to("1", @"IFEC")
            repeat(10) {
                next_costume
                looks_change_effect_by(10, "GHOST")
            }
            hide
        }
        if (!( ( @"IFEC" == "1" ) )) {
            repeat(5) {
                next_costume
                looks_change_effect_by(-10, "GHOST")
            }
            repeat(5) {
                next_costume
                looks_change_effect_by(-10, "GHOST")
                if (touching_object("Characters")) {
                    broadcast(@"ScorePointer +1")
                    play("Collect")
                    set_variable_to("1", @"IFEC")
                    change_variable_by(1, @"Score")
                    repeat(10) {
                        looks_change_effect_by(10, "GHOST")
                    }
                    hide
                }
            }
            if (!( ( @"IFEC" == "1" ) )) {
                repeat_until (touching_object("Characters")) {
                    next_costume
                    if (!( ( @"Manager" == "Game" ) )) {
                        stop("this script")
                    }
                }
                broadcast(@"ScorePointer +1")
                play("Collect")
                change_variable_by(1, @"Score")
                repeat(10) {
                    looks_change_effect_by(10, "GHOST")
                }
                hide
            }
        }
    }
    when_broadcast_received(@"GameOver")
    stop("other scripts in sprite")
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    hide
Highscore
    when_flag_clicked
    hide_variable(@"☁ Cloud-Highscore")
    hide
    switch_costume_to("Default")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(0, 0)
    point_in_direction(90)
    when_broadcast_received(@"GameOver")
    wait(1.5)
    switch_costume_to("Default")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(190, -175)
    point_in_direction(90)
    show
    repeat(10) {
        looks_change_effect_by(-10, "GHOST")
    }
    wait_until (( @"Manager 2" == "Replay" ))
    hide_variable(@"☁ Cloud-Highscore")
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    hide
    when_broadcast_received(@"GameOver")
    repeat_until (!( ( @"Manager" == "GameOver" ) )) {
        if (touching_object(_mouse_)) {
            looks_set_effect_to(15, "BRIGHTNESS")
            if (mouse_down()) {
                if (( y_position() == "-175" )) {
                    repeat(5) {
                        change_y_by(( ( -135 - y_position() ) / 2 ))
                    }
                    show_variable(@"☁ Cloud-Highscore")
                    repeat(5) {
                        change_y_by(( ( -135 - y_position() ) / 2 ))
                    }
                }
                else {
                    hide_variable(@"☁ Cloud-Highscore")
                    repeat(10) {
                        change_y_by(( ( -175 - y_position() ) / 2 ))
                    }
                }
            }
        }
        else {
            looks_set_effect_to(0, "BRIGHTNESS")
        }
    }
    when_broadcast_received(@"GameOver")
    if (( @"Score" > @"☁ Cloud-Highscore" )) {
        create_clone_of(_myself_)
        set_variable_to("0", @"☁ Cloud-Highscore")
        repeat(mathop("abs",@"Score")) {
            change_variable_by(1, @"☁ Cloud-Highscore")
        }
    }
    start_as_clone
    wait(1)
    switch_costume_to("Highscore broken!")
    set_size_to(100)
    looks_set_effect_to(100, "GHOST")
    go_to_xy(-400, -80)
    point_in_direction(90)
    show
    repeat(10) {
        change_x_by(( ( -180 - x_position() ) / 2 ))
        looks_change_effect_by(-10, "GHOST")
    }
    wait_until (( @"Manager 2" == "Replay" ))
    repeat(10) {
        looks_change_effect_by(10, "GHOST")
    }
    hide
    delete_this_clone
    when_broadcast_received(@"GameOver")
    repeat_until (( @"Manager" == "StartGame" )) {
        if (!( ( @"Manager" == "GameOver" ) )) {
            repeat(10) {
                looks_change_effect_by(10, "GHOST")
                if (!( ( y_position() == "-175" ) )) {

                }
            }
            hide
        }
    }
Intro
    when_broadcast_received(@"Intro")
    set_variable_to("0", @"MicroBounce")
    set_variable_to("0", @"MicroClone")
    set_variable_to("0", @"Clone")
    hide
    switch_costume_to("Logo")
    set_size_to(50)
    looks_set_effect_to(100, "GHOST")
    point_in_direction(90)
    go_to_xy(0, 0)
    set_variable_to("Load", @"Clone")
    create_clone_of(_myself_)
    set_variable_to("0", @"Clone")
    repeat(2) {
        change_variable_by(1, @"Clone")
        create_clone_of(_myself_)
    }
    play("Intro")
    when_flag_clicked
    hide
    switch_costume_to("Logo")
    set_size_to(50)
    looks_set_effect_to(100, "GHOST")
    point_in_direction(90)
    go_to_xy(0, 0)
    start_as_clone
    if (( @"Clone" == "1" )) {
        switch_costume_to("Form")
        set_size_to(100)
        looks_set_effect_to(100, "GHOST")
        point_in_direction(90)
        go_to_xy(0, 0)
        go_to_front_back("front")
        show
        repeat(10) {
            looks_change_effect_by(-10, "GHOST")
        }
        wait(1.5)
        repeat(10) {
            looks_change_effect_by(10, "GHOST")
        }
        delete_this_clone
    }
    start_as_clone
    if (( @"Clone" == "2" )) {
        switch_costume_to("Colors")
        set_size_to(100)
        looks_set_effect_to(100, "GHOST")
        point_in_direction(90)
        go_to_xy(-400, 0)
        go_to_front_back("back")
        wait(0.1)
        show
        repeat(20) {
            go_to_front_back("back")
            looks_change_effect_by(-5, "GHOST")
            change_x_by(( ( 0 - x_position() ) / 4 ))
        }
        set_x(0)
        wait(0.5)
        repeat(20) {
            looks_change_effect_by(5, "GHOST")
        }
        switch_costume_to("Logo")
        set_size_to(100)
        looks_set_effect_to(100, "GHOST")
        point_in_direction(0)
        go_to_xy(0, 0)
        set_variable_to("0", @"MicroBounce")
        show
        repeat(30) {
            looks_change_effect_by(-10, "GHOST")
            change_y_by(( ( 0 - y_position() ) / 2 ))
            turn_right(( ( 90 - direction() ) / 4 ))
            set_variable_to(( ( @"Bounce" * 0.7 ) + ( ( 65 - size() ) / 9 ) ), @"Bounce")
            change_size_by(@"Bounce")
        }
        point_in_direction(90)
        wait(0.25)
        set_variable_to("0", @"i")
        repeat(20) {
            change_x_by(mathop("tan",@"i"))
            change_variable_by(5, @"i")
            looks_change_effect_by(5, "GHOST")
        }
        change_variable_by(1, @"Clone")
        create_clone_of(_myself_)
        delete_this_clone
    }
    start_as_clone
    if (( @"Clone" == "3" )) {
        hide
        switch_costume_to("Username")
        set_size_to(0)
        looks_set_effect_to(100, "GHOST")
        looks_set_effect_to(0, "BRIGHTNESS")
        point_in_direction(0)
        go_to_xy(0, 0)
        show
        repeat(20) {
            looks_change_effect_by(-5, "GHOST")
            change_size_by(( ( 70 - size() ) / 4 ))
            turn_right(( ( 90 - direction() ) / 4 ))
        }
        wait(1)
        set_variable_to("0", @"i")
        repeat(20) {
            looks_change_effect_by(5, "GHOST")
            looks_change_effect_by(0.5, "BRIGHTNESS")
            change_y_by(( mathop("tan",@"i") / 2 ))
            change_variable_by(-5, @"i")
        }
        wait(0.5)
        set_variable_to("true", @"LogoShown")
        delete_this_clone
    }
    start_as_clone
    if (( @"Clone" == "Load" )) {
        switch_costume_to("Load")
        set_size_to(100)
        looks_set_effect_to(0, "GHOST")
        point_in_direction(90)
        go_to_xy(-500, 0)
        show
        repeat(180) {
            go_to_front_back("front")
            change_x_by(2.4)
        }
        repeat(20) {
            looks_change_effect_by(5, "GHOST")
            change_x_by(2.4)
        }
        delete_this_clone
    }
CT concepts554433221100Flow Control1.570796327Data Representation2.35619449Abstraction & Problem De…Abstraction & Problem DecompositionUser Interactivity3.926990817Synchronization4.71238898Parallelism5.497787144Logical Thinking6.283185307Mathematics7.068583471CT concepts5370.019.03703703703701Flow Control5127.7504545934976488.73477521764568Data Representation527.407407407407433256.99999999999994Abstraction & Problem Decomposition5127.75045459349757425.2652247823543User Interactivity4369.99999999999994447.3703703703704Synchronization4563.799636325202391.6121798258835Parallelism5712.5925925925925257.0Logical Thinking4563.799636325202122.38782017411648Mathematics
{
    "scores": {
        "flow": 5,
        "data": 5,
        "abs": 5,
        "ui": 5,
        "sync": 4,
        "parallel": 4,
        "logic": 5,
        "math": 4
    },
    "descriptions": {
        "flow": [
            "1) There are 86 Hat-blocks and using 56 types of commands.",
            "2) There are 2 forever statements.",
            "3) There are 127 repeat(count) statements.",
            "4) There are 30 repeat_until statements.",
            "5) 4-level nested loops."
        ],
        "data": [
            "1) Use object properties.",
            "2) Access object property as variable.",
            "3) Use 44 variables.",
            "4) Use 1 cloud variables."
        ],
        "abs": [
            "1) There are 18 objects and 86 Hat-blocks.",
            "2) There are 20 times of clone-related and using start_as_clone().",
            "4) There are 1 custom procedures.",
            "5) All 1 custom procedures are called."
        ],
        "ui": [
            "1) Use when_flag_clicked().",
            "2) Use keyboard or mouse or Q&A.",
            "3) Use conditional UI events, like key_pressed() or mouse_down().",
            "4) Use touching events, like touching object or color.",
            "5) Use webcam or input sound."
        ],
        "sync": [
            "1) There are 33 wait()",
            "2) There are 6 stop() and 71 messages",
            "3) There are 0 broadcast_and_wait(), 1 play_until_done() and 0 when_backdrop_switches_to().",
            "4) There are 33 wait_until()."
        ],
        "parallel": [
            "1) There are 86 Hat-blocks and 19 when_flag_clicked().",
            "2) There are 18 objects.",
            "4) There are 86 Hat-blocks, 54 when_broadcast_received(), 0 when_backdrop_switches_to(), 1 when_greater_than() and 0 when_motion_greater_than()."
        ],
        "logic": [
            "1) There are 55 if statements.",
            "2) There are 15 if-else statements.",
            "3) Use EQUAL or GREATER-THAN or LESS-THAN.",
            "4) Use NOT or AND or OR.",
            "5) 3-level nested conditional statements."
        ],
        "math": [
            "1) Use + - * / or random. (basic math)",
            "2) Use % or abs. (integer)",
            "4) Use sin, cos, tan, asic, acos or atan. (trigonometric)"
        ],
        "habits": [
            "*) Missing 1 sender messages ['Shake']",
            "*) There are 2 pieces of code without hats."
        ]
    }
}
{
    "calls": {
        "when_flag_clicked": {
            "count": 19,
            "type": "proc"
        },
        "set_variable_to": {
            "count": 88,
            "type": "func"
        },
        "looks_set_effect_to": {
            "count": 82,
            "type": "func"
        },
        "switch_backdrop_to": {
            "count": 3,
            "type": "func"
        },
        "looks_backdrops": {
            "count": 3,
            "type": "func"
        },
        "looks_change_effect_by": {
            "count": 106,
            "type": "func"
        },
        "broadcast": {
            "count": 17,
            "type": "func"
        },
        "wait_until": {
            "count": 33,
            "type": "func"
        },
        "when_broadcast_received": {
            "count": 54,
            "type": "func"
        },
        "wait": {
            "count": 33,
            "type": "func"
        },
        "set_volume_to": {
            "count": 1,
            "type": "func"
        },
        "play_until_done": {
            "count": 1,
            "type": "func"
        },
        "hide": {
            "count": 52,
            "type": "proc"
        },
        "switch_costume_to": {
            "count": 55,
            "type": "func"
        },
        "set_size_to": {
            "count": 54,
            "type": "func"
        },
        "go_to_xy": {
            "count": 58,
            "type": "func"
        },
        "point_in_direction": {
            "count": 50,
            "type": "func"
        },
        "show": {
            "count": 36,
            "type": "proc"
        },
        "change_y_by": {
            "count": 31,
            "type": "func"
        },
        "y_position": {
            "count": 21,
            "type": "func"
        },
        "change_size_by": {
            "count": 25,
            "type": "func"
        },
        "size": {
            "count": 21,
            "type": "func"
        },
        "change_x_by": {
            "count": 37,
            "type": "func"
        },
        "x_position": {
            "count": 28,
            "type": "func"
        },
        "touching_object": {
            "count": 36,
            "type": "func"
        },
        "play": {
            "count": 18,
            "type": "func"
        },
        "stop": {
            "count": 6,
            "type": "func"
        },
        "start_as_clone": {
            "count": 12,
            "type": "proc"
        },
        "delete_this_clone": {
            "count": 16,
            "type": "proc"
        },
        "next_costume": {
            "count": 9,
            "type": "proc"
        },
        "change_variable_by": {
            "count": 15,
            "type": "func"
        },
        "create_clone_of": {
            "count": 20,
            "type": "func"
        },
        "join": {
            "count": 1,
            "type": "func"
        },
        "costume_number_name": {
            "count": 2,
            "type": "func"
        },
        "mouse_down": {
            "count": 6,
            "type": "func"
        },
        "go_to_front_back": {
            "count": 17,
            "type": "func"
        },
        "key_pressed": {
            "count": 5,
            "type": "func"
        },
        "turn_left": {
            "count": 2,
            "type": "func"
        },
        "mathop": {
            "count": 6,
            "type": "func"
        },
        "set_x": {
            "count": 2,
            "type": "func"
        },
        "reset_timer": {
            "count": 1,
            "type": "func"
        },
        "when_greater_than": {
            "count": 1,
            "type": "func"
        },
        "hide_variable": {
            "count": 4,
            "type": "func"
        },
        "of": {
            "count": 13,
            "type": "func"
        },
        "point_towards": {
            "count": 1,
            "type": "func"
        },
        "move_steps": {
            "count": 2,
            "type": "func"
        },
        "turn_right": {
            "count": 4,
            "type": "func"
        },
        "direction": {
            "count": 3,
            "type": "func"
        },
        "random": {
            "count": 7,
            "type": "func"
        },
        "set_y": {
            "count": 2,
            "type": "func"
        },
        "go_to": {
            "count": 1,
            "type": "func"
        },
        "procedures_definition": {
            "count": 1,
            "type": "func"
        },
        "length": {
            "count": 1,
            "type": "func"
        },
        "letter_of": {
            "count": 1,
            "type": "func"
        },
        "print_": {
            "count": 1,
            "type": "func"
        },
        "show_variable": {
            "count": 1,
            "type": "func"
        }
    },
    "sender_messages": {
        "Intro": 1,
        "Start": 2,
        "Menu": 2,
        "StartMenu": 1,
        "Play": 1,
        "Character": 1,
        "StartGame": 1,
        "GameOver": 1,
        "Game": 1,
        "Shoot": 1,
        "ScorePointer +5": 1,
        "FireballDefended": 1,
        "delete": 1,
        "ScorePointer +1": 2
    },
    "receiver_messages": {
        "StartMenu": 1,
        "StartGame": 4,
        "GameOver": 13,
        "Start": 2,
        "Menu": 5,
        "Play": 7,
        "Character": 1,
        "Game": 12,
        "FireballDefended": 1,
        "Shake": 1,
        "Shoot": 3,
        "delete": 1,
        "ScorePointer +5": 1,
        "ScorePointer +1": 1,
        "Intro": 1
    },
    "pressed_keys": {
        "\"up arrow\"": 1,
        "\"down arrow\"": 1,
        "\"left arrow\"": 3
    },
    "variables": {
        "Manager": {
            "set": true,
            "get": true
        },
        "LogoShown": {
            "get": true,
            "set": true
        },
        "Intro": {
            "get": true
        },
        "Start": {
            "get": true
        },
        "StartMenu": {
            "get": true
        },
        "Menu": {
            "get": true
        },
        "StartGame": {
            "get": true
        },
        "GameOver": {
            "get": true
        },
        "i": {
            "set": true,
            "get": true,
            "change": true
        },
        "Manager 2": {
            "get": true,
            "set": true
        },
        "SelectedButton": {
            "get": true,
            "set": true
        },
        "Play": {
            "get": true
        },
        "CloneID": {
            "get": true,
            "change": true,
            "set": true
        },
        "CharacterSelect": {
            "get": true,
            "set": true
        },
        "Character": {
            "get": true,
            "set": true
        },
        "FirstPlay": {
            "set": true,
            "get": true
        },
        "Game": {
            "get": true
        },
        "SlidePos": {
            "set": true,
            "get": true
        },
        "SlidePos2": {
            "set": true,
            "get": true
        },
        "AT-Trigger": {
            "set": true,
            "get": true
        },
        "Slide-Trigger": {
            "set": true,
            "get": true
        },
        "Sine [Characters & Hoverboard]": {
            "get": true,
            "set": true,
            "change": true
        },
        "ShieldCooldown": {
            "get": true,
            "set": true
        },
        "Shoot": {
            "get": true
        },
        "FireballDefended": {
            "get": true
        },
        "Score": {
            "change": true,
            "get": true,
            "set": true
        },
        "ScorePointer +5": {
            "get": true
        },
        "Shake": {
            "get": true
        },
        "\u2601 Cloud-Highscore": {
            "get": true,
            "set": true,
            "change": true
        },
        "Ghost-Effect": {
            "set": true,
            "get": true
        },
        "v": {
            "set": true,
            "get": true
        },
        "TouchTrigger": {
            "set": true,
            "get": true
        },
        "Shield": {
            "set": true,
            "get": true
        },
        "Cooldown": {
            "set": true,
            "get": true
        },
        "Ctrigger": {
            "set": true,
            "get": true,
            "change": true
        },
        "delete": {
            "get": true
        },
        "element": {
            "set": true,
            "get": true,
            "change": true
        },
        "ScorePointer +1": {
            "get": true
        },
        "IFEC": {
            "set": true,
            "get": true
        },
        "Position": {
            "set": true,
            "get": true
        },
        "MicroBounce": {
            "set": true,
            "get": true
        },
        "MicroClone": {
            "set": true,
            "get": true
        },
        "Clone": {
            "set": true,
            "get": true,
            "change": true
        },
        "Bounce": {
            "set": true,
            "get": true
        }
    },
    "custom_procedures": {
        "print_": 1
    },
    "list_counts": {
        "add_to_list": 0,
        "delete_of_list": 0,
        "delete_all_of_list": 0,
        "insert_at_list": 0,
        "replace_item_of_list": 0,
        "item_of_list": 0,
        "item_num_of_list": 0,
        "length_of_list": 0,
        "list_contains_item": 0
    },
    "hat_counts": {
        "when_flag_clicked": 19,
        "when_key_pressed": 0,
        "when_this_sprite_clicked": 0,
        "when_stage_clicked": 0,
        "when_backdrop_switches_to": 0,
        "when_greater_than": 1,
        "when_broadcast_received": 54,
        "start_as_clone": 12,
        "when_motion_greater_than": 0
    },
    "ui_counts": {
        "ask_and_wait": 0,
        "answer": 0,
        "_mouse_": 24,
        "mouse_down": 6,
        "mouse_x": 0,
        "mouse_y": 0,
        "distance_to": 0,
        "when_this_sprite_clicked": 0,
        "when_stage_clicked": 0,
        "when_key_pressed": 0,
        "key_pressed": 5,
        "when_motion_greater_than": 0,
        "video_on": 0,
        "when_greater_than": 1,
        "loudness": 0,
        "touching_object": 36,
        "touching_color": 0,
        "color_is_touching_color": 0
    },
    "sync_counts": {
        "wait_until": 33,
        "repeat_until": 30,
        "stop": 6,
        "wait": 33,
        "play_until_done": 1,
        "broadcast_and_wait": 0
    },
    "operator_counts": {
        "==": 80,
        "/": 59,
        "-": 65,
        "!": 56,
        ">": 10,
        "&&": 5,
        "<": 2,
        "+": 9,
        "*": 3,
        "sin": 2,
        "tan": 3,
        "||": 1,
        "abs": 1
    },
    "clone_counts": {
        "_myself_": 20
    },
    "if_counts": {
        "if": 55,
        "if_else": 15
    },
    "repeat_counts": {
        "forever": 2,
        "repeat": 127,
        "repeat_until": 30
    },
    "max_depth": {
        "repeat": 4,
        "if": 3
    },
    "target_counts": {
        "stage": 1,
        "object": 18
    },
    "def_vars": {
        "CloneID": {
            "name": "CloneID",
            "scope": "Undelrine"
        },
        "Manager": {
            "name": "Manager",
            "scope": null
        },
        "SelectedButton": {
            "name": "SelectedButton",
            "scope": null
        },
        "Character": {
            "name": "Character",
            "scope": null
        },
        "CharacterSelect": {
            "name": "CharacterSelect",
            "scope": null
        },
        "FirstPlay": {
            "name": "FirstPlay",
            "scope": "CharacterHeads"
        },
        "SlidePos": {
            "name": "SlidePos",
            "scope": "Shield"
        },
        "AT-Trigger": {
            "name": "AT-Trigger",
            "scope": "Characters"
        },
        "Slide-Trigger": {
            "name": "Slide-Trigger",
            "scope": "Characters"
        },
        "SlidePos2": {
            "name": "SlidePos2",
            "scope": "Characters"
        },
        "Cooldown": {
            "name": "Cooldown",
            "scope": "Shield"
        },
        "Ctrigger": {
            "name": "Ctrigger",
            "scope": "Shield"
        },
        "Ghost-Effect": {
            "name": "Ghost-Effect",
            "scope": "Fireball I"
        },
        "Shield": {
            "name": "Shield",
            "scope": null
        },
        "Manager 2": {
            "name": "Manager 2",
            "scope": null
        },
        "Position": {
            "name": "Position",
            "scope": "Coins"
        },
        "IFEC": {
            "name": "IFEC",
            "scope": "Coins"
        },
        "i": {
            "name": "i",
            "scope": "Title"
        },
        "ShieldCooldown": {
            "name": "ShieldCooldown",
            "scope": null
        },
        "v": {
            "name": "v",
            "scope": "Fireball"
        },
        "\u2601 Cloud-Highscore": {
            "name": "\u2601 Cloud-Highscore",
            "scope": null
        },
        "TouchTrigger": {
            "name": "TouchTrigger",
            "scope": "Shield"
        }
    },
    "def_lists": {},
    "codes": [
        [
            "    when_flag_clicked\n    set_variable_to(\"0\", @\"Manager\")\n    looks_set_effect_to(-100, \"BRIGHTNESS\")\n    if (( @\"LogoShown\" == \"false\" )) {\n        switch_backdrop_to(looks_backdrops(\"Intro\"))\n        looks_set_effect_to(-100, \"BRIGHTNESS\")\n        repeat(20) {\n            looks_change_effect_by(5, \"BRIGHTNESS\")\n        }\n        set_variable_to(\"Intro\", @\"Manager\")\n        broadcast(@\"Intro\")\n        wait_until (( @\"LogoShown\" == \"true\" ))\n        repeat(20) {\n            looks_change_effect_by(-5, \"BRIGHTNESS\")\n        }\n        switch_backdrop_to(looks_backdrops(\"Default\"))\n        looks_set_effect_to(-100, \"BRIGHTNESS\")\n        repeat(20) {\n            looks_change_effect_by(5, \"BRIGHTNESS\")\n        }\n        set_variable_to(\"Start\", @\"Manager\")\n        broadcast(@\"Start\")\n    }\n    else {\n        switch_backdrop_to(looks_backdrops(\"Default\"))\n        looks_set_effect_to(-100, \"BRIGHTNESS\")\n        repeat(20) {\n            looks_change_effect_by(5, \"BRIGHTNESS\")\n        }\n        set_variable_to(\"Start\", @\"Manager\")\n        broadcast(@\"Start\")\n    }",
            "    set_variable_to(\"false\", @\"LogoShown\")",
            "    when_broadcast_received(@\"StartMenu\")\n    wait(1)\n    set_variable_to(\"Menu\", @\"Manager\")\n    broadcast(@\"Menu\")\n    set_volume_to(100)\n    forever {\n        play_until_done(\"Xaf - Plugged\")\n    }",
            "    when_broadcast_received(@\"StartGame\")\n    wait(0.5)\n    repeat(20) {\n        looks_change_effect_by(-1.5, \"BRIGHTNESS\")\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    repeat(20) {\n        looks_change_effect_by(1.5, \"BRIGHTNESS\")\n    }"
        ],
        [
            "    when_flag_clicked\n    set_variable_to(\"0\", @\"i\")\n    hide\n    switch_costume_to(\"Title 1\")\n    set_size_to(100)\n    go_to_xy(0, 0)",
            "    when_broadcast_received(@\"Start\")\n    switch_costume_to(\"Title 1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, -400)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_y_by(( ( 0 - y_position() ) / 2 ))\n    }\n    wait(1)\n    repeat(5) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    looks_set_effect_to(100, \"BRIGHTNESS\")\n    switch_costume_to(\"Title 2\")\n    repeat(20) {\n        looks_change_effect_by(-5, \"BRIGHTNESS\")\n        looks_change_effect_by(-2.5, \"GHOST\")\n    }\n    wait(1)\n    set_variable_to(\"StartMenu\", @\"Manager\")\n    broadcast(@\"StartMenu\")\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_y_by(( ( 0 - y_position() ) / 2 ))\n    }\n    hide",
            "    when_broadcast_received(@\"Menu\")\n    if (( @\"Manager 2\" == \"ReMenu\" )) {\n        repeat(10) {\n            looks_change_effect_by(10, \"GHOST\")\n            change_size_by(( ( 50 - size() ) / 2 ))\n        }\n    }\n    switch_costume_to(\"Title 3\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 400)\n    point_in_direction(90)\n    show\n    repeat(20) {\n        looks_change_effect_by(-5, \"GHOST\")\n        change_y_by(( ( 50 - y_position() ) / 4 ))\n    }",
            "    when_broadcast_received(@\"Menu\")\n    wait(0.1)\n    repeat_until (!( ( @\"Manager\" == \"Menu\" ) )) {\n        if (( @\"SelectedButton\" == \"Fight\" )) {\n            repeat(5) {\n                change_x_by(( ( 20 - x_position() ) / 2 ))\n            }\n        }\n        if (( @\"SelectedButton\" == \"Character\" )) {\n            repeat(5) {\n                change_x_by(( ( -20 - x_position() ) / 2 ))\n            }\n        }\n    }",
            "    when_broadcast_received(@\"Menu\")\n    repeat_until (!( ( @\"Manager\" == \"Menu\" ) )) {\n        if (touching_object(_mouse_)) {\n            play(\"Pew\")\n            repeat(10) {\n                change_size_by(( ( 100 - size() ) / 2 ))\n            }\n            wait_until (!( touching_object(_mouse_) ))\n        }\n        else {\n            if (( size() > \"98\" )) {\n                repeat(10) {\n                    change_size_by(( ( 90 - size() ) / 2 ))\n                }\n                wait_until (touching_object(_mouse_))\n            }\n        }\n    }",
            "    when_broadcast_received(@\"Play\")\n    stop(\"other scripts in sprite\")\n    repeat(10) {\n        change_size_by(-2)\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    set_size_to(50)\n    switch_costume_to(\"Title 4\")\n    go_to_xy(-200, 130)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 0 - x_position() ) / 2 ))\n    }\n    wait_until (!( ( @\"Manager\" == \"Play\" ) ))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_x_by(( ( 200 - x_position() ) / 2 ))\n    }\n    hide",
            "    when_broadcast_received(@\"GameOver\")\n    wait(1)\n    switch_costume_to(\"Title 3\")\n    set_size_to(90)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 400)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_y_by(( ( 50 - y_position() ) / 2 ))\n    }\n    repeat_until (!( ( @\"Manager\" == \"GameOver\" ) )) {\n        if (touching_object(_mouse_)) {\n            play(\"Pew\")\n            repeat(10) {\n                change_size_by(( ( 100 - size() ) / 2 ))\n            }\n            wait_until (!( touching_object(_mouse_) ))\n        }\n        else {\n            if (( size() > \"98\" )) {\n                repeat(10) {\n                    change_size_by(( ( 90 - size() ) / 2 ))\n                }\n                wait_until (touching_object(_mouse_))\n            }\n        }\n    }"
        ],
        [
            "    start_as_clone\n    if (( @\"CloneID\" == \"5\" )) {\n        delete_this_clone\n    }\n    next_costume\n    set_size_to(0)\n    looks_set_effect_to(100, \"GHOST\")\n    point_in_direction(90)\n    go_to_xy(0, -100)\n    show\n    repeat(5) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_size_by(10)\n    }\n    change_variable_by(1, @\"CloneID\")\n    create_clone_of(_myself_)\n    repeat(5) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_size_by(10)\n    }\n    wait_until (!( ( @\"Manager\" == \"Start\" ) ))\n    wait(join(\"0.\", costume_number_name(\"number\")))\n    repeat(10) {\n        change_y_by(( ( -120 - y_position() ) / 2 ))\n        looks_change_effect_by(10, \"GHOST\")\n        change_size_by(-5)\n    }\n    delete_this_clone",
            "    when_broadcast_received(@\"Start\")\n    set_variable_to(\"0\", @\"CloneID\")\n    switch_costume_to(\"Line 1\")\n    set_size_to(0)\n    looks_set_effect_to(100, \"GHOST\")\n    point_in_direction(90)\n    go_to_xy(0, -100)\n    show\n    repeat(5) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_size_by(10)\n    }\n    change_variable_by(1, @\"CloneID\")\n    create_clone_of(_myself_)\n    repeat(5) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_size_by(10)\n    }\n    wait_until (!( ( @\"Manager\" == \"Start\" ) ))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_size_by(-5)\n    }\n    hide",
            "    when_flag_clicked\n    hide"
        ],
        [
            "    when_flag_clicked\n    set_variable_to(\"0\", @\"Manager 2\")\n    set_variable_to(\"0\", @\"SelectedButton\")\n    hide\n    set_size_to(100)\n    switch_costume_to(\"Fight\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Menu\")\n    create_clone_of(_myself_)\n    switch_costume_to(\"Fight\")\n    set_size_to(100)\n    looks_set_effect_to(0, \"BRIGHTNESS\")\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(400, -150)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 150 - x_position() ) / 2 ))\n    }\n    repeat_until (!( ( @\"Manager\" == \"Menu\" ) )) {\n        if (touching_object(_mouse_)) {\n            play(\"Pew\")\n            repeat(10) {\n                change_size_by(( ( 130 - size() ) / 2 ))\n                looks_change_effect_by(2, \"BRIGHTNESS\")\n            }\n            wait_until (!( touching_object(_mouse_) ))\n        }\n        else {\n            if (( size() > \"102\" )) {\n                repeat(10) {\n                    change_size_by(( ( 100 - size() ) / 2 ))\n                    looks_change_effect_by(-2, \"BRIGHTNESS\")\n                }\n                looks_set_effect_to(0, \"BRIGHTNESS\")\n                wait_until (touching_object(_mouse_))\n            }\n        }\n    }",
            "    start_as_clone\n    switch_costume_to(\"Character\")\n    set_size_to(100)\n    looks_set_effect_to(0, \"BRIGHTNESS\")\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, -150)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( -150 - x_position() ) / 2 ))\n    }\n    repeat_until (!( ( @\"Manager\" == \"Menu\" ) )) {\n        if (touching_object(_mouse_)) {\n            play(\"Pew\")\n            repeat(10) {\n                change_size_by(( ( 130 - size() ) / 2 ))\n                looks_change_effect_by(2, \"BRIGHTNESS\")\n            }\n            wait_until (!( touching_object(_mouse_) ))\n        }\n        else {\n            if (( size() > \"102\" )) {\n                repeat(10) {\n                    change_size_by(( ( 100 - size() ) / 2 ))\n                    looks_change_effect_by(-2, \"BRIGHTNESS\")\n                }\n                looks_set_effect_to(0, \"BRIGHTNESS\")\n                wait_until (touching_object(_mouse_))\n            }\n        }\n    }",
            "    when_broadcast_received(@\"Menu\")\n    repeat_until (!( ( @\"Manager\" == \"Menu\" ) )) {\n        if (( touching_object(_mouse_) && mouse_down() )) {\n            set_variable_to(\"Play\", @\"Manager\")\n            broadcast(@\"Play\")\n        }\n    }\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_x_by(( ( 200 - x_position() ) / 2 ))\n    }\n    hide\n    looks_set_effect_to(0, \"BRIGHTNESS\")\n    looks_set_effect_to(100, \"GHOST\")\n    set_size_to(100)\n    go_to_xy(200, -150)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 0 - x_position() ) / 2 ))\n    }\n    repeat_until (!( ( @\"Manager\" == \"Play\" ) )) {\n        if (touching_object(_mouse_)) {\n            go_to_front_back(\"front\")\n            play(\"Pew\")\n            repeat(10) {\n                change_size_by(( ( 130 - size() ) / 2 ))\n                looks_change_effect_by(2, \"BRIGHTNESS\")\n            }\n            wait_until (!( touching_object(_mouse_) ))\n        }\n        else {\n            if (( size() > \"102\" )) {\n                repeat(10) {\n                    change_size_by(( ( 100 - size() ) / 2 ))\n                    looks_change_effect_by(-2, \"BRIGHTNESS\")\n                }\n                looks_set_effect_to(0, \"BRIGHTNESS\")\n                wait_until (touching_object(_mouse_))\n            }\n        }\n    }",
            "    start_as_clone\n    repeat_until (!( ( @\"Manager\" == \"Menu\" ) )) {\n        if (( touching_object(_mouse_) && mouse_down() )) {\n            if (!( ( @\"CharacterSelect\" == \"1\" ) )) {\n                broadcast(@\"Character\")\n                wait_until (!( ( touching_object(_mouse_) && mouse_down() ) ))\n            }\n        }\n    }\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_x_by(( ( -200 - x_position() ) / 2 ))\n    }\n    delete_this_clone",
            "    when_broadcast_received(@\"Play\")\n    wait_until (( x_position() < \"100\" ))\n    repeat_until (!( ( @\"Manager\" == \"Play\" ) )) {\n        if (( touching_object(_mouse_) && mouse_down() )) {\n            set_variable_to(\"StartGame\", @\"Manager\")\n            broadcast(@\"StartGame\")\n        }\n    }\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_x_by(( ( -200 - x_position() ) / 2 ))\n    }\n    hide",
            "    when_broadcast_received(@\"GameOver\")\n    wait(1)\n    switch_costume_to(\"Replay\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    looks_set_effect_to(0, \"BRIGHTNESS\")\n    go_to_xy(400, -150)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 0 - x_position() ) / 2 ))\n    }\n    repeat_until (!( ( @\"Manager\" == \"GameOver\" ) )) {\n        if (touching_object(_mouse_)) {\n            play(\"Pew\")\n            repeat(10) {\n                change_size_by(( ( 130 - size() ) / 2 ))\n                looks_change_effect_by(2, \"BRIGHTNESS\")\n            }\n            wait_until (!( touching_object(_mouse_) ))\n        }\n        else {\n            if (( size() > \"102\" )) {\n                repeat(10) {\n                    change_size_by(( ( 100 - size() ) / 2 ))\n                    looks_change_effect_by(-2, \"BRIGHTNESS\")\n                }\n                looks_set_effect_to(0, \"BRIGHTNESS\")\n                wait_until (touching_object(_mouse_))\n            }\n        }\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    set_variable_to(\"0\", @\"Manager 2\")\n    wait(1)\n    wait_until (( x_position() < \"100\" ))\n    repeat_until (!( ( @\"Manager\" == \"GameOver\" ) )) {\n        if (( touching_object(_mouse_) && mouse_down() )) {\n            set_variable_to(\"Replay\", @\"Manager 2\")\n            repeat(10) {\n                looks_change_effect_by(10, \"GHOST\")\n            }\n            hide\n            set_variable_to(\"ReMenu\", @\"Manager 2\")\n            set_variable_to(\"Menu\", @\"Manager\")\n            broadcast(@\"Menu\")\n        }\n    }"
        ],
        [
            "    when_flag_clicked\n    set_variable_to(\"1\", @\"FirstPlay\")\n    set_variable_to(\"0\", @\"CharacterSelect\")\n    set_variable_to(\"1\", @\"Character\")\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Character\")\n    if (( x_position() > \"-150\" )) {\n        set_variable_to(\"1\", @\"CharacterSelect\")\n        repeat(10) {\n            looks_change_effect_by(40, \"GHOST\")\n            change_y_by(-30)\n        }\n        set_variable_to(\"0\", @\"CharacterSelect\")\n    }\n    next_costume\n    if (( @\"FirstPlay\" == \"1\" )) {\n        switch_costume_to(\"1\")\n        set_variable_to(\"0\", @\"FirstPlay\")\n    }\n    set_variable_to(costume_number_name(\"name\"), @\"Character\")\n    set_size_to(70)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, -400)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_y_by(( ( -100 - y_position() ) / 2 ))\n    }\n    wait(1)\n    repeat(10) {\n        looks_change_effect_by(40, \"GHOST\")\n        change_y_by(-30)\n    }\n    hide",
            "    when_broadcast_received(@\"Play\")\n    stop(\"other scripts in sprite\")\n    repeat(10) {\n        looks_change_effect_by(40, \"GHOST\")\n        change_y_by(-30)\n    }\n    hide"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Play\")\n    switch_costume_to(@\"Character\")\n    set_size_to(70)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, 0)\n    point_in_direction(90)\n    go_to_front_back(\"front\")\n    show\n    repeat(20) {\n        looks_change_effect_by(-5, \"GHOST\")\n        change_x_by(( ( 0 - x_position() ) / 2 ))\n    }\n    wait_until (!( ( @\"Manager\" == \"Play\" ) ))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide",
            "    when_broadcast_received(@\"Game\")\n    set_variable_to(\"0\", @\"SlidePos\")\n    switch_costume_to(@\"Character\")\n    set_size_to(30)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, -100)\n    point_in_direction(90)\n    go_to_front_back(\"front\")\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( -150 - x_position() ) / 2 ))\n    }\n    set_variable_to(\"0\", @\"SlidePos2\")\n    set_variable_to(\"0\", @\"AT-Trigger\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        if (touching_object(\"Fireball\")) {\n            play(\"Oops\")\n            set_variable_to(\"GameOver\", @\"Manager\")\n            broadcast(@\"GameOver\")\n        }\n    }",
            "    when_broadcast_received(@\"Game\")\n    set_variable_to(\"0\", @\"Slide-Trigger\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        if (key_pressed(\"up arrow\")) {\n            if (!( ( y_position() > \"100\" ) )) {\n                set_variable_to(\"1\", @\"Slide-Trigger\")\n                set_variable_to(( y_position() + 80 ), @\"SlidePos\")\n                repeat(5) {\n                    change_y_by(( ( @\"SlidePos\" - y_position() ) / 2 ))\n                }\n                set_variable_to(\"0\", @\"Slide-Trigger\")\n            }\n            else {\n                set_variable_to(\"1\", @\"Slide-Trigger\")\n                repeat(3) {\n                    change_y_by(3)\n                }\n                play(\"Crunch\")\n                repeat(3) {\n                    change_y_by(-3)\n                }\n                set_variable_to(\"0\", @\"Slide-Trigger\")\n            }\n        }\n        if (key_pressed(\"down arrow\")) {\n            if (!( ( \"-80\" > y_position() ) )) {\n                set_variable_to(\"1\", @\"Slide-Trigger\")\n                set_variable_to(( y_position() - 80 ), @\"SlidePos\")\n                repeat(5) {\n                    change_y_by(( ( @\"SlidePos\" - y_position() ) / 2 ))\n                }\n                set_variable_to(\"0\", @\"Slide-Trigger\")\n            }\n            else {\n                set_variable_to(\"1\", @\"Slide-Trigger\")\n                repeat(3) {\n                    change_y_by(-3)\n                }\n                play(\"Crunch\")\n                repeat(3) {\n                    change_y_by(3)\n                }\n                set_variable_to(\"0\", @\"Slide-Trigger\")\n            }\n        }\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    repeat(10) {\n        turn_left(15)\n        change_x_by(-10)\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide",
            "    when_broadcast_received(@\"Game\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        point_in_direction(( ( mathop(\"sin\",@\"Sine [Characters & Hoverboard]\") * 5 ) + 90 ))\n    }"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"Shadow\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Play\")\n    switch_costume_to(\"Shadow\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, -70)\n    point_in_direction(90)\n    wait(0.7)\n    show\n    repeat(10) {\n        looks_change_effect_by(-5, \"GHOST\")\n    }\n    wait_until (!( ( @\"Manager\" == \"Play\" ) ))\n    repeat(10) {\n        looks_change_effect_by(5, \"GHOST\")\n    }\n    hide",
            "    start_as_clone\n    hide\n    switch_costume_to(\"Slider\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    looks_set_effect_to(0, \"COLOR\")\n    go_to_xy(-500, 0)\n    point_in_direction(90)\n    show\n    repeat(20) {\n        looks_change_effect_by(-5, \"GHOST\")\n    }\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        looks_set_effect_to(0, \"GHOST\")\n        repeat(20) {\n            change_x_by(( ( -500 - x_position() ) / 4 ))\n        }\n        repeat_until (( @\"ShieldCooldown\" == \"0\" )) {\n            change_x_by(4)\n            if (!( ( @\"Manager\" == \"Game\" ) )) {\n                repeat(10) {\n                    looks_change_effect_by(10, \"GHOST\")\n                }\n                delete_this_clone\n            }\n        }\n        set_x(0)\n        wait_until (( @\"ShieldCooldown\" == \"0\" ))\n        repeat_until (( @\"ShieldCooldown\" == \"1\" )) {\n            repeat(10) {\n                looks_change_effect_by(7.5, \"GHOST\")\n                if (!( ( @\"Manager\" == \"Game\" ) )) {\n                    repeat(10) {\n                        looks_change_effect_by(10, \"GHOST\")\n                    }\n                    delete_this_clone\n                }\n            }\n            repeat(10) {\n                looks_change_effect_by(-7.5, \"GHOST\")\n                if (!( ( @\"Manager\" == \"Game\" ) )) {\n                    repeat(10) {\n                        looks_change_effect_by(10, \"GHOST\")\n                    }\n                    delete_this_clone\n                }\n            }\n        }\n    }\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    delete_this_clone",
            "    when_broadcast_received(@\"Game\")\n    create_clone_of(_myself_)"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"Dragon 1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Play\")\n    switch_costume_to(\"Dragon 1\")\n    set_size_to(200)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(400, -100)\n    point_in_direction(90)\n    wait(0.2)\n    if (!( ( @\"Manager\" == \"Play\" ) )) {\n        stop(\"this script\")\n    }\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 250 - x_position() ) / 2 ))\n    }\n    wait_until (!( ( @\"Manager\" == \"Play\" ) ))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_y_by(( ( -300 - y_position() ) / 2 ))\n    }\n    hide",
            "    when_broadcast_received(@\"StartGame\")\n    wait(1.5)\n    switch_costume_to(\"Dragon 1\")\n    set_size_to(120)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(400, -30)\n    point_in_direction(90)\n    go_to_front_back(\"front\")\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 150 - x_position() ) / 2 ))\n    }\n    set_variable_to(\"Game\", @\"Manager\")\n    broadcast(@\"Game\")",
            "    when_broadcast_received(@\"Game\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        wait(0.5)\n        switch_costume_to(\"Dragon 1\")\n        repeat(5) {\n            next_costume\n            wait(0.01)\n        }\n        broadcast(@\"Shoot\")\n        wait(0.5)\n        repeat(6) {\n            next_costume\n            wait(0.01)\n        }\n    }",
            "    when_broadcast_received(@\"FireballDefended\")\n    wait_until (touching_object(\"Fireball\"))\n    change_variable_by(5, @\"Score\")\n    play(\"Collect\")\n    broadcast(@\"ScorePointer +5\")\n    repeat(4) {\n        looks_change_effect_by(5, \"PIXELATE\")\n        looks_change_effect_by(-10, \"BRIGHTNESS\")\n    }\n    repeat(4) {\n        looks_change_effect_by(-5, \"PIXELATE\")\n        looks_change_effect_by(10, \"BRIGHTNESS\")\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n        change_x_by(( ( 200 - x_position() ) / 2 ))\n    }\n    hide"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"Default\")\n    looks_set_effect_to(0, \"BRIGHTNESS\")\n    set_size_to(100)\n    go_to_xy(0, 0)",
            "    when_broadcast_received(@\"StartGame\")\n    wait(0.5)\n    switch_costume_to(\"Default\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    looks_set_effect_to(0, \"BRIGHTNESS\")\n    go_to_xy(0, -400)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_y_by(( ( 0 - y_position() ) / 2 ))\n    }",
            "    when_broadcast_received(@\"Shake\")\n    point_in_direction(90)\n    repeat(5) {\n        change_y_by(-10)\n        wait(0.02)\n        change_y_by(10)\n        wait(0.02)\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"Default\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)\n    forever {\n        reset_timer()\n    }",
            "    when_greater_than(0.01, \"TIMER\")\n    hide_variable(@\"\u2601 Cloud-Highscore\")\n    switch_costume_to(\"Default\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, 0)\n    point_in_direction(90)\n    go_to_front_back(\"front\")\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n        change_x_by(( ( 0 - x_position() ) / 2 ))\n    }\n    go_to_xy(0, 0)"
        ],
        [
            "    when_flag_clicked\n    set_variable_to(\"0\", @\"Sine [Characters & Hoverboard]\")\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Game\")\n    switch_costume_to(\"1\")\n    set_size_to(40)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, -100)\n    point_in_direction(90)\n    go_to_front_back(\"front\")\n    if (( @\"Character\" == \"1\" )) {\n        looks_set_effect_to(65, \"COLOR\")\n    }\n    if (( @\"Character\" == \"2\" )) {\n        looks_set_effect_to(0, \"COLOR\")\n    }\n    if (( @\"Character\" == \"3\" )) {\n        looks_set_effect_to(60, \"COLOR\")\n    }\n    if (( @\"Character\" == \"4\" )) {\n        looks_set_effect_to(130, \"COLOR\")\n    }\n    if (( @\"Character\" == \"5\" )) {\n        looks_set_effect_to(210, \"COLOR\")\n    }\n    show\n    repeat(10) {\n        go_to_xy(( of(\"Characters\", \"x position\") - 5 ), ( of(\"Characters\", \"y position\") - 40 ))\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        change_y_by(( ( ( of(\"Characters\", \"y position\") - 40 ) - y_position() ) / 2 ))\n        go_to_front_back(\"front\")\n        next_costume\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    repeat(10) {\n        turn_left(10)\n        change_x_by(-10)\n        change_y_by(-5)\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide",
            "    when_broadcast_received(@\"Game\")\n    set_variable_to(\"0\", @\"Sine [Characters & Hoverboard]\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        point_in_direction(( ( mathop(\"sin\",@\"Sine [Characters & Hoverboard]\") * 5 ) + 90 ))\n        change_variable_by(10, @\"Sine [Characters & Hoverboard]\")\n    }",
            "    go_to_xy(( of(\"Characters\", \"x position\") - 5 ), ( of(\"Characters\", \"y position\") - 30 ))"
        ],
        [
            "    when_flag_clicked\n    set_variable_to(\"0\", @\"Ghost-Effect\")\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Shoot\")\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(70)\n    set_variable_to(\"0\", @\"v\")\n    set_variable_to(\"0\", @\"Ghost-Effect\")\n    looks_set_effect_to(0, \"PIXELATE\")\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(30, 10)\n    point_towards(\"Characters\")\n    go_to_front_back(\"front\")\n    show\n    repeat_until (touching_object(_edge_)) {\n        move_steps(10)\n        if (touching_object(\"Shield\")) {\n            play(\"Clang\")\n            broadcast(@\"FireballDefended\")\n            wait(0.01)\n            repeat(10) {\n                switch_costume_to(\"1\")\n                change_x_by(20)\n                change_y_by(-2)\n                turn_right(( ( 90 - direction() ) / 4 ))\n                if (touching_object(\"Dragon\")) {\n                    if (!( ( @\"v\" == \"1\" ) )) {\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                        create_clone_of(_myself_)\n                    }\n                    set_variable_to(\"1\", @\"v\")\n                    set_variable_to(\"0\", @\"i\")\n                    repeat(10) {\n                        looks_change_effect_by(10, \"GHOST\")\n                        change_y_by(mathop(\"tan\",@\"i\"))\n                        change_variable_by(-2, @\"i\")\n                    }\n                }\n            }\n            repeat(10) {\n                looks_change_effect_by(10, \"GHOST\")\n            }\n        }\n    }\n    repeat(10) {\n        go_to_front_back(\"front\")\n        move_steps(10)\n    }",
            "    when_broadcast_received(@\"Shoot\")\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n    }",
            "    start_as_clone\n    hide\n    switch_costume_to(\"Dot\")\n    set_size_to(random(50, 100))\n    looks_set_effect_to(0, \"GHOST\")\n    looks_set_effect_to(random(-100, 20), \"BRIGHTNESS\")\n    go_to_front_back(\"front\")\n    set_y(random(-70, 50))\n    point_in_direction(random(0, 360))\n    change_x_by(30)\n    set_variable_to(\"0\", @\"i\")\n    set_variable_to(random(-5, 5), @\"v\")\n    show\n    repeat_until (touching_object(_edge_)) {\n        looks_change_effect_by(5, \"GHOST\")\n        turn_right(@\"v\")\n        change_x_by(@\"v\")\n        change_y_by(@\"i\")\n        change_variable_by(-2, @\"i\")\n    }\n    delete_this_clone",
            "    when_broadcast_received(@\"Shoot\")\n    wait_until (touching_object(_edge_))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }"
        ],
        [
            "    when_flag_clicked\n    set_variable_to(\"0\", @\"ShieldCooldown\")\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Game\")\n    set_variable_to(\"0\", @\"TouchTrigger\")\n    set_variable_to(\"0\", @\"ShieldCooldown\")\n    set_variable_to(\"0\", @\"Manager 2\")\n    set_variable_to(\"0\", @\"Shield\")\n    hide\n    set_variable_to(\"1\", @\"Cooldown\")\n    set_variable_to(\"1\", @\"ShieldCooldown\")\n    switch_costume_to(\"1\")\n    set_size_to(50)\n    looks_set_effect_to(100, \"GHOST\")\n    if (( @\"Character\" == \"1\" )) {\n        looks_set_effect_to(65, \"COLOR\")\n    }\n    if (( @\"Character\" == \"2\" )) {\n        looks_set_effect_to(0, \"COLOR\")\n    }\n    if (( @\"Character\" == \"3\" )) {\n        looks_set_effect_to(60, \"COLOR\")\n    }\n    if (( @\"Character\" == \"4\" )) {\n        looks_set_effect_to(130, \"COLOR\")\n    }\n    if (( @\"Character\" == \"5\" )) {\n        looks_set_effect_to(210, \"COLOR\")\n    }\n    go_to_xy(0, 0)\n    point_in_direction(90)\n    set_variable_to(\"0\", @\"Ctrigger\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        if (key_pressed(\"left arrow\")) {\n            if (!( ( @\"Cooldown\" == \"1\" ) )) {\n                set_variable_to(\"1\", @\"Cooldown\")\n                set_variable_to(\"1\", @\"ShieldCooldown\")\n                set_variable_to(\"0\", @\"TouchTrigger\")\n                show\n                go_to(\"Characters\")\n                set_variable_to(( of(\"Characters\", \"x position\") + 40 ), @\"SlidePos\")\n                play(\"On\")\n                repeat(10) {\n                    change_size_by(2)\n                    looks_change_effect_by(-10, \"GHOST\")\n                    change_x_by(( ( @\"SlidePos\" - x_position() ) / 2 ))\n                    if (touching_object(\"Fireball\")) {\n                        set_variable_to(\"1\", @\"TouchTrigger\")\n                        set_variable_to(( of(\"Characters\", \"x position\") + 10 ), @\"SlidePos\")\n                        play(\"Off\")\n                        repeat(10) {\n                            change_size_by(-2)\n                            looks_change_effect_by(10, \"GHOST\")\n                            change_x_by(( ( @\"SlidePos\" - x_position() ) / 2 ))\n                        }\n                        hide\n                    }\n                }\n                if (!( ( @\"TouchTrigger\" == \"1\" ) )) {\n                    set_variable_to(\"1\", @\"Shield\")\n                    wait_until (( !( key_pressed(\"left arrow\") ) || touching_object(\"Fireball\") ))\n                    set_variable_to(\"0\", @\"Shield\")\n                    set_variable_to(( of(\"Characters\", \"x position\") + 10 ), @\"SlidePos\")\n                    play(\"Off\")\n                    repeat(10) {\n                        change_size_by(-2)\n                        looks_change_effect_by(10, \"GHOST\")\n                        change_x_by(( ( @\"SlidePos\" - x_position() ) / 2 ))\n                    }\n                    hide\n                }\n            }\n            else {\n                play(\"Crunch\")\n                wait_until (!( key_pressed(\"left arrow\") ))\n            }\n        }\n    }",
            "    when_broadcast_received(@\"Game\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        wait_until (( @\"Cooldown\" == \"1\" ))\n        repeat(5) {\n            change_variable_by(1, @\"Ctrigger\")\n            wait(1)\n            if (( @\"Ctrigger\" == \"3\" )) {\n                set_variable_to(\"0\", @\"Ctrigger\")\n            }\n            if (!( ( @\"Manager\" == \"Game\" ) )) {\n                stop(\"this script\")\n            }\n        }\n        set_variable_to(\"0\", @\"Cooldown\")\n        set_variable_to(\"0\", @\"ShieldCooldown\")\n    }",
            "    when_broadcast_received(@\"Game\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        set_y(of(\"Characters\", \"y position\"))\n    }"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"Controls\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Play\")\n    switch_costume_to(\"Controls\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, -130)\n    point_in_direction(90)\n    wait(0.2)\n    show\n    repeat(10) {\n        change_x_by(( ( 0 - x_position() ) / 2 ))\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    wait_until (!( ( @\"Manager\" == \"Play\" ) ))\n    repeat(10) {\n        change_x_by(( ( -400 - x_position() ) / 2 ))\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide"
        ],
        [
            "    when_flag_clicked\n    hide",
            "    start_as_clone\n    go_to_front_back(\"front\")\n    looks_set_effect_to(0, \"GHOST\")\n    set_size_to(150)\n    show\n    wait_until (( @\"Manager 2\" == \"Replay\" ))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    delete_this_clone",
            "    procedures_definition(\"print_ %s\")\n    broadcast(@\"delete\")\n    set_variable_to(\"1\", @\"element\")\n    go_to_xy(-220, -162.5)\n    repeat(length(@\"Score\")) {\n        switch_costume_to(letter_of(@\"element\", @\"Score\"))\n        create_clone_of(_myself_)\n        change_x_by(15)\n        change_variable_by(1, @\"element\")\n    }",
            "    when_broadcast_received(@\"delete\")\n    delete_this_clone",
            "    when_broadcast_received(@\"Game\")\n    set_variable_to(\"0\", @\"Score\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        print_(1)\n    }",
            "    when_broadcast_received(@\"StartGame\")\n    wait(1)\n    switch_costume_to(\"Kost\u00fcm10\")\n    go_to_front_back(\"front\")\n    looks_set_effect_to(100, \"GHOST\")\n    set_size_to(150)\n    go_to_xy(-220, -162.5)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    wait_until (( @\"Manager\" == \"Game\" ))\n    hide"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"+5\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"ScorePointer +5\")\n    switch_costume_to(\"+5\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(( of(\"Dragon\", \"x position\") - 50 ), ( of(\"Dragon\", \"y position\") + 100 ))\n    point_in_direction(90)\n    show\n    repeat(10) {\n        change_y_by(1)\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    repeat(20) {\n        change_y_by(1)\n        looks_change_effect_by(5, \"GHOST\")\n    }\n    hide",
            "    when_broadcast_received(@\"ScorePointer +1\")\n    create_clone_of(_myself_)",
            "    start_as_clone\n    switch_costume_to(\"+1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_front_back(\"front\")\n    go_to_xy(( of(\"Score\", \"x position\") + 10 ), of(\"Score\", \"y position\"))\n    point_in_direction(90)\n    show\n    repeat(10) {\n        change_x_by(1)\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    repeat(20) {\n        change_x_by(1)\n        looks_change_effect_by(5, \"GHOST\")\n    }\n    hide\n    delete_this_clone"
        ],
        [
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"1\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"Game\")\n    switch_costume_to(\"1\")\n    set_size_to(50)\n    looks_set_effect_to(100, \"GHOST\")\n    point_in_direction(90)\n    set_variable_to(\"0\", @\"IFEC\")\n    set_variable_to(\"0\", @\"Position\")\n    repeat_until (!( ( @\"Manager\" == \"Game\" ) )) {\n        wait(random(1, 3))\n        set_variable_to(\"0\", @\"IFEC\")\n        set_variable_to(random(1, 4), @\"Position\")\n        if (( @\"Position\" == \"1\" )) {\n            go_to_xy(-150, -100)\n        }\n        else {\n            if (( @\"Position\" == \"2\" )) {\n                go_to_xy(-150, -20)\n            }\n            else {\n                if (( @\"Position\" == \"3\" )) {\n                    go_to_xy(-150, 60)\n                }\n                else {\n                    go_to_xy(-150, 140)\n                }\n            }\n        }\n        switch_costume_to(\"1\")\n        set_size_to(50)\n        looks_set_effect_to(100, \"GHOST\")\n        point_in_direction(90)\n        show\n        if (touching_object(\"Characters\")) {\n            set_variable_to(\"1\", @\"IFEC\")\n            repeat(10) {\n                next_costume\n                looks_change_effect_by(10, \"GHOST\")\n            }\n            hide\n        }\n        if (!( ( @\"IFEC\" == \"1\" ) )) {\n            repeat(5) {\n                next_costume\n                looks_change_effect_by(-10, \"GHOST\")\n            }\n            repeat(5) {\n                next_costume\n                looks_change_effect_by(-10, \"GHOST\")\n                if (touching_object(\"Characters\")) {\n                    broadcast(@\"ScorePointer +1\")\n                    play(\"Collect\")\n                    set_variable_to(\"1\", @\"IFEC\")\n                    change_variable_by(1, @\"Score\")\n                    repeat(10) {\n                        looks_change_effect_by(10, \"GHOST\")\n                    }\n                    hide\n                }\n            }\n            if (!( ( @\"IFEC\" == \"1\" ) )) {\n                repeat_until (touching_object(\"Characters\")) {\n                    next_costume\n                    if (!( ( @\"Manager\" == \"Game\" ) )) {\n                        stop(\"this script\")\n                    }\n                }\n                broadcast(@\"ScorePointer +1\")\n                play(\"Collect\")\n                change_variable_by(1, @\"Score\")\n                repeat(10) {\n                    looks_change_effect_by(10, \"GHOST\")\n                }\n                hide\n            }\n        }\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    stop(\"other scripts in sprite\")\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide"
        ],
        [
            "    when_flag_clicked\n    hide_variable(@\"\u2601 Cloud-Highscore\")\n    hide\n    switch_costume_to(\"Default\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(0, 0)\n    point_in_direction(90)",
            "    when_broadcast_received(@\"GameOver\")\n    wait(1.5)\n    switch_costume_to(\"Default\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(190, -175)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    wait_until (( @\"Manager 2\" == \"Replay\" ))\n    hide_variable(@\"\u2601 Cloud-Highscore\")\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide",
            "    when_broadcast_received(@\"GameOver\")\n    repeat_until (!( ( @\"Manager\" == \"GameOver\" ) )) {\n        if (touching_object(_mouse_)) {\n            looks_set_effect_to(15, \"BRIGHTNESS\")\n            if (mouse_down()) {\n                if (( y_position() == \"-175\" )) {\n                    repeat(5) {\n                        change_y_by(( ( -135 - y_position() ) / 2 ))\n                    }\n                    show_variable(@\"\u2601 Cloud-Highscore\")\n                    repeat(5) {\n                        change_y_by(( ( -135 - y_position() ) / 2 ))\n                    }\n                }\n                else {\n                    hide_variable(@\"\u2601 Cloud-Highscore\")\n                    repeat(10) {\n                        change_y_by(( ( -175 - y_position() ) / 2 ))\n                    }\n                }\n            }\n        }\n        else {\n            looks_set_effect_to(0, \"BRIGHTNESS\")\n        }\n    }",
            "    when_broadcast_received(@\"GameOver\")\n    if (( @\"Score\" > @\"\u2601 Cloud-Highscore\" )) {\n        create_clone_of(_myself_)\n        set_variable_to(\"0\", @\"\u2601 Cloud-Highscore\")\n        repeat(mathop(\"abs\",@\"Score\")) {\n            change_variable_by(1, @\"\u2601 Cloud-Highscore\")\n        }\n    }",
            "    start_as_clone\n    wait(1)\n    switch_costume_to(\"Highscore broken!\")\n    set_size_to(100)\n    looks_set_effect_to(100, \"GHOST\")\n    go_to_xy(-400, -80)\n    point_in_direction(90)\n    show\n    repeat(10) {\n        change_x_by(( ( -180 - x_position() ) / 2 ))\n        looks_change_effect_by(-10, \"GHOST\")\n    }\n    wait_until (( @\"Manager 2\" == \"Replay\" ))\n    repeat(10) {\n        looks_change_effect_by(10, \"GHOST\")\n    }\n    hide\n    delete_this_clone",
            "    when_broadcast_received(@\"GameOver\")\n    repeat_until (( @\"Manager\" == \"StartGame\" )) {\n        if (!( ( @\"Manager\" == \"GameOver\" ) )) {\n            repeat(10) {\n                looks_change_effect_by(10, \"GHOST\")\n                if (!( ( y_position() == \"-175\" ) )) {\n\n                }\n            }\n            hide\n        }\n    }"
        ],
        [
            "    when_broadcast_received(@\"Intro\")\n    set_variable_to(\"0\", @\"MicroBounce\")\n    set_variable_to(\"0\", @\"MicroClone\")\n    set_variable_to(\"0\", @\"Clone\")\n    hide\n    switch_costume_to(\"Logo\")\n    set_size_to(50)\n    looks_set_effect_to(100, \"GHOST\")\n    point_in_direction(90)\n    go_to_xy(0, 0)\n    set_variable_to(\"Load\", @\"Clone\")\n    create_clone_of(_myself_)\n    set_variable_to(\"0\", @\"Clone\")\n    repeat(2) {\n        change_variable_by(1, @\"Clone\")\n        create_clone_of(_myself_)\n    }\n    play(\"Intro\")",
            "    when_flag_clicked\n    hide\n    switch_costume_to(\"Logo\")\n    set_size_to(50)\n    looks_set_effect_to(100, \"GHOST\")\n    point_in_direction(90)\n    go_to_xy(0, 0)",
            "    start_as_clone\n    if (( @\"Clone\" == \"1\" )) {\n        switch_costume_to(\"Form\")\n        set_size_to(100)\n        looks_set_effect_to(100, \"GHOST\")\n        point_in_direction(90)\n        go_to_xy(0, 0)\n        go_to_front_back(\"front\")\n        show\n        repeat(10) {\n            looks_change_effect_by(-10, \"GHOST\")\n        }\n        wait(1.5)\n        repeat(10) {\n            looks_change_effect_by(10, \"GHOST\")\n        }\n        delete_this_clone\n    }",
            "    start_as_clone\n    if (( @\"Clone\" == \"2\" )) {\n        switch_costume_to(\"Colors\")\n        set_size_to(100)\n        looks_set_effect_to(100, \"GHOST\")\n        point_in_direction(90)\n        go_to_xy(-400, 0)\n        go_to_front_back(\"back\")\n        wait(0.1)\n        show\n        repeat(20) {\n            go_to_front_back(\"back\")\n            looks_change_effect_by(-5, \"GHOST\")\n            change_x_by(( ( 0 - x_position() ) / 4 ))\n        }\n        set_x(0)\n        wait(0.5)\n        repeat(20) {\n            looks_change_effect_by(5, \"GHOST\")\n        }\n        switch_costume_to(\"Logo\")\n        set_size_to(100)\n        looks_set_effect_to(100, \"GHOST\")\n        point_in_direction(0)\n        go_to_xy(0, 0)\n        set_variable_to(\"0\", @\"MicroBounce\")\n        show\n        repeat(30) {\n            looks_change_effect_by(-10, \"GHOST\")\n            change_y_by(( ( 0 - y_position() ) / 2 ))\n            turn_right(( ( 90 - direction() ) / 4 ))\n            set_variable_to(( ( @\"Bounce\" * 0.7 ) + ( ( 65 - size() ) / 9 ) ), @\"Bounce\")\n            change_size_by(@\"Bounce\")\n        }\n        point_in_direction(90)\n        wait(0.25)\n        set_variable_to(\"0\", @\"i\")\n        repeat(20) {\n            change_x_by(mathop(\"tan\",@\"i\"))\n            change_variable_by(5, @\"i\")\n            looks_change_effect_by(5, \"GHOST\")\n        }\n        change_variable_by(1, @\"Clone\")\n        create_clone_of(_myself_)\n        delete_this_clone\n    }",
            "    start_as_clone\n    if (( @\"Clone\" == \"3\" )) {\n        hide\n        switch_costume_to(\"Username\")\n        set_size_to(0)\n        looks_set_effect_to(100, \"GHOST\")\n        looks_set_effect_to(0, \"BRIGHTNESS\")\n        point_in_direction(0)\n        go_to_xy(0, 0)\n        show\n        repeat(20) {\n            looks_change_effect_by(-5, \"GHOST\")\n            change_size_by(( ( 70 - size() ) / 4 ))\n            turn_right(( ( 90 - direction() ) / 4 ))\n        }\n        wait(1)\n        set_variable_to(\"0\", @\"i\")\n        repeat(20) {\n            looks_change_effect_by(5, \"GHOST\")\n            looks_change_effect_by(0.5, \"BRIGHTNESS\")\n            change_y_by(( mathop(\"tan\",@\"i\") / 2 ))\n            change_variable_by(-5, @\"i\")\n        }\n        wait(0.5)\n        set_variable_to(\"true\", @\"LogoShown\")\n        delete_this_clone\n    }",
            "    start_as_clone\n    if (( @\"Clone\" == \"Load\" )) {\n        switch_costume_to(\"Load\")\n        set_size_to(100)\n        looks_set_effect_to(0, \"GHOST\")\n        point_in_direction(90)\n        go_to_xy(-500, 0)\n        show\n        repeat(180) {\n            go_to_front_back(\"front\")\n            change_x_by(2.4)\n        }\n        repeat(20) {\n            looks_change_effect_by(5, \"GHOST\")\n            change_x_by(2.4)\n        }\n        delete_this_clone\n    }"
        ]
    ],
    "no_hats": [
        "    set_variable_to(\"false\", @\"LogoShown\")",
        "    go_to_xy(( of(\"Characters\", \"x position\") - 5 ), ( of(\"Characters\", \"y position\") - 30 ))"
    ],
    "default_names": {
        "sprite": [],
        "costume": []
    }
}