» [HISTORICAL] green. Platformer | Remix
@Stage\n\nwhen flag clicked\nset [manager v] to [0]\nif <(LogoShown) = [false]> then\n    set [manager v] to [Intro]\n    broadcast (Intro v)\n    switch backdrop to (thumbnail v)\n    repeat (20)\n        change [brightness v] effect by (-2)\n    end\n    wait (0.5) seconds\n    set [brightness v] effect to (-100)\n    wait until <(LogoShown) = [true]>\n    switch backdrop to (background v)\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    set [manager v] to [Start]\n    broadcast (Start v)\nelse\n    set [brightness v] effect to (-100)\n    switch backdrop to (background v)\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    set [manager v] to [Start]\n    broadcast (Start v)\nend\n\nset [logoshown v] to [false]\n\n@Intro\n\nwhen flag clicked\nhide\nswitch costume to (default v)\nset size to (100) %\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\npoint in direction (90)\n\nwhen I receive [intro v]\nset [clone v] to [Backdrop]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone v] to [Logo]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone) = [Backdrop]> then\n    switch costume to (backdrop v)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    go to x: (-400) y: (0)\n    point in direction (90)\n    go to [back v] layer\n    show\n    repeat (25)\n        change [ghost v] effect by (-10)\n        change x by (((0) - (x position)) / (4))\n    end\n    wait (1.2) seconds\n    set [logoshown v] to [true]\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Logo]> then\n    switch costume to (logo v)\n    set size to (0) %\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    point in direction (45)\n    go to [front v] layer\n    show\n    start sound [Intro v]\n    repeat (40)\n        set [i v] to (((i) * (0.7)) + (((65) - (size)) / (5)))\n        change [ghost v] effect by (-15)\n        change size by (i)\n        turn right (((90) - (direction)) / (4)) degrees\n    end\n    change x by (0.05)\n    repeat (10)\n        set [i v] to (((i) * (0.7)) + (((65) - (size)) / (5)))\n        change [ghost v] effect by (10)\n        change size by (i)\n        change x by (x position)\n    end\n    delete this clone\nend\n\n@Player\n\nwhen I receive [next level v]\ngo to x: (-216) y: (-74)\nset [change in x v] to [0]\nset [change in y v] to [0]\n\ndefine Side Collsion\nif <touching color (#00d807)?> then\n    change y by (1)\n    if <touching color (#00d807)?> then\n        change y by (1)\n        if <touching color (#00d807)?> then\n            change y by (1)\n            if <touching color (#00d807)?> then\n                change y by (1)\n                if <touching color (#00d807)?> then\n                    change y by (1)\n                    if <touching color (#00d807)?> then\n                        change x by ((Change in x) * (-1))\n                        change y by (-5)\n                        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                            if <(Change in x) > [0]> then\n                                set [change in x v] to [-5]\n                            else\n                                set [change in x v] to \n                            end\n                            set [change in y v] to [10]\n                        else\n                            set [change in x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Gravity\nchange [change in y v] by (-1)\nchange y by (change in y)\nif  then\n    change y by ((-1) * (change in y))\n    set [change in y v] to [0]\nend\nchange y by (-1)\nif <touching color (#00d807)?> then\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [change in y v] to [15]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\nhide\n\nbroadcast (Start v)\n\nhide\n\ndefine Death Check\nif <touching color (#00bb06)?> then\n    set size to (50) %\n    switch costume to (player v)\n    go to x: (-216) y: (-74)\n    set [change in x v] to [0]\n    set [change in y v] to [0]\n    play sound [Crunch v] until done\nend\n\nwhen [r v] key pressed\nset size to (65) %\ngo to x: (-216) y: (-74)\nset [change in x v] to [0]\nset [change in y v] to [0]\n\nwhen I receive [start v]\nshow\nforever\n    play sound [Alan Walker - Spectre.mp3 v] until done\nend\n\nwhen I receive [start v]\nset size to (65) %\nswitch costume to (roundedright v)\nforever\n    if <(Mute?) = [1]> then\n        set volume to (0) %\n    else\n        set volume to (100) %\n    end\n    if <touching color (#00fff2)?> then\n        set size to (25) %\n    end\nend\n\nwhen I receive [start v]\nforever\n    Death Check\n    if <key (m v) pressed?> then\n        change [mute? v] by (1)\n        if <(Mute?) = [2]> then\n            set [mute? v] to [0]\n        end\n        wait until <not <key (m v) pressed?>>\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching color (#4dff53)?> then\n        wait (0.01) seconds\n        change [change in y v] by (20)\n        play sound [Jump v] until done\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\ngo to x: (-216) y: (-74)\nset [change in y v] to [0]\nset [change in x v] to [0]\nforever\n    Side Collsion\n    Gravity\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        switch costume to (player v)\n        change [change in x v] by (1)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (player v)\n        change [change in x v] by (-1)\n    end\n    set [change in x v] to ((Change in x) * (0.9))\n    change x by (Change in x)\n    if <[235] < (x position)> then\n        set size to (50) %\n        broadcast (next level v)\n    end\n    if <(y position) = [-179]> then\n        set size to (50) %\n        switch costume to (player v)\n        go to x: (-216) y: (-74)\n        set [change in x v] to [0]\n        set [change in y v] to [0]\n        play sound [Crunch v] until done\n    end\nend\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [15]>> then\n    next costume\nend\n\n@Text\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [15]>> then\n    next costume\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (thumbnail v)\ngo to x: (-400) y: (0)\npoint in direction (90)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (thumbnail v)\ngo to x: (-400) y: (0)\npoint in direction (90)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\n    change x by (((0) - (x position)) / (2))\nend\n\n