Platformer! V4.2

Instructions: First game since a long time,\nPlatformer!\nenjoy!\n______________________\nControls:\nUse the arrow keys left/A, right/D and up/W.\nDo not touch blue spines\n\n

@Stage\n\nwhen flag clicked\nset [levens v] to [10]\nhide variable [levens v]\nforever\n    if <(Levens) = [0]> then\n        broadcast (Game_Over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [menu v]\nforever\n    if <(Muziek) = [4]> then\n        set [muziek v] to (pick random (1) to (3))\n        stop all sounds\n        if <(Muziek) = [1]> then\n            play sound [Confetti - Ghost v] until done\n        else\n            if <(Muziek) = [2]> then\n                play sound [OMFG - Hello.mp3 v] until done\n            else\n                if <(Muziek) = [3]> then\n                    play sound [TheFatRat - Time Lapse v] until done\n                else\n                    stop all sounds\n                end\n            end\n        end\n    end\n    set [color v] effect to (0)\nend\n\nwhen flag clicked\nset [muziek v] to [4]\n\n@KEVIN\n\nwhen I receive [game_over v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [punten v]\nchange [points v] by (1)\nstart sound [Coin v]\nwait (0.5) seconds\n\nwhen I receive [portaal v]\ngo to (portaal2 v)\nchange x by (80)\n\nwhen I receive [portaal_terug v]\ngo to (portaal v)\nchange x by (-80)\n\nwhen I receive [start! v]\nshow\ngo to x: (-200) y: (-121)\nwait (0.001) seconds\nset [points v] to [0]\nset [linkerzijkant v] to [0]\nset [start_spatie v] to [0]\nset [yv v] to [0]\nset [xv v] to [0]\nrepeat until <touching color (#000000)?>\n    change y by (-3)\nend\nset [start_spatie v] to [1]\ngo to x: (x position) y: ((y position) + (2))\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <not <key (right arrow v) pressed?>>> then\n        change [xv v] by (-1)\n    end\n    if <(LinkerZijkant) = [1]> then\n        set [xv v] to [0]\n        change [xv v] by (0.25)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <not <key (left arrow v) pressed?>>> then\n        change [xv v] by (1)\n    end\n    if <(RechterZijkant) = [1]> then\n        set [xv v] to [0]\n        change [xv v] by (-0.25)\n    end\n    if <touching color (#000000)?> then\n        repeat until <not <touching color (#000000)?>>\n            change y by (1)\n            if <touching color (#000000)?> then\n                change x by ((Xv) * (-1))\n            end\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(Start_Spatie) = [1]>> then\n            start sound [Jump v]\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching color (#0056ff)?> or <touching (falling_obstacle v)?>> then\n        change [levens v] by (-1)\n        set [start_spatie v] to [0]\n        start sound [Crunch v]\n        go to x: (-200) y: (-121)\n        repeat until <touching color (#000000)?>\n            change y by (-3)\n        end\n        go to x: (x position) y: ((y position) + (2))\n        set [start_spatie v] to [1]\n        set [xv v] to [0]\n    end\n    if <(Bovenkant_kevin) = [1]> then\n        repeat until <not <touching color (#000000)?>>\n            change y by (-1)\n        end\n    end\nend\n\nwhen I receive [menu v]\nchange [points_totaal v] by (Points)\nif <(Points_Totaal) > (☁ Global_Points)> then\n    set [☁ global_points v] to (Points_Totaal)\nend\nstop [other scripts in sprite v]\n\nwhen I receive [volgende_skin v]\nif <[unlocked_skins v] contains (Skin_used)?> then\n    switch costume to (Skin_used)\nelse\n    switch costume to (nope v)\nend\n\nwhen flag clicked\nswitch costume to (kevin v)\n\n@punten\n\nwhen flag clicked\nset size to (50) %\n\nwhen I receive [start! v]\nforever\n    go to x: (pick random (-154) to (154)) y: (pick random (120) to (-150))\n    repeat until <<<not <touching (portaal v)?>> and <not <touching (portaal2 v)?>>> and <not <touching (obstakels v)?>>>\n        go to x: (pick random (-154) to (154)) y: (pick random (120) to (-150))\n    end\n    wait until <touching (kevin v)?>\n    broadcast (punten v)\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwait (1.1) seconds\ngo to [front v] layer\nshow\nhide variable [points_totaal v]\n\n@Portaal\n\nwhen flag clicked\nset size to (30) %\n\nwhen I receive [start! v]\nforever\n    if <(levels) = [1]> then\n        show\n        go to x: (212) y: (-135)\n    end\n    if <(levels) = [2]> then\n        go to x: (212) y: (-135)\n    end\n    if <(levels) = [3]> then\n        hide\n    end\n    if <touching (kevin v)?> then\n        start sound [Teleport2 v]\n        broadcast (Portaal v)\n        wait (2) seconds\n    end\nend\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\n\nwhen I receive [start! v]\nforever\n    next costume\nend\n\nwhen I receive [volgend_level v]\nif <(levels) = [4]> then\n    set [levels v] to [1]\nend\n\n@Portaal2\n\nwhen flag clicked\nset size to (30) %\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\n\nwhen I receive [start! v]\nforever\n    if <(levels) = [1]> then\n        show\n        go to x: (-207) y: (126)\n    end\n    if <(levels) = [2]> then\n        go to x: (-207) y: (126)\n    end\n    if <(levels) = [3]> then\n        hide\n    end\n    if <touching (kevin v)?> then\n        start sound [Teleport2 v]\n        broadcast (Portaal_terug v)\n        wait (2) seconds\n    end\nend\n\nwhen I receive [start! v]\nforever\n    next costume\nend\n\n@obstakels\n\nwhen flag clicked\nset [levels v] to [1]\nswitch costume to (level_1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [volgend_level v]\nnext costume\nif <[unlocked_levels v] contains (Level_used)?> then\n    set [levels v] to (costume [number v])\n    switch costume to (Level_used)\nelse\n    switch costume to (nope v)\nend\n\n@BovenKevin\n\nwhen I receive [start! v]\nhide\nforever\n    go to (kevin v)\n    change y by (5)\n    if <touching color (#000000)?> then\n        set [bovenkant_kevin v] to [1]\n    else\n        set [bovenkant_kevin v] to [0]\n    end\nend\n\n@LinkerKevin\n\nwhen flag clicked\nhide\nforever\n    go to (kevin v)\n    change x by (-9)\n    if <touching color (#000000)?> then\n        set [linkerzijkant v] to [1]\n    else\n        set [linkerzijkant v] to [0]\n    end\nend\n\n@RechterKevin\n\nwhen flag clicked\nhide\nforever\n    go to (kevin v)\n    change x by (9)\n    if <touching color (#000000)?> then\n        set [rechterzijkant v] to [1]\n    else\n        set [rechterzijkant v] to [0]\n    end\nend\n\n@Menu\n\nwhen flag clicked\nset [points_totaal v] to [0]\nset [points v] to [0]\nhide\ngo to x: (0) y: (0)\nbroadcast (menu v)\n\nwhen I receive [menu v]\ngo to [front v] layer\ngo [backward v] (1) layers\ngo to x: (-480) y: (0)\nshow\nset [snelheid_menu v] to [30]\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (Snelheid_menu)\n    change [snelheid_menu v] by (-1)\nend\nset [snelheid_menu v] to [0]\ngo to x: (0) y: (0)\n\nwhen I receive [start! v]\nset [snelheid_menu v] to [30]\nrepeat until <(x position) = [364]>\n    change x by (Snelheid_menu)\n    change [snelheid_menu v] by (-1)\nend\nset [snelheid_menu v] to [0]\nhide\n\n@Menu_knop\n\nwhen flag clicked\ngo to x: (185) y: (160)\n\nwhen I receive [start! v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            broadcast (menu v)\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Play\n\nwhen flag clicked\nhide\nset size to (100) %\n\nwhen I receive [menu v]\nwait (0.01) seconds\ngo to [front v] layer\ngo to x: (-480) y: (-106)\nshow\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (Snelheid_menu)\nend\ngo to x: (0) y: (-106)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            broadcast (Start! v)\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [start! v]\nrepeat until <(x position) = [277]>\n    change x by (Snelheid_menu)\nend\nhide\n\nwhen I receive [skins v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [back v]\ngo to [front v] layer\nshow\ngo to x: (0) y: (-106)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            broadcast (Start! v)\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [levels v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Skins\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [menu v]\ngo to [front v] layer\ngo to x: (-480) y: (20)\nshow\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (Snelheid_menu)\nend\ngo to x: (0) y: (20)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            set [menu_skins_levels v] to [1]\n            broadcast (Skins v)\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [start! v]\nrepeat until <(x position) = [254]>\n    change x by (Snelheid_menu)\nend\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [skins v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [back v]\nshow\ngo to x: (0) y: (20)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            set [menu_skins_levels v] to [1]\n            broadcast (Skins v)\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [levels v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\n@Menu_skins\n\nwhen flag clicked\nhide\n\nwhen I receive [skins v]\ngo to [front v] layer\ngo [backward v] (1) layers\ngo to x: (-480) y: (0)\nshow\nset [snelheid_menu v] to [30]\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (Snelheid_menu)\n    change [snelheid_menu v] by (-1)\nend\nset [snelheid_menu v] to [0]\ngo to x: (0) y: (0)\n\nwhen I receive [back v]\nif <(Menu_skins_levels) = [1]> then\n    set [snelheid_menu v] to [35]\n    repeat until <<(x position) = [254]> or <(x position) > [254]>>\n        go to [front v] layer\n        change x by (Snelheid_menu)\n        change [snelheid_menu v] by (-1)\n    end\n    set [snelheid_menu v] to [0]\n    hide\n    stop [other scripts in sprite v]\n    set [menu_skins_levels v] to [0]\nend\n\n@Next\n\nwhen flag clicked\nhide\n\nwhen I receive [skins v]\nforever\n    if <<(Menu_skins_levels) = [1]> or <(Menu_skins_levels) = [2]>> then\n        go to x: (0) y: (21)\n        wait (1.1) seconds\n        go to [front v] layer\n        show\n        forever\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                if <mouse down?> then\n                    start sound [Button clicked v]\n                    if <(Menu_skins_levels) = [1]> then\n                        broadcast (Volgende_Skin v)\n                        wait (0.5) seconds\n                    else\n                        broadcast (Levels v)\n                        wait (0.5) seconds\n                    end\n                end\n            else\n                set size to (100) %\n            end\n        end\n    end\nend\n\nwhen I receive [back v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levels v]\nforever\n    if <<(Menu_skins_levels) = [1]> or <(Menu_skins_levels) = [2]>> then\n        go to x: (50) y: (-10)\n        wait (1.1) seconds\n        go to [front v] layer\n        show\n        forever\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                if <mouse down?> then\n                    start sound [Button clicked v]\n                    if <(Menu_skins_levels) = [1]> then\n                        broadcast (Volgende_Skin v)\n                        wait (0.5) seconds\n                    else\n                        broadcast (Volgend_level v)\n                        wait (0.5) seconds\n                    end\n                end\n            else\n                set size to (100) %\n            end\n        end\n    end\nend\n\n@Back\n\nwhen flag clicked\nset [menu_skins_levels v] to [0]\nhide\n\nwhen I receive [back v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [skins v]\nforever\n    if <<(Menu_skins_levels) = [1]> or <(Menu_skins_levels) = [2]>> then\n        wait (0.001) seconds\n        go to [front v] layer\n        go to x: (-480) y: (-106)\n        show\n        repeat until <<(x position) = [-100]> or <(x position) > [-100]>>\n            change x by (Snelheid_menu)\n        end\n        go to x: (-100) y: (-106)\n        forever\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                if <mouse down?> then\n                    start sound [Button clicked v]\n                    if <(Nope_Skins) = [0]> then\n                        broadcast (Back v)\n                        wait (0.5) seconds\n                        show variable [points_totaal v]\n                        go to [back v] layer\n                    else\n                        say [First change your skin to an unlocked skin.] for (2) seconds\n                    end\n                end\n            else\n                set size to (100) %\n            end\n        end\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <<(Menu_skins_levels) = [1]> or <(Menu_skins_levels) = [2]>> then\n        wait (0.001) seconds\n        go to [front v] layer\n        go to x: (-480) y: (-106)\n        show\n        repeat until <<(x position) = [-100]> or <(x position) > [-100]>>\n            change x by (Snelheid_menu)\n        end\n        go to x: (-100) y: (-106)\n        forever\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                if <mouse down?> then\n                    start sound [Button clicked v]\n                    if <(Nope_Levels) = [0]> then\n                        broadcast (Back v)\n                        wait (0.5) seconds\n                        show variable [points_totaal v]\n                        go to [back v] layer\n                    else\n                        say [First change your level to an unlocked level.] for (2) seconds\n                    end\n                end\n            else\n                set size to (100) %\n            end\n        end\n    end\nend\n\n@Menu_Levels\n\nwhen flag clicked\nhide\n\nwhen I receive [levels v]\ngo to [front v] layer\ngo [backward v] (1) layers\ngo to x: (-480) y: (0)\nshow\nset [snelheid_menu v] to [30]\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (Snelheid_menu)\n    change [snelheid_menu v] by (-1)\nend\nset [snelheid_menu v] to [0]\ngo to x: (0) y: (0)\n\nwhen I receive [back v]\nif <(Menu_skins_levels) = [2]> then\n    set [snelheid_menu v] to [35]\n    repeat until <<(x position) = [254]> or <(x position) > [254]>>\n        go to [front v] layer\n        change x by (Snelheid_menu)\n        change [snelheid_menu v] by (-1)\n    end\n    set [snelheid_menu v] to [0]\n    hide\n    set [menu_skins_levels v] to [0]\nend\n\n@Levels\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [menu v]\nwait (0.002) seconds\ngo to [front v] layer\ngo to x: (-480) y: (-20)\nshow\nrepeat until <<(x position) = [0]> or <(x position) > [0]>>\n    change x by (Snelheid_menu)\nend\ngo to x: (0) y: (-20)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            set [menu_skins_levels v] to [2]\n            broadcast (Levels v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [start! v]\nrepeat until <(x position) = [254]>\n    change x by (Snelheid_menu)\nend\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levels v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [skins v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [back v]\ngo to [front v] layer\nshow\ngo to x: (0) y: (-20)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            set [menu_skins_levels v] to [2]\n            broadcast (Levels v)\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Skins_sprite\n\nwhen flag clicked\nswitch costume to (kevin v)\nset size to (180) %\nhide\ngo to x: (-100) y: (20)\ndelete all of [unlocked_skins v]\nadd [KEVIN] to [unlocked_skins v]\n\nwhen I receive [skins v]\nwait (1) seconds\ngo to [front v] layer\nshow\n\nwhen I receive [volgende_skin v]\nnext costume\nset [skin_used v] to (costume [name v])\nif <not <[unlocked_skins v] contains (Skin_used)?>> then\n    switch costume to (nope v)\n    set [nope_skins v] to [1]\nelse\n    set [nope_skins v] to [0]\nend\n\nwhen I receive [back v]\nif <(Menu_skins_levels) = [1]> then\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [menu v]\nwait (1) seconds\nif <<(Points_Totaal) > [4]> and <not <[unlocked_skins v] contains [Oranje]?>>> then\n    add [Oranje] to [unlocked_skins v]\nend\nif <<(Points_Totaal) > [9]> and <not <[unlocked_skins v] contains [Rood]?>>> then\n    add [Rood] to [unlocked_skins v]\nend\nif <<(Points_Totaal) > [14]> and <not <[unlocked_skins v] contains [Ventje]?>>> then\n    add [Ventje] to [unlocked_skins v]\nend\nif <<(Points_Totaal) > [19]> and <not <[unlocked_skins v] contains [Ventje_Oranje]?>>> then\n    add [Ventje_Oranje] to [unlocked_skins v]\nend\nif <<(Points_Totaal) > [24]> and <not <[unlocked_skins v] contains [Ventje_Rood]?>>> then\n    add [Ventje_Rood] to [unlocked_skins v]\nend\n\n@Obstakels_sprite\n\nwhen I receive [menu v]\nwait (1) seconds\nif <<(Points_Totaal) > [9]> and <not <[unlocked_levels v] contains [Level_2]?>>> then\n    add [Level_2] to [unlocked_levels v]\nend\nif <<(Points_Totaal) > [19]> and <not <[unlocked_levels v] contains [Level_3]?>>> then\n    add [Level_3] to [unlocked_levels v]\nend\n\nwhen flag clicked\nswitch costume to (level_1 v)\nset size to (30) %\ngo to x: (0) y: (0)\nhide\ndelete all of [unlocked_levels v]\nadd [Level_1] to [unlocked_levels v]\n\nwhen I receive [levels v]\ngo to x: (-70) y: (-10)\nwait (1) seconds\ngo to [front v] layer\nshow\n\nwhen I receive [volgend_level v]\nnext costume\nset [level_used v] to (costume [name v])\nif <not <[unlocked_levels v] contains (Level_used)?>> then\n    switch costume to (nope v)\n    set [nope_levels v] to [1]\nelse\n    set [nope_levels v] to [0]\nend\n\nwhen I receive [back v]\nif <(Menu_skins_levels) = [2]> then\n    hide\n    stop [other scripts in sprite v]\nend\n\n@Muziek_knop\n\nwhen I receive [menu v]\nwait (1) seconds\ngo to [front v] layer\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            start sound [Button clicked v]\n            next costume\n            if <(Muziek) = [0]> then\n                set [muziek v] to [4]\n            else\n                set [muziek v] to [0]\n                stop all sounds\n            end\n            wait (0.5) seconds\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\ngo to x: (-100) y: (-105)\nswitch costume to (sound-icon2 v)\n\nwhen I receive [start! v]\nhide\ngo to [back v] layer\nstop [other scripts in sprite v]\n\nwhen I receive [levels v]\nhide\ngo to [back v] layer\nstop [other scripts in sprite v]\n\nwhen I receive [skins v]\nhide\ngo to [back v] layer\nstop [other scripts in sprite v]\n\nwhen I receive [back v]\nwait (0.1) seconds\ngo to [front v] layer\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            next costume\n            if <(Muziek) = [0]> then\n                set [muziek v] to [4]\n            else\n                set [muziek v] to [0]\n                stop all sounds\n            end\n            wait (0.5) seconds\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Falling_obstacle\n\nwhen I receive [start! v]\nforever\n    go to x: (-29) y: (161)\n    switch costume to (blauw v)\n    repeat (5)\n        wait (0.25) seconds\n        switch costume to (rood v)\n        wait (0.25) seconds\n        switch costume to (blauw v)\n        start sound [Tennis Hit v]\n    end\n    start sound [Wobble v]\n    wait (0.1) seconds\n    switch costume to (blauw2 v)\n    wait (0.1) seconds\n    switch costume to (blauw3 v)\n    wait (0.1) seconds\n    switch costume to (blauw4 v)\n    wait (0.1) seconds\n    switch costume to (blauw5 v)\n    wait (0.1) seconds\n    switch costume to (blauw6 v)\n    repeat until <<touching color (#000000)?> or <touching (kevin v)?>>\n        change y by (-3.5)\n    end\nend\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\n\n@Mobile_Boven\n\nwhen flag clicked\ngo to x: (190) y: (110)\nset size to (50) %\n\nwhen I receive [start! v]\nif <(Mobile) = [1]> then\n    show\n    forever\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(Start_Spatie) = [1]>> then\n            start sound [Jump v]\n            set [yv v] to [12]\n            wait (0.75) seconds\n        end\n    end\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Mobile_Rechts\n\nwhen flag clicked\ngo to x: (207) y: (90)\nset size to (50) %\n\nwhen I receive [start! v]\nif <(Mobile) = [1]> then\n    show\n    forever\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            change [xv v] by (1)\n        end\n    end\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Mobile_Links\n\nwhen flag clicked\nset size to (50) %\ngo to x: (175) y: (90)\n\nwhen I receive [start! v]\nif <(Mobile) = [1]> then\n    show\n    forever\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            change [xv v] by (-1)\n        end\n    end\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Mobile_button\n\nwhen I receive [menu v]\nif <(Mobile) = [0]> then\n    wait (1) seconds\n    go to [front v] layer\n    show\n    forever\n        if <touching (mouse-pointer v)?> then\n            set size to (120) %\n            if <mouse down?> then\n                start sound [Button clicked v]\n                set [mobile v] to [1]\n                hide\n                stop [this script v]\n            end\n        else\n            set size to (100) %\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (94) y: (-106)\nset [mobile v] to [0]\nhide\n\nwhen I receive [start! v]\nhide\nstop [other scripts in sprite v]\n\n@Heart\n\nwhen flag clicked\nset [levens v] to [10]\nhide variable [levens v]\nforever\n    if <(Levens) = [0]> then\n        broadcast (Game_Over v)\n        stop [this script v]\n    end\nend\n\n@Game_over\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game_over v]\nhide variable [levens v]\nshow\nstop all sounds\nstart sound [zapsplat_multimedia_male_voice_processed_says_you_lose_21571 v]\nwait (1.75) seconds\nstop [all v]\n\n@bollekes\n\nwhen I receive [start! v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.01) to (0.7)) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\ngo to x: (220) y: (pick random (-225) to (225))\nset size to (pick random (80) to (150)) %\nset [ghost v] effect to (pick random (50) to (90))\nrepeat until <touching (_edge_ v)?>\n    change x by (-3)\nend\nhide\ndelete this clone\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Tientallen\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\nwait (1) seconds\ngo to x: (20) y: (75)\nshow\ngo to [front v] layer\nif <(length of (Points_Totaal)) = [1]> then\n    switch costume to (0 v)\nelse\n    switch costume to (letter (1) of (Points_Totaal))\nend\ndelete this clone\n\nwhen I receive [start! v]\nhide\nwait (1) seconds\ngo to x: (87) y: (153)\nshow\ncreate clone of (_myself_ v)\nforever\n    if <(length of (Levens)) = [2]> then\n        switch costume to (letter (1) of (Levens))\n    else\n        switch costume to (0 v)\n    end\nend\n\nwhen I receive [skins v]\nhide\n\nwhen I receive [levels v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I start as a clone\ngo to x: (-100) y: (153)\nforever\n    if <(length of (Points)) = [2]> then\n        switch costume to (letter (1) of (Points))\n    else\n        switch costume to (0 v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@Eenheden\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\nhide\nwait (1) seconds\ngo to x: (35) y: (75)\nshow\ngo to [front v] layer\nswitch costume to (letter (length of (Points_Totaal)) of (Points_Totaal))\ndelete this clone\n\nwhen I receive [start! v]\nhide\nwait (1) seconds\ngo to x: (102) y: (153)\nshow\ncreate clone of (_myself_ v)\nforever\n    switch costume to (letter (length of (Levens)) of (Levens))\nend\n\nwhen I receive [back v]\nshow\n\nwhen I receive [levels v]\nhide\n\nwhen I receive [skins v]\nhide\n\nwhen I start as a clone\ngo to x: (-85) y: (153)\nforever\n    switch costume to (letter (length of (Points)) of (Points))\nend\n\nwhen flag clicked\nhide\n\n