Scrolling platformer
@Stage\n\n@Player\n\nwhen flag clicked\ngo to x: (0) y: (-24)\n\nwhen I receive [tick v]\nif <touching (message v)?> then\n    broadcast (Talk v)\nend\n\nwhen I receive [tick v]\nif <touching (diamond v)?> then\n    change [☁ diamonds found v] by (1)\n    broadcast (Gottem v) and wait\nend\n\nwhen I receive [tick v]\nif <touching (easteregg v)?> then\n    set [jump height v] to [24]\n    set [speed left v] to [-4]\n    set [speed right v] to [4]\nend\n\nwhen flag clicked\nset [jump height v] to [18]\nset [speed left v] to [-2]\nset [speed right v] to [2]\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\ndefine Tick\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>> then\n    change [sx v] by (speed left)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [0]>>> then\n    change [sx v] by (speed right)\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 down?> and <(mouse y) > [0]>>> then\n    if <(in air) < [4]> then\n        set [sy v] to (jump height)\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange player y by (sy)\nPosition\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nset [scroll y v] to (y)\nPosition\nif <(y) < [-500]> then\n    set [exit v] to [die]\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [scroll y v] to [0]\nset [scroll x v] to [0]\nset [sy v] to [0]\nset [sx 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\nwhen I receive [play game v]\ngo to x: (0) y: (-24)\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) > [1]>\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\nwhen flag clicked\nswitch costume to (2a v)\n\nwhen I receive [finished v]\nswitch costume to (2a v)\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\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))\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [30]>>>> then\n    switch costume to (1a v)\n    if <<<mouse down?> and <(mouse y) > ((y position) + (10))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (5a v)\n    end\nelse\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-30]>>>> then\n        switch costume to (2a v)\n        if <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (4a v)\n        end\n    else\n        switch costume to (3a v)\n        if <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (6a v)\n        end\n    end\nend\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nchange [in air v] by (1)\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)\nend\nrepeat 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\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Test - Die\nif <touching (danger 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\nwait (1) seconds\nchange [level v] by (1)\n\nwhen I receive [stop v]\nstop [all v]\n\nwhen I receive [tick v]\nif <touching (water v)?> then\n    go to [front v] layer\n    set [sy v] to ((sy) / (2))\nend\n\nwhen I receive [tick v]\nif <touching (your time v)?> then\n    broadcast (Tell them there time v)\nend\n\n@Platforms\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [750] y: [0]\n    Clone at x: [650] y: [0]\n    Clone at x: [-1400] y: [450]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (platforms 1 3 v)\n        Clone at x: [600] y: [0]\n        Clone at x: [800] y: [200]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [600] y: [-300]\n        Clone at x: [750] y: [0]\n        Clone at x: [650] y: [0]\n        Clone at x: [-1400] y: [450]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (platforms 1 5 v)\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [600] y: [-300]\n            Clone at x: [750] y: [0]\n            Clone at x: [650] y: [0]\n            Clone at x: [-1400] y: [450]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (platforms 2 4 v)\n                Clone at x: [750] y: [0]\n                Clone at x: [650] y: [0]\n                Clone at x: [-1400] y: [450]\n            end\n        end\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)\nchange [y v] by (y)\nnext costume\n\n@Danger\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen flag clicked\nshow\nswitch costume to (danger 1 1 v)\ngo to [back v] layer\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 (danger 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [750] y: [0]\n    Clone at x: [650] y: [0]\n    Clone at x: [-1400] y: [450]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (danger 1 3 v)\n        Clone at x: [600] y: [0]\n        Clone at x: [800] y: [200]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [600] y: [-300]\n        Clone at x: [750] y: [0]\n        Clone at x: [650] y: [0]\n        Clone at x: [-1400] y: [450]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (danger 1 5 v)\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [600] y: [-300]\n            Clone at x: [750] y: [0]\n            Clone at x: [650] y: [0]\n            Clone at x: [-1400] y: [450]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (danger 2 4 v)\n                Clone at x: [750] y: [0]\n                Clone at x: [650] y: [0]\n                Clone at x: [-1400] y: [450]\n            end\n        end\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)\nchange [y v] by (y)\nnext costume\n\n@Water\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen flag clicked\nshow\nswitch costume to (water 1 1 v)\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 (blank v)\n    Clone at x: [500] y: [0]\n    Clone at x: [500] y: [0]\n    Clone at x: [300] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (danger 2 1 v)\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)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    change [ghost v] effect by (100)\n    go to [front v] layer\nend\n\n@Easteregg\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\ngo to [back v] layer\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [750] y: [0]\n    Clone at x: [650] y: [0]\n    Clone at x: [-1400] y: [450]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (platforms 1 3 v)\n        Clone at x: [600] y: [0]\n        Clone at x: [800] y: [200]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [600] y: [-300]\n        Clone at x: [750] y: [0]\n        Clone at x: [650] y: [0]\n        Clone at x: [-1400] y: [450]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (platforms 1 5 v)\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [600] y: [-300]\n            Clone at x: [750] y: [0]\n            Clone at x: [650] y: [0]\n            Clone at x: [-1400] y: [450]\n        end\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)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [gottem v]\nswitch costume to (blank v)\n\n@Checkpoints\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen flag clicked\nshow\nswitch costume to (water 1 1 v)\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 (water 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [750] y: [0]\n    Clone at x: [650] y: [0]\n    Clone at x: [-1400] y: [450]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (danger 1 3 v)\n        Clone at x: [600] y: [0]\n        Clone at x: [800] y: [200]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [600] y: [-300]\n        Clone at x: [750] y: [0]\n        Clone at x: [650] y: [0]\n        Clone at x: [-1400] y: [450]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (danger 1 5 v)\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [600] y: [-300]\n            Clone at x: [750] y: [0]\n            Clone at x: [650] y: [0]\n            Clone at x: [-1400] y: [450]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (danger 2 4 v)\n                Clone at x: [750] y: [0]\n                Clone at x: [650] y: [0]\n                Clone at x: [-1400] y: [450]\n            end\n        end\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)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\n\ngo to [front v] layer\n\nwhen I receive [tick v]\nif <<touching (player v)?> and <(costume [number v]) = [4]>> then\n    set [level v] to [2]\n    set [color v] effect to (-75)\nend\nif <<touching (player v)?> and <(costume [number v]) = [6]>> then\n    set [level v] to [3]\n    set [color v] effect to (-75)\nend\nif <<touching (player v)?> and <(costume [number v]) = [10]>> then\n    set [level v] to [4]\n    set [color v] effect to (-75)\nend\n\n@Trees\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\nelse\n    if <(LEVEL) = [2]> then\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)\nchange [y v] by (y)\nnext costume\n\n@Music Button\n\nwhen this sprite clicked\nif <(volume) = [50]> then\n    switch costume to (costume2 v)\n    set volume to (0) %\nelse\n    switch costume to (costume1 v)\n    set volume to (50) %\nend\n\nwhen flag clicked\nwait (0.8) seconds\nset volume to (50) %\nforever\n    play sound [Plugged \(post mastering\) v] until done\n    play sound [mbb-beach v] until done\n    start sound [Vexento - Pegasus2 v]\nend\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((90) - (size)) / (5))\n        set [brightness v] effect to (5)\n    else\n        change size by (((75) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\n@Your time\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\ngo to [back v] layer\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [600] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [-1400] y: [450]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (platforms 1 3 v)\n        Clone at x: [600] y: [0]\n        Clone at x: [800] y: [200]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [600] y: [-300]\n        Clone at x: [600] y: [0]\n        Clone at x: [600] y: [0]\n        Clone at x: [-1400] y: [450]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (platforms 1 3 v)\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [600] y: [-300]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [-1400] y: [450]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (platforms 2 4 v)\n                Clone at x: [600] y: [0]\n                Clone at x: [600] y: [0]\n                Clone at x: [-1400] y: [450]\n            end\n        end\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)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [gottem v]\nswitch costume to (blank v)\n\nwhen I receive [tell them there time v]\nshow variable [your time v]\nset [your time v] to (timer)\nsay (YOUR TIME) for (2) seconds\n\nwhen flag clicked\nset [your time v] to [0]\nhide variable [your time v]\n\n@Shadows\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\ngo to [back v] layer\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [750] y: [0]\n    Clone at x: [650] y: [0]\n    Clone at x: [-1400] y: [450]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (platforms 1 3 v)\n        Clone at x: [600] y: [0]\n        Clone at x: [800] y: [200]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [700] y: [125]\n        Clone at x: [600] y: [-300]\n        Clone at x: [750] y: [0]\n        Clone at x: [650] y: [0]\n        Clone at x: [-1400] y: [450]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (platforms 1 5 v)\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [700] y: [125]\n            Clone at x: [600] y: [-300]\n            Clone at x: [750] y: [0]\n            Clone at x: [650] y: [0]\n            Clone at x: [-1400] y: [450]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (platforms 2 4 v)\n                Clone at x: [750] y: [0]\n                Clone at x: [650] y: [0]\n                Clone at x: [-1400] y: [450]\n            end\n        end\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)\nchange [y v] by (y)\nnext costume\n\n@Diamond\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\ngo to [back v] layer\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [600] y: [0]\n    Clone at x: [600] y: [0]\nelse\n    if <(LEVEL) = [2]> then\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)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [gottem v]\nswitch costume to (blank v)\n\n@Message\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\nswitch costume to (platforms 1 1 v)\ngo to [back v] layer\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 (platforms 1 1 v)\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [600] y: [0]\n    Clone at x: [800] y: [200]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [700] y: [125]\n    Clone at x: [600] y: [-300]\n    Clone at x: [600] y: [0]\n    Clone at x: [600] y: [0]\nelse\n    if <(LEVEL) = [2]> then\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)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [talk v]\nsay [Find the diamond.] for (2) seconds\n\n
Spam The Green Flag\n\nArrow keys or WASD to move. \n\nShoutouts:\ncs4187837 who is a great coding master <3\ncs4336769  who made this great game https://scratch.mit.edu/projects/409568925\n\n\nComment your time if you want.\n\nAlso If you have anything you want me to add ill add it. Just put it in the comments.\n\nPlease comment if you grab the diamond.\n\nIf you get the easter egg you get jump boost this was K3v_D3v's idea.\n\nAlso try to get the diamond.\n\nClick on the music button if you dont want any music.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nSTOP SCROLLING DOWN\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nSeriously Stop\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHOW MANY TIMES DO I HAVE TO TELL YOU TO STOP\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n you got all the way down here comment "I LIKE TO SCROLL"