World//platformer

Instructions: Abaut\nHello and welcome to my newest Demo! Your goal is to find the end, and it will be a journey you never forget. Hope you like it!\nIntuccions\nUse WASD, arrow keys or tap to move, get trough the whole world to find the goal. Don't touch spikes! And don't forget, spam the green flag!

@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen flag clicked\nhide variable [mouse v]\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nhide variable [coins v]\n\n@Blank\n\n@player\n\nwhen flag clicked\nforever\n    if <<touching (bounce v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [sy v] to [33]\n    else\n        if <touching (bounce v)?> then\n            set [sy v] to [32]\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nset size to (pick random (150) to (250)) %\ngo to x: (pick random (-231) to (231)) y: (173)\nrepeat until <<<touching (art v)?> or <<touching (player v)?> or <touching (platforms v)?>>> or <touching (_edge_ v)?>>\n    change y by (-3)\nend\ndelete this clone\n\nwhen flag clicked\nwait (8) seconds\nbroadcast (Green Flag v)\nbroadcast (Play Game v)\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v)\n    end\n    if <(EXIT) = [Win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Game On\nset [x v] to [200]\nset [y v] to [370]\nset [scroll x v] to [200]\nset [scroll y v] to [370]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\ndefine Tick\nswitch costume to (player_center v)\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>>> then\n    change [sx v] by (-2)\n    switch costume to (right2 v)\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n    change [sx v] by (2)\n    switch costume to (left2 v)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [18]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (X)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-200]> then\n    set [exit v] to [die]\nend\n\ndefine Change Player y by (sy)\nif <not <touching (water v)?>> then\n    change [y v] by (sy)\n    change [in air v] by (1)\nelse\n    change [y v] by ((sy) / (5))\n    set [in air v] to [0]\nend\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((X) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    switch costume to (player_center v)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\n    hide\nend\n\ndefine Test - Die\nif <<<<<touching (danger v)?> or <touching (saws v)?>> or <touching (show hide  v)?>> or <<touching (enemi v)?> or <touching (enemi2 v)?>>> or <<touching (saws1 v)?> or <touching (saws2 v)?>>> then\n    set [exit v] to [die]\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\nwhen I receive [tick v]\nset [coins v] to (join (COLLECTED) (join [/] (COLLECTED MAX)))\n\nwhen flag clicked\nset [timer v] to [0.1]\nforever\n    set [timer v] to (timer)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (bounce v)?> then\n        change [now you can v] by (1)\n    end\nend\n\nwhen flag clicked\nset [now you can v] to [0]\n\nwhen I receive [green flag v]\nforever\n    play sound [Unlimited v] until done\nend\n\n@platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [200]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [200]\n    switch costume to (level 1 2 v)\n    Clone at x: [360] y: [200]\n    switch costume to (level 1 3 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 4 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 5 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 7 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 8 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 9 v)\n    Clone at x: [360] y: [100]\n    switch costume to (level 1 10 v)\n    Clone at x: [360] y: [200]\n    switch costume to (level 1 11 v)\n    Clone at x: [0] y: [300]\n    switch costume to (level 1 12 v)\n    Clone at x: [0] y: [400]\n    switch costume to (level 1 13 v)\n    Clone at x: [0] y: [500]\n    switch costume to (level 1 14 v)\n    Clone at x: [0] y: [600]\n    switch costume to (level 1 15 v)\n    Clone at x: [0] y: [700]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 4 v)\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nClone at x: [360] y: [0]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 3 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 4 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 5 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 6 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 7 v)\n    Clone at x: [560] y: [0]\n    switch costume to (level 1 8 v)\n    Clone at x: [560] y: [5]\n    switch costume to (level 1 9 v)\n    Clone at x: [560] y: [5]\n    switch costume to (level 1 10 v)\n    Clone at x: [560] y: [5]\n    switch costume to (level 1 11 v)\n    Clone at x: [560] y: [5]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [458] y: [-100]\n        switch costume to (level 2 3 v)\n        Clone at x: [456] y: [-103]\n        switch costume to (level 2 3 v)\n        Clone at x: [575] y: [-104]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen flag clicked\nswitch costume to (level 1 1 v)\n\nwhen flag clicked\nrepeat (8)\n    switch costume to (level 1 1 v)\nend\nswitch costume to (level 1 2 v)\n\nClone at x: [456] y: [-103]\nClone at x: [575] y: [-104]\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Collectables\n\nwhen I receive [flip v]\nnext costume\n\nwhen flag clicked\nforever\n    broadcast (Flip v)\n    wait (0.1) seconds\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [-118] y: [176]\n    Clone at x: [748] y: [230]\n    Clone at x: [869] y: [406]\n    Clone at x: [669] y: [-52]\n    Clone at x: [1829] y: [321]\n    Clone at x: [2515] y: [215]\n    Clone at x: [2694] y: [-47]\n    Clone at x: [3404] y: [72]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [301] y: [-5]\n        Clone at x: [379] y: [-99]\n    end\n    set [x v] to [-99999]\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nClone at x: [379] y: [-99]\n\nClone at x: [3400] y: [171]\nClone at x: [3401] y: [118]\n\n@Exit\n\nwhen flag clicked\nforever\n    broadcast (Flip v)\n    wait (0.1) seconds\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [3634]\nset [y v] to [1071]\nif <(LEVEL) = [1]> then\n    switch costume to (open v)\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [677] y: [299]\n    else\n        set [x v] to [-99999]\n    end\nend\n\nClone at x: [-198] y: [336]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (open v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\nend\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [Win]\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        stop [all v]\n    end\nend\n\n@BG\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [360]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 2 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 3 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 4 v)\n    Clone at x: [360] y: [400]\n    switch costume to (level 1 5 v)\n    Clone at x: [360] y: [400]\n    switch costume to (level 1 7 v)\n    Clone at x: [360] y: [400]\n    switch costume to (level 1 8 v)\n    Clone at x: [360] y: [400]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 4 v)\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nClone at x: [360] y: [0]\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Background\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [360]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [360]\n    switch costume to (level 1 2 v)\n    Clone at x: [248] y: [-28]\n    switch costume to (level 1 3 v)\n    Clone at x: [248] y: [-28]\n    switch costume to (level 1 4 v)\n    Clone at x: [360] y: [300]\n    switch costume to (level 1 5 v)\n    Clone at x: [360] y: [300]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 4 v)\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nClone at x: [396] y: [-131]\nClone at x: [396] y: [-131]\n\nswitch costume to (level 1 5 v)\n\nwhen flag clicked\nforever\n\nswitch costume to (level 1 5 v)\nClone at x: [360] y: [300]\nswitch costume to (level 3 1 v)\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to x: (36) y: (28)\nend\n\n@Thumbnail\n\nwhen [timer v] > (Timer2)\nswitch costume to (screenshot 2021-01-14 at 11 v)\ngo to x: (-240) y: (180)\nshow\nwait (0.001) seconds\ngo to [front v] layer\nglide (0.2) secs to x: (0) y: (0)\n\nwhen flag clicked\nbroadcast (Start Intro v)\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    set [timer v] to ((timer) + (0.0000000000000001))\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\ngo to [back v] layer\nshow variable [coins v]\n\nwhen [timer v] > (Timer)\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nhide variable [coins v]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nswitch costume to (costume4 v)\n\n@stone\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    switch costume to (level 1 2 v)\n    Clone at x: [248] y: [-28]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nswitch costume to (level 3 1 v)\n\nClone at x: [396] y: [-131]\nClone at x: [396] y: [-131]\n\nswitch costume to (level 2 2 v)\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Water\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nClone at x: [360] y: [0]\nswitch costume to (level 1 2 v)\nClone at x: [360] y: [0]\nswitch costume to (level 1 3 v)\nClone at x: [248] y: [-28]\nswitch costume to (level 1 4 v)\nClone at x: [248] y: [-28]\nswitch costume to (level 1 5 v)\nClone at x: [248] y: [-28]\nswitch costume to (level 1 6 v)\nClone at x: [460] y: [0]\nswitch costume to (level 1 7 v)\nClone at x: [460] y: [0]\nswitch costume to (level 1 8 v)\nClone at x: [460] y: [0]\nswitch costume to (level 1 9 v)\nClone at x: [460] y: [0]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I start as a clone\nset size to (100) %\nforever\n    repeat (5)\n        change size by (1)\n    end\n    repeat (5)\n        change size by (-1)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (5)\n        change size by (1)\n    end\n    repeat (5)\n        change size by (-1)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Play) = [1]> then\n        show\n    end\nend\n\n@Saws\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\ngo [backward v] (20) layers\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [509]\nset [y v] to [152]\nswitch costume to (level 1 1 v)\n\nClone at x: [1988] y: [261]\nswitch costume to (level 2 v)\nClone at x: [1988] y: [261]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen flag clicked\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nhide\nforever\n    if <(Play) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (20)\n        turn right (6) degrees\n    end\n    repeat (20)\n        turn right (-6) degrees\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (20)\n        turn right (6) degrees\n    end\n    repeat (20)\n        turn right (-6) degrees\n    end\nend\n\n@show hide \n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [back v] layer\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [1000000]\nswitch costume to (level 1 1 v)\n\nClone at x: [298] y: [332]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nforever\n    repeat (50)\n        switch costume to (costume1 v)\n    end\n    repeat (50)\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (50)\n        switch costume to (costume1 v)\n    end\n    repeat (50)\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Play) = [1]> then\n        show\n    end\nend\n\n@show hide 2\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [90000]\nset [y v] to [229]\nswitch costume to (level 1 1 v)\n\nClone at x: [298] y: [332]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nforever\n    repeat (50)\n        switch costume to (costume1 v)\n    end\n    repeat (50)\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (50)\n        switch costume to (costume1 v)\n    end\n    repeat (50)\n        switch costume to (costume2 v)\n    end\nend\n\n@Bounce\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\ngo [backward v] (20) layers\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [137]\nswitch costume to (level 1 1 v)\n\nClone at x: [392] y: [408]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\n@cloud1\n\nwhen flag clicked\ngo to x: (-31) y: (141)\nhide\nwait (9) seconds\nshow\nforever\n    repeat (100)\n        change x by (3)\n    end\n    repeat (100)\n        change x by (-3)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@cloud2\n\nwhen flag clicked\ngo to x: (-31) y: (130)\nhide\nwait (9) seconds\nshow\nforever\n    repeat (100)\n        change x by (-3)\n    end\n    repeat (100)\n        change x by (3)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@cloud3\n\nwhen flag clicked\ngo to x: (-31) y: (100)\nhide\nwait (9) seconds\nshow\nforever\n    repeat (100)\n        change x by (4)\n    end\n    repeat (100)\n        change x by (-6)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Enemi\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\ngo [backward v] (20) layers\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [1703]\nset [y v] to [112]\nswitch costume to (level 1 1 v)\nClone at x: [1584] y: [123]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nforever\n\nwhen I receive [play game v]\nforever\n    repeat (30)\n        change [x v] by (-3)\n        turn right (6) degrees\n    end\n    repeat (30)\n        change [x v] by (3)\n        turn right (-6) degrees\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (30)\n        turn left (6) degrees\n        change [x v] by (-7)\n    end\n    repeat (30)\n        turn left (-6) degrees\n        change [x v] by (7)\n    end\nend\n\n@Saws1\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\ngo [backward v] (20) layers\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [1988]\nset [y v] to [220]\nswitch costume to (level 1 1 v)\nClone at x: [1988] y: [212]\nswitch costume to (level 2 v)\nClone at x: [1988] y: [261]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen flag clicked\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nforever\n    repeat (20)\n        turn right (6) degrees\n    end\n    repeat (20)\n        turn right (-6) degrees\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (20)\n        turn right (6) degrees\n    end\n    repeat (20)\n        turn right (-6) degrees\n    end\nend\n\n@Enemi2\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\ngo [backward v] (20) layers\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [2297]\nset [y v] to [310]\nswitch costume to (level 1 1 v)\nClone at x: [1584] y: [123]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [play game v]\nforever\n    repeat (30)\n        switch costume to (costume2 v)\n        change [x v] by (-3)\n    end\n    repeat (30)\n        switch costume to (costume1 v)\n        change [x v] by (3)\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (30)\n        switch costume to (costume2 v)\n        change [x v] by (-7)\n        turn right (-6) degrees\n    end\n    repeat (30)\n        switch costume to (costume1 v)\n        change [x v] by (7)\n        turn right (6) degrees\n    end\nend\n\n@Intro\n\ndefine Start Intro\nreset timer\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nhide\nset size to (100) %\nset volume to (100) %\nstart sound [Music - @-Pickle_Test- v]\nset [rotate v] to [0]\nset [size v] to [0]\nset [y v] to [0]\nset [x2 v] to [0]\nset [id v] to [Slide]\ncreate clone of (_myself_ v)\nwait (0.7) seconds\nset [id v] to [Screen]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nset [id v] to [Logo]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nset [id v] to [Name]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nrepeat (12)\n    set [id v] to [Ring]\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I receive [start intro v]\nStart Intro\n\nwhen I start as a clone\nshow\nif <(ID) = [Slide]> then\n    switch costume to (slide v)\n    go to x: (0) y: (-1000)\n    point in direction (90)\n    set size to (100) %\n    go to x: (0) y: (-1000)\n    repeat (55)\n        set [y v] to (((Y) * (.1)) + (((0) - (y position)) / (4)))\n        change y by (Y)\n    end\n    set [y v] to [0]\n    wait (6) seconds\n    delete this clone\nelse\n    if <(ID) = [Screen]> then\n        set [brightness v] effect to (100)\n        switch costume to (slide v)\n        go to x: (0) y: (0)\n        go to [front v] layer\n        wait (0.2) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    else\n        if <(ID) = [Logo]> then\n            clear graphic effects\n            switch costume to (コスチューム3 v)\n            go to x: (0) y: (1000)\n            set size to (0) %\n            go to [front v] layer\n            repeat (55)\n                set [size v] to (((Size) * (.9)) + (((145) - (size)) / (5)))\n                set [y v] to (((Y) * (.9)) + (((15) - (y position)) / (4)))\n                change size by (Size)\n                change y by (Y)\n                point in direction ((([sin v] of ((timer) * (250)) ) * (20)) + ([asin v] of ((timer) / (timer)) ))\n            end\n            set [y v] to [0]\n            repeat (6)\n                set [jump v] to [11]\n                go to x: (0) y: (15)\n                repeat (21)\n                    change [jump v] by (-1)\n                    change y by (Jump)\n                    point in direction ((([sin v] of ((timer) * (250)) ) * (20)) + ([asin v] of ((timer) / (timer)) ))\n                end\n            end\n            show\n            clear graphic effects\n            go to x: (0) y: (0)\n            set size to (0) %\n            repeat (35)\n                switch costume to ( v)\n                change size by (175)\n                switch costume to (コスチューム3 v)\n                turn left (3) degrees\n                change [ghost v] effect by (.2)\n                go to [front v] layer\n            end\n            repeat (15)\n                go to [front v] layer\n                change [ghost v] effect by (3.4)\n                switch costume to ( v)\n                change size by (175)\n                switch costume to (コスチューム3 v)\n                turn left (3) degrees\n                go to [front v] layer\n            end\n            delete this clone\n        else\n            if <(ID) = [Ring]> then\n                go to [front v] layer\n                go [backward v] (5) layers\n                clear graphic effects\n                set size to (0) %\n                show\n                switch costume to (ball v)\n                repeat (15)\n                    change size by (10)\n                    next costume\n                    change [ghost v] effect by (7)\n                end\n                delete this clone\n            else\n                if <(ID) = [Line]> then\n                    go to x: (0) y: (20)\n                    point in direction (pick random (0) to (360))\n                    go to [front v] layer\n                    go [backward v] (9) layers\n                    clear graphic effects\n                    set size to (pick random (45) to (92)) %\n                    show\n                    switch costume to (line v)\n                    repeat (12)\n                        next costume\n                        move (15) steps\n                        change [ghost v] effect by (9)\n                    end\n                    delete this clone\n                else\n                    if <(ID) = [Name]> then\n                        go to x: (0) y: (-135)\n                        point in direction (90)\n                        go to [front v] layer\n                        clear graphic effects\n                        set size to (0) %\n                        show\n                        switch costume to (name v)\n                        repeat (190)\n                            set x to (([sin v] of ((timer) * (235)) ) * (35))\n                            set size to ((([sin v] of ((timer) * (250)) ) * (5)) + (70)) %\n                            point in direction ((([sin v] of ((timer) * (300)) ) * (-10)) + ([asin v] of ((timer) / (timer)) ))\n                        end\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start intro v]\nwait (1) seconds\nrepeat (80)\n    set [id v] to [Line]\n    create clone of (_myself_ v)\n    wait (0.02) seconds\nend\n\nwhen I receive [start intro v]\nwait (.8) seconds\nset [id v] to [Name]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nbroadcast (Start Intro v)\n\n@Saws2\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\ngo [backward v] (20) layers\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [1330]\nset [y v] to [230]\nswitch costume to (level 1 1 v)\nClone at x: [1988] y: [212]\nswitch costume to (level 2 v)\nClone at x: [1988] y: [261]\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen flag clicked\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nforever\n    repeat (30)\n        change [x v] by (-7)\n        turn right (6) degrees\n    end\n    repeat (30)\n        turn right (-6) degrees\n        change [x v] by (7)\n    end\nend\n\nwhen I start as a clone\nforever\n    repeat (30)\n        change [x v] by (-7)\n        turn right (6) degrees\n    end\n    repeat (30)\n        change [x v] by (7)\n        turn right (-6) degrees\n    end\nend\n\n