Skill, A Platformer

Instructions: instructions are inside but I'll tell you them anyway.\n- arrows/wasd to move\n\n- Sequel Is Now Out!\nhttps://scratch.mit.edu/projects/408501384/

@Stage\n\nwhen I receive [start game v]\nbroadcast (start v)\n\n@intro (3)\n\ndefine Set Size to: (size) Speed: (speed)\nset [sizebounce v] to (((Sizebounce) * (0.7)) + (((size) - (size)) * (speed)))\nchange size by (Sizebounce)\n\nwhen flag clicked\n\nwhen I receive [startintro v]\nforever\n    set [brightness v] effect to (helligk)\nend\n\nwhen I receive [startintro v]\nbounce4\n\nwhen I receive [startintro v]\nwait (1) seconds\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (200)) ) * (10)))\nend\n\nwhen flag clicked\nwait (0.1) seconds\nbroadcast (startnewintro v)\nwait (1.5) seconds\nbroadcast (startintro v)\n\nwhen flag clicked\nhide\n\nwhen I receive [startnewintro v]\nset [start v] to [0]\nwait (0.3) seconds\nshow\nset size to (10) %\nrepeat until <(start) = [1]>\n    Set Size to: [200] Speed: ((1) / (6))\nend\n\nshow\npoint in direction (165)\n\nwhen I receive [startnewintro v]\nwait (0.3) seconds\nset y to (0)\npoint in direction (165)\nrepeat until <(direction) < [91]>\n    change y by (((0) - (y position)) / (6))\n    turn right (((90) - (direction)) / (20)) degrees\nend\n\ndefine bounce4\nset [bounce? v] to [0]\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to (((bounce?) * (0.65)) + ((((200) + ()) - (size)) * (0.2)))\n        change size by (bounce?)\n    else\n        set [bounce? v] to (((bounce?) * (0.6)) + ((((150) + ()) - (size)) * (0.2)))\n        change size by (bounce?)\n    end\nend\n\nwhen I receive [endintro v]\nstop [other scripts in sprite v]\nrepeat until <[135] < (direction)>\n    change size by (-10)\n    change [ghost v] effect by (8)\n    go to [front v] layer\n    turn right (((-136) - (direction)) / (6)) degrees\nend\n\n@intro (2)\n\nwhen I start as a clone\nwait until <(start) = [1]>\nshow\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nrepeat (1000)\n    turn right (((direction) - (90)) / (30)) degrees\nend\n\nwhen I start as a clone\nwait until <(start) = [1]>\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I start as a clone\nbounce4\n\nwhen I receive [startintro v]\ndreh\n\nset size to ((size) - (() + (([sin v] of ((timer) * (100)) ) * (10)))) %\n\nset size to ((size) - (() + (([sin v] of ((timer) * (100)) ) * (10)))) %\n\ndefine dreh\nset [start v] to [0]\npoint in direction (90)\ngo to x: (0) y: (0)\nrepeat (8)\n    create clone of (_myself_ v)\n    turn right ((360) / (8)) degrees\nend\nset [start v] to [1]\n\ndefine bounce4\nset [bounce? v] to [0]\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to (((bounce?) * (0.65)) + ((((110) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    else\n        set [bounce? v] to (((bounce?) * (0.6)) + ((((120) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    end\nend\n\nwhen I receive [endintro v]\nrepeat (10)\n    change y by (((y position) - (40)) / (-10))\n    change [ghost v] effect by (10)\nend\nwait (1.5) seconds\nbroadcast (start game v)\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n@Figur8\n\nwhen flag clicked\nswitch costume to (intro v)\nhide variable [time v]\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    set [brightness v] effect to (helligk)\n    go to [back v] layer\nend\n\nwhen I receive [start game v]\nstop [other scripts in sprite v]\nreset timer\nforever\n    set [ghost v] effect to (100)\n    switch costume to (intro v)\n    show\n    go to [front v] layer\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nbroadcast (end_ers v)\nhide variable [timer v]\nset y to (500)\nset [time v] to (timer)\nset [ghost v] effect to (5)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nswitch costume to (intro2 v)\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nshow variable [time v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [end_ers v]\nforever\n    set y to ((y position) / (1.1))\nend\n\n@water\n\nwhen I receive [clone levels v]\nset [me v] to [0]\nswitch costume to (1 v)\nnew platform at [11]\nswitch costume to (2 v)\nnew platform at [14]\n\ndefine new platform at (x-diff. / 465)\nset [xdiff v] to ((x-diff. / 465) * (465))\nset [me v] to [1]\ncreate clone of (_myself_ v)\nset [me v] to [2]\ncreate clone of (_myself_ v)\nset [me v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I receive [tick_game v]\nset [ghost v] effect to (50)\nset y to ((([sin v] of (((timer) + (me)) * (300)) ) * (10)) + (0))\npoint in direction ((90) + (([sin v] of (((timer) + (me)) * (200)) ) * (2)))\nset x to ((xdiff) - (xpos))\nif <((xdiff) - (xpos)) = (x position)> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\n@coin\n\nwhen I receive [clone levels v]\nnew coin at [226] [-107]\nnew coin at [460] [14]\nnew coin at [593] [14]\nnew coin at [702] [-80]\nnew coin at [1122] [100]\nnew coin at [1490] [130]\nnew coin at [1826] [-60]\nnew coin at [2967] [40]\nnew coin at [3100] [120]\nnew coin at [4153] [40]\nnew coin at [4750] [50]\nnew coin at [5503] [0]\nnew coin at [5744] [0]\nnew coin at [5625] [-20]\nset [x-clone v] to [-10000000000000000000]\n\nwhen I receive [tick_game v]\ngo to x: ((x-clone) - (xpos)) y: ((y-clone) + ((([sin v] of ((timer) * (200)) ) * (3)) + ()))\npoint in direction (90)\nset size to (50) %\nif <((x-clone) - (xpos)) = (x position)> then\n    show\n    if <touching (player v)?> then\n        start sound [Coin v]\n        delete this clone\n    end\nelse\n    hide\nend\n\ndefine new coin at (x) (y)\nset [x-clone v] to (x)\nset [y-clone v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (1 v)\n    wait (0.6) seconds\n    repeat (7)\n        next costume\n    end\nend\n\nwhen [space v] key pressed\nhide\n\n@Figur1\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (-260) to (260)) y: (100000)\nshow\n\nwhen I receive [tick_game v]\ngo to [back v] layer\ngo [forward v] (10) layers\nturn right (5) degrees\nchange y by (-1)\nif <(y position) < [-150]> then\n    delete this clone\nend\n\nwhen I receive [start v]\nhide\nset [ghost v] effect to (82)\nset size to (150) %\nforever\n    wait (0.4) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\n@sj\n\nwhen I receive [clone levels v]\nset [xpos v] to [0]\nset [x.diff. v] to [0]\nswitch costume to (5 v)\nnew platform at [4]\nswitch costume to (2 v)\nnew platform at [3]\nswitch costume to (3 v)\nnew platform at [6]\n\ndefine new platform at (x-diff. / 465)\nchange [x.diff. v] by ((x-diff. / 465) * (465))\ncreate clone of (_myself_ v)\n\nwhen I receive [tick_game v]\ngo to x: ((x.diff.) - (xpos)) y: ((y position) / (1.3))\npoint in direction (90)\nif <((x.diff.) - (xpos)) = (x position)> then\n    show\n    if <touching (player v)?> then\n        set y to (-20)\n    end\nelse\n    hide\nend\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nhide\n\n@interactive elements\n\nwhen I receive [start v]\nbroadcast (clone levels v)\n\nwhen I receive [clone levels v]\nset [xpos v] to [0]\nset [x.clone.pos v] to [0]\nnew chain at [100] [250]\nnew chain at [300] [230]\nnew chain at [660] [260]\nnew flower at [135] [-160]\nnew lamp at [130] [-100]\nnew lamp at [815] [10]\nnew flower at [756] [-130]\nnew chain at [1600] [240]\nnew chain at [1803] [200]\nnew lamp at [1895] [-45]\nnew lamp at [2422] [89]\nnew flower at [2078] [-108]\nnew lamp at [3386.2] [-30]\nnew chain at [2300] [240]\nnew chain at [2790] [240]\nnew chain at [3310] [200]\nnew lamp at [3926] [52]\nnew chain at [4020] [240]\nnew chain at [4380] [255]\nnew lamp at [4624] [45]\nnew chain at [5095] [240]\nnew lamp at [5222] [100]\nnew lamp at [5873] [40]\nnew lamp at [6517] [-10]\nnew chain at [6300] [240]\nset [mode v] to [0]\nhide\nstop [this script v]\n\ndefine new platform at (x.clone.pos) (y.clone.pos)\n\ndefine new chain at (x) (y)\nswitch costume to (chain v)\nset [mode v] to [1]\nset [x.clone.pos v] to (x)\nset [y.clone.pos v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Sway\nset [magnitude v] to (((xmotion) + (pick random (-2.0) to (2.0))) * (8))\nset [sway v] to [0]\nrepeat until <<[0] = (round ((Magnitude) * (2)))> or <<touching (player v)?> and <([abs v] of (Magnitude) ) < ([abs v] of ((xmotion) * (2)) )>>>\n    point in direction ((90) - (([sin v] of (sway) ) * (Magnitude)))\n    change [sway v] by (-10)\n    set [magnitude v] to ((0.95) * (Magnitude))\nend\n\nwhen I start as a clone\npoint in direction (90)\n\nwhen I start as a clone\ngo to [back v] layer\nset size to (100) %\nif <(mode) = [1]> then\n    forever\n        if <touching (player v)?> then\n            Sway\n        end\n        set [ghost v] effect to (10)\n    end\nend\nif <(mode) = [2]> then\n    forever\n        set size to ((50) + (([sin v] of ((timer) * (100)) ) * (10))) %\n        set [brightness v] effect to (([cos v] of ((timer) * (200)) ) * (5))\n    end\nend\nif <(mode) = [3]> then\n    go to [front v] layer\n    forever\n        set size to (50) %\n    end\nend\n\ndefine new flower at (x) (y)\nswitch costume to (chain2 v)\nset [mode v] to [1]\nset [x.clone.pos v] to (x)\nset [y.clone.pos v] to (y)\ncreate clone of (_myself_ v)\n\ndefine new lamp at (x) (y)\nswitch costume to (chain4 v)\nset [mode v] to [2]\nset [x.clone.pos v] to (x)\nset [y.clone.pos v] to (y)\ncreate clone of (_myself_ v)\nset [mode v] to [3]\nswitch costume to (chain3 v)\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\nhide\n\ndefine Go to (x)\ngo to x: (x) y: (y.clone.pos)\nif <(x) = (x position)> then\n    if <not <(mode) = [0]>> then\n        show\n    end\nelse\n    hide\nend\n\nwhen I receive [tick_game v]\nGo to ((x.clone.pos) - (xpos))\n\nwhen flag clicked\nhide\n\n@notes2\n\nwhen I receive [start v]\nbroadcast (clone levels v)\n\nwhen I receive [clone levels v]\nset [xpos v] to [0]\nset [x.diff. v] to [0]\nnew platform at [0]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\nnew platform at [1]\n\ndefine new platform at (x-diff. / 465)\nswitch costume to (pick random (1) to (4))\nchange [x.diff. v] by ((x-diff. / 465) * (465))\nset [change v] to ((pick random (5) to (15)) / (10))\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I receive [tick_game v]\ngo to [back v] layer\ngo to x: ((x.diff.) - ((xpos) * (change))) y: (0)\nif <((x.diff.) - ((xpos) * (change))) = (x position)> then\n    show\nelse\n    hide\nend\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nhide\n\n@notes\n\nwhen I receive [start v]\nbroadcast (clone levels v)\n\nwhen I receive [clone levels v]\nset [xpos v] to [0]\nset [x.diff. v] to [0]\nswitch costume to (1 v)\nnew platform at [0]\nswitch costume to (2 v)\nnew platform at [1]\nswitch costume to (3 v)\nnew platform at [1]\nswitch costume to (4 v)\nnew platform at [1]\nswitch costume to (5 v)\nnew platform at [1]\nswitch costume to (6 v)\nnew platform at [1]\nswitch costume to (7 v)\nnew platform at [1]\nswitch costume to (8 v)\nnew platform at [1]\nswitch costume to (kostüm1 v)\nnew platform at [1]\nswitch costume to (kostüm2 v)\nnew platform at [1]\nswitch costume to (kostüm3 v)\nnew platform at [1]\nswitch costume to (kostüm4 v)\nnew platform at [1]\nswitch costume to (kostüm5 v)\nnew platform at [1]\nswitch costume to (kostüm6 v)\nnew platform at [1]\nswitch costume to (kostüm7 v)\nnew platform at [1]\n\ndefine new platform at (x-diff. / 465)\nchange [x.diff. v] by ((x-diff. / 465) * (465))\ncreate clone of (_myself_ v)\n\nwhen I receive [tick_game v]\ngo to x: ((x.diff.) - (xpos)) y: (0)\nif <((x.diff.) - (xpos)) = (x position)> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\n@checkp\n\nwhen I receive [start v]\nbroadcast (clone levels v)\n\nwhen I receive [clone levels v]\nset size to (100) %\nnew platform at [1695] [120] id [2]\nwait (0.1) seconds\nnew platform at [3500] [93] id [3]\nnew platform at [5355] [110] id [4]\nnew platform at [6619] [105] id [5]\nset [ypos v] to [-100000]\n\ndefine new platform at (xpos) (ypos) id (id)\nset [x-goto v] to (xpos)\nset [ypos v] to (ypos)\nset [id v] to (id)\nif <(id) = [5]> then\n    set size to (200) %\nend\ncreate clone of (_myself_ v)\nset size to (100) %\n\nwhen I receive [tick_game v]\ngo to x: ((x-goto) - (xpos)) y: (ypos)\nturn right (5) degrees\nif <<((x-goto) - (xpos)) = (x position)> and <(id) > (checkpoint)>> then\n    show\n    if <touching (player v)?> then\n        if <(ct) = [1]> then\n            set [checkpoint v] to (id)\n            if <(id) = [5]> then\n                broadcast (end v)\n            end\n            delete this clone\n        end\n    end\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nhide\n\n@danger\n\nwhen I receive [clone levels v]\nset [xpos v] to [0]\nset [x.diff. v] to [0]\nswitch costume to (1 v)\nnew platform at [0]\nswitch costume to (2 v)\nnew platform at [1]\nswitch costume to (3 v)\nnew platform at [1]\nswitch costume to (4 v)\nnew platform at [1]\nswitch costume to (5 v)\nnew platform at [1]\nswitch costume to (6 v)\nnew platform at [1]\nswitch costume to (7 v)\nnew platform at [1]\nswitch costume to (8 v)\nnew platform at [1]\nswitch costume to (9 v)\nnew platform at [1]\nswitch costume to (10 v)\nnew platform at [1]\nswitch costume to (11 v)\nnew platform at [1]\nswitch costume to (12 v)\nnew platform at [1]\nswitch costume to (13 v)\nnew platform at [1]\nswitch costume to (14 v)\nnew platform at [1]\nswitch costume to (15 v)\nnew platform at [1]\n\ndefine new platform at (x-diff. / 465)\nchange [x.diff. v] by ((x-diff. / 465) * (465))\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\nhide\n\nwhen I receive [tick_game v]\ngo to x: ((x.diff.) - (xpos)) y: (([sin v] of ((timer) * (100)) ) * (5))\npoint in direction ((([cos v] of ((timer) * (100)) ) * (2)) + (90))\nset [brightness v] effect to (([sin v] of ((timer) * (200)) ) * (3))\nif <((x.diff.) - (xpos)) = (x position)> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Sprite2\n\nwhen flag clicked\n\ngo to [back v] layer\nshow\ngo to x: (36) y: (20)\nrepeat until <[-500] > (x position)>\n    go to [back v] layer\n    change x by (-2)\nend\nset [ghost v] effect to (100)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nshow\ngo to x: (180) y: (20)\nrepeat until <[-500] > (x position)>\n    change x by (-2)\n    go to [back v] layer\nend\ndelete this clone\n\nwhen flag clicked\n\nforever\n    wait (2) seconds\n    create clone of (_myself_ v)\nend\n\nwhen [space v] key pressed\nhide\n\n@Sprite1\n\nwhen I start as a clone\ngo to [back v] layer\npoint in direction (pick random (0) to (360))\ngo to (random position v)\nswitch costume to (pick random (1) to (3))\nsize (pick random (50) to (200))\n\nwhen flag clicked\nhide\n\ndefine size (zz)\nset size to (0) %\nset [ghost v] effect to (100)\nshow\nrepeat (30)\n    change size by (((zz) - (size)) / (5))\n    change [ghost v] effect by (-1)\nend\nwait (0.1) seconds\nrepeat (30)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\nwhen I receive [start game v]\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen [space v] key pressed\nhide\n\n@Figur3\n\nwhen I receive [start v]\nbroadcast (clone levels v)\n\nwhen I receive [clone levels v]\nset [xpos v] to [0]\nset [x.diff. v] to [0]\nswitch costume to (1 v)\nnew platform at [0]\nswitch costume to (2 v)\nnew platform at [1]\nswitch costume to (5 v)\nnew platform at [1]\nswitch costume to (4 v)\nnew platform at [1]\nswitch costume to (3 v)\nnew platform at [1]\nswitch costume to (7777 v)\nnew platform at [1]\nswitch costume to (6 v)\nnew platform at [1]\nswitch costume to (7 v)\nnew platform at [1]\nswitch costume to (8 v)\nnew platform at [1]\nswitch costume to (9 v)\nnew platform at [1]\nswitch costume to (10 v)\nnew platform at [1]\nswitch costume to (11 v)\nnew platform at [1]\nswitch costume to (12 v)\nnew platform at [1]\nswitch costume to (13 v)\nnew platform at [1]\nswitch costume to (14 v)\nnew platform at [1]\nbroadcast (engine v)\nhide\n\ndefine new platform at (x-diff. / 465)\nchange [x.diff. v] by ((x-diff. / 465) * (465))\ncreate clone of (_myself_ v)\n\ndefine Go to (x)\ngo to x: (x) y: (0)\ngo [backward v] (1) layers\nif <((x.diff.) - (xpos)) = (x position)> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick_game v]\nGo to ((x.diff.) - (xpos))\n\nwhen [space v] key pressed\nhide\n\nwhen [space v] key pressed\nforever\n    hide\nend\n\nwhen flag clicked\nhide\n\n@white-noise\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (99)\n    go to [back v] layer\n    go [forward v] (10) layers\nend\n\nwhen flag clicked\nhide variable [timer v]\n\nwhen [space v] key pressed\nhide\n\n@intro (1)\n\nwhen I receive [startnewintro v]\nset [pitch v] effect to (0)\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\ndefine auseinandergehender effekt (sec)\nforever\n    wait (sec) seconds\n    set [clone.id v] to [0]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(clone.id) = [0]> then\n    set [ghost v] effect to (60)\n    set size to (100) %\n    show\n    switch costume to (pick random (1) to (3))\n    effect (pick random (10) to (-10)) (pick random (10) to (-10))\nend\n\ndefine effect (zufallszahl_x) (zufallszahl_y)\ngo to [back v] layer\nrepeat (10)\n    change x by ((zufallszahl_x) * (3))\n    change y by (zufallszahl_y)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I receive [startintro v]\nset [helligk v] to [100]\nforever\n    change [helligk v] by ((helligk) / (-5))\nend\n\nwhen I receive [startintro v]\ngo to x: (0) y: (0)\nforever\n    set [brightness v] effect to (helligk)\nend\n\nwhen I receive [startnewintro v]\nplay sound [Syn Cole - Feel Good v] until done\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nshow\nswitch costume to (kostüm4 v)\nwait (1) seconds\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (400)) ) * (20)))\nend\n\nwhen I receive [startintro v]\nbounce4\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startintro v]\nauseinandergehender effekt [0]\n\nwhen I receive [startnewintro v]\nset volume to (100) %\nwait (6.5) seconds\nrepeat (10)\n    change volume by (-10)\nend\nbroadcast (endintro v)\n\nwhen I receive [startintro v]\nset [mp v] to [0]\nwait (0.1) seconds\nforever\n    set [mp v] to [1]\n    set [helligk v] to [10]\n    wait (0.2) seconds\n    set [mp v] to [0]\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [startnewintro v]\nwait (0.1) seconds\nset [helligk v] to [-10]\nrepeat until <(start) = [1]>\n    change [helligk v] by (1)\nend\n\nwhen flag clicked\nset [helligk v] to [-10]\n\nwhen I receive [startnewintro v]\nset y to (60)\nshow\npoint in direction (165)\nset size to (10) %\nset [ghost v] effect to (100)\nrepeat until <(direction) < [91]>\n    change [ghost v] effect by (-10)\n    go to [front v] layer\n    change size by (((210) - (size)) / (10))\n    turn right (((90) - (direction)) / (6)) degrees\n    change y by (((0) - (y position)) / (6))\nend\n\nwhen I receive [endintro v]\nif <(costume [number v]) = [5]> then\n    stop [other scripts in sprite v]\nend\nrepeat until <[135] < (direction)>\n    change [ghost v] effect by (10)\n    go to [front v] layer\n    turn right (((-136) - (direction)) / (6)) degrees\nend\n\ndefine bounce4\nset [bounce? v] to [0]\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to (((bounce?) * (0.65)) + ((((200) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    else\n        set [bounce? v] to (((bounce?) * (0.6)) + ((((150) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    end\nend\n\nwhen [space v] key pressed\nhide\n\n@player\n\nchange [x v] by (1)\n\nwhen I receive [engine v]\nset [checkpoint v] to [1]\ndelete all of [checkpoints v]\nadd [0] to [checkpoints v]\nadd [1695.219] to [checkpoints v]\nadd [3500] to [checkpoints v]\nadd [5350] to [checkpoints v]\nshow\nswitch costume to (costume1 v)\npoint in direction (90)\ngo to x: (0) y: (0)\nset [xpos v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nwait (0) seconds\nforever\n    broadcast (TICK_game v)\n    Tick\nend\n\nbroadcast (TICK_game v) and wait\n\ndefine Tick\ngo to [front v] layer\nchange x by (0)\nif <touching (water v)?> then\n    set [y v] to ((y) * (0.9))\n    change [y v] by (-0.1)\nelse\n    change [y v] by (-1)\nend\nif <touching (checkp v)?> then\n    set [ct v] to [1]\nelse\n    set [ct v] to [0]\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    switch costume to (costume5 v)\n    change [x v] by (-1.1)\nelse\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (costume2 v)\n        change [x v] by (1.1)\n    else\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            switch costume to (costume4 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    switch costume to (costume4 v)\nend\nif <touching (water v)?> then\n    set [x v] to ((x) * (0.76))\nelse\n    set [x v] to ((x) * (0.9))\nend\nif <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    switch costume to (costume3 v)\nend\nif <<touching (danger v)?> or <key (r v) pressed?>> then\n    switch costume to (costume5 v)\n    set [mpde2 v] to [1]\n    repeat (5)\n        change [ghost v] effect by (5)\n        change size by (-5)\n        create clone of (_myself_ v)\n        next costume\n    end\n    hide\n    set size to (100) %\n    set [ghost v] effect to (0)\n    wait (0.4) seconds\n    set [xpos v] to (item (checkpoint) of [checkpoints v])\n    set y to (100)\n    broadcast (TICK_game v)\n    set [x v] to [0]\n    set [y v] to [0]\n    show\nend\nchange [sound v] by (((sound) - ((100) - ((80) * <touching (water v)?>))) / (-15))\nif <touching (figur3 v)?> then\n    change y by (1)\nend\nif <touching (figur3 v)?> then\n    change y by (1)\nend\nif <touching (figur3 v)?> then\n    change y by (1)\nend\nif <touching (figur3 v)?> then\n    change y by (1)\nend\nif <touching (figur3 v)?> then\n    change y by (-4)\n    if <not <touching (sj v)?>> then\n        set [y v] to [10]\n        if <([abs v] of (x) ) = (x)> then\n            set [x v] to [-10]\n        else\n            set [x v] to [10]\n        end\n    end\nend\nif <(y) < [-13]> then\n    set [y v] to [-13]\nend\nif <touching (sj v)?> then\n    set [y v] to [25]\n    if <touching (figur3 v)?> then\n        set [x v] to ((x) * (-3))\n    end\nend\nchange [xpos v] by (x)\nchange y by (y)\nif <touching (figur3 v)?> then\n    change y by ((0) - (y))\n    set [y v] to [1]\nend\nchange y by (-1)\nif <touching (water v)?> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [y v] to [5]\n    end\nelse\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (figur3 v)?>> then\n        set [y v] to [15]\n    end\nend\nchange y by (1)\nif <(y position) > [180]> then\n    set [y v] to [0]\n    switch costume to (costume4 v)\nend\n\nwhen I start as a clone\nif <(mpde2) = [1]> then\n    switch costume to (dot v)\nelse\n    switch costume to (dot2 v)\n    go to [back v] layer\nend\neff (pick random (-10) to (10))\n\ndefine eff (x)\nset size to (200) %\nshow\nset [y-eff v] to [8]\nrepeat until <touching (_edge_ v)?>\n    change y by (y-eff)\n    change x by (x)\n    change [y-eff v] by (-2)\nend\ndelete this clone\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [clone_die v]\n\nwhen I receive [engine v]\nforever\n    wait until <touching (water v)?>\n    set [mpde2 v] to [2]\n    start sound [Ocean Wave v]\n    repeat (5)\n        create clone of (_myself_ v)\n    end\n    wait until <not <touching (water v)?>>\nend\n\nwhen flag clicked\nset [sound v] to [100]\n\nwhen flag clicked\nforever\n    set volume to (sound) %\nend\n\nwhen I receive [start v]\nset size to (100) %\nforever\n    if <(pick random (1) to (3)) = [1]> then\n        play sound [Elektronomia - Fire v] until done\n    else\n        play sound [Hot Spaghetti v] until done\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nset volume to (30) %\nwait (1) seconds\nstart sound [Elektronomia - Fire v]\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen [space v] key pressed\nshow\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\n\nhide\n\n