Hundreds | a platformer
@Stage\n\nwhen flag clicked\nset [music v] to [1]\nswitch backdrop to (backdrop2 v)\nset [choose: v] to [0]\n\nwhen I receive [intro finished v]\nset [music v] to [1]\nswitch backdrop to (backdrop1 v)\nforever\n    if <(Choose:) = [1]> then\n        play sound (join [Main ] (join [Song ] (Music))) until done\n    else\n        play sound (join [Main ] (join [Song ] (Music))) until done\n        change [music v] by (1)\n        if <(Music) = [6]> then\n            set [music v] to [1]\n        end\n    end\nend\n\nwhen [m v] key pressed\nchange [music v] by (1)\nset [choose: v] to [1]\nstop all sounds\n\nwhen flag clicked\nforever\n    if <(Music) = [7]> then\n        set [music v] to [1]\n    end\nend\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [intro finished v]\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (2) layers\n\nwhen I receive [next level v]\nnext costume\n\nwhen [space v] key pressed\nbroadcast (Next level v)\n\nwhen [timer v] > (0.1)\nhide\n\n@Intro/Thumbnail\n\nwhen flag clicked\nswitch costume to (coollogo_com-80311213 v)\n\nwhen flag clicked\nshow\ncreate clone of (_myself_ v)\ngo to x: (0) y: (240)\nhide\n\ndefine shrink in\ngo to x: (0) y: (0)\nset size to (175) %\nset [ghost v] effect to (100)\nrepeat (50)\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (-5)\nend\n\ndefine clean up\nclear graphic effects\nshow\ngo to x: (0) y: (0)\nset size to (100) %\n\ndefine spin in\nset size to (0) %\npoint in direction (0)\nset [ghost v] effect to (100)\nrepeat (10)\n    turn right ((3.45) - ((direction) * (-0.2))) degrees\n    change size by ((22) - ((size) / (5)))\n    change [ghost v] effect by (-10)\nend\npoint in direction (90)\n\ndefine fade in and glide in (from left)\nshow\nset [ghost v] effect to (100)\ngo to x: (-180) y: (0)\nrepeat (9)\n    change x by ((5) - ((x position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\ngo to x: (0) y: (0)\n\ndefine fade in and glide in (from bottom)\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (-190)\nrepeat (10)\n    change y by ((5) - ((y position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\n\ndefine big then small\nset [xonic size v] to [0]\nwait (0.4) seconds\nrepeat (10)\n    change [xonic size v] by (1)\n    change size by (xonic size)\nend\nset [xonic size v] to [0]\nrepeat (8)\n    change [xonic size v] by (-5)\n    change [ghost v] effect by (10)\n    change size by (xonic size)\nend\nhide\n\ndefine spin out\nrepeat (10)\n    turn right ((3.45) - ((direction) * (0.2))) degrees\n    change size by ((-2) - ((size) / (5)))\n    change [ghost v] effect by (10)\nend\nhide\npoint in direction (90)\n\ndefine fade in and glide in (from right)\nshow\nset [ghost v] effect to (100)\ngo to x: (180) y: (0)\nrepeat (9)\n    change x by ((-5) - ((x position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\ngo to x: (0) y: (0)\n\ndefine grow in\nshow\nset [ghost v] effect to (100)\nset size to (0) %\nrepeat (10)\n    change size by ((22) - ((size) / (5)))\n    change [ghost v] effect by (-10)\nend\nset size to (100) %\n\ndefine fade in and glide in (from top)\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (190)\nrepeat (10)\n    change y by ((-5) - ((y position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\n\ndefine Play intro: Come in (come in) Wait (seconds) Seconds: Come out (come out)\nclean up\nset [come out v] to (come out)\nset [come in v] to (come in)\nif <(come in) = [1]> then\n    fade in and glide in (from top)\nend\nif <(come in) = [2]> then\n    fade in and glide in (from bottom)\nend\nif <(come in) = [3]> then\n    fade in and glide in (from left)\nend\nif <(come in) = [4]> then\n    fade in and glide in (from right)\nend\nif <(come in) = [5]> then\n    shrink in\nend\nif <(come in) = [6]> then\n    grow in\nend\nif <(come in) = [7]> then\n    spin in\nend\nif <(come in) = [8]> then\n    fade, glide and grow\nend\nif <(come in) = [9]> then\nwait (seconds) seconds\nif <(come out) = [6]> then\n    small fade\nend\nif <(come out) = [7]> then\n    up and down\nend\nif <(come out) = [8]> then\n    big then small\nend\nif <(come out) = [9]> then\n    spin out\nend\n\ndefine fade, glide and grow\ngo to x: (0) y: (-180)\nset size to (1) %\nset [ghost v] effect to (100)\nrepeat (25)\n    change y by (((0) - (y position)) * (0.25))\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (-10)\nend\n\ndefine up and down\nrepeat (10)\n    change y by ((5) - ((y position) * (0.2)))\n    change [ghost v] effect by (2.5)\nend\nrepeat (30)\n    change y by (((5) - ((y position) * (0.2))) * (-1))\n    change [ghost v] effect by (3)\nend\n\ndefine small fade\nrepeat (10)\n    change y by ((-5) - ((y position) * (0.2)))\n    change [ghost v] effect by (10)\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nset size to (100) %\nforever\n    go to [front v] layer\n    switch costume to (costume3 v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (coollogo_com-80311213 v)\nstart sound [Purple Planet Music - Logos - Transmission Logo \(0_11\)2 v]\nPlay intro: Come in (shrink in) Wait [1] Seconds: Come out (up and down)\nhide\nbroadcast (Intro Finished v)\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nshow\nforever\n    play sound [Alan Walker - Faded \(Instrumental Version\) v] until done\nend\n\nwhen [timer v] > (0.1)\nglide (0.2) secs to x: (0) y: (-50)\nglide (0.2) secs to x: (0) y: (25)\nglide (0.2) secs to x: (0) y: (0)\nforever\n    reset timer\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <(x position) > [235]> then\n        broadcast (Next level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff6666)?> then\n        point in direction (90)\n        create clone of (_myself_ v)\n        go to x: (-240) y: (-120)\n        set [ghost v] effect to (0)\n        set [yvelocity v] to [0]\n        broadcast (XD v)\n    end\nend\n\nwhen I receive [intro finished v]\nshow\nset [ghost v] effect to (0)\npoint in direction (90)\nswitch costume to (player v)\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\ngo to x: (-240) y: (-120)\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        switch costume to (player2 v)\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (player v)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    change x by ((x) * (-1))\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#66c0ff)?> then\n        set [ghost v] effect to (50)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [5]\n        else\n            if <key (down arrow v) pressed?> then\n                set [y v] to [-5]\n            else\n                set [y v] to [-1]\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-240) y: (-120)\n\nwhen flag clicked\nforever\n    if <touching color (#001966)?> then\n        change x by (-25)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffdc66)?> then\n        change x by (25)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#660000)?> then\n        set [y v] to [10]\n        wait (0.01) seconds\n        set [y v] to [-10]\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#66004c)?> then\n        if <(backdrop [name v]) = [Lv74]> then\n            go to x: (240) y: (22)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        set [y v] to [-15]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#ffb866)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen I start as a clone\nset [turn v] to (pick random (-3) to (5))\nset size to (pick random (35) to (50)) %\ngo [backward v] (50) layers\nshow\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [20]\nend\nrepeat (50)\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\n    change [ghost v] effect by (2)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <not <touching color (#66c0ff)?>> then\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#b6b6b6)?> then\n        point in direction (90)\n        create clone of (_myself_ v)\n        go to x: (-240) y: (-120)\n        set [ghost v] effect to (0)\n        set [yvelocity v] to [0]\n        broadcast (XD v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-175]> then\n        point in direction (90)\n        create clone of (_myself_ v)\n        go to x: (-240) y: (-120)\n        set [ghost v] effect to (0)\n        set [yvelocity v] to [0]\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\n\n