3D Platformer ✦ Demo v1.91 by TimMcCool


@Stage\n\n@Background\n\nwhen flag clicked\nswitch costume to (thumb3 v)\nshow\ngo to x: (140) y: (-5)\nrepeat (12)\n    go to x: (140) y: (-5)\n    repeat (13)\n        change x by (-10)\n    end\nend\n\nwhen I receive [game v]\nhide\n\nwhen I receive [menu v]\nswitch backdrop to (backdrop1 v)\nshow\nstop [other scripts in sprite v]\nswitch costume to (background v)\ngo to x: (0) y: (0)\n\nwhen I receive [back to menu v]\nshow\nswitch costume to (background v)\ngo to x: (0) y: (0)\n\n@Circles\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to x: (0) y: (0)\nswitch costume to (animation v)\nwait (1.4) seconds\nrepeat (6)\n    create clone of (_myself_ v)\n    wait (0.6) seconds\n    next costume\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nrepeat (100)\n    change size by (10)\n    change [ghost v] effect by (2)\nend\ndelete this clone\n\n@Emblem\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\npoint in direction (75)\nshow\nset [counter v] to [3]\nrepeat (15)\n    turn right (1) degrees\n    change size by (Counter)\n    change [counter v] by (-1)\nend\nset [counter v] to [1]\nrepeat (12)\n    change [counter v] by (2)\n    turn right (2) degrees\n    change size by (Counter)\nend\nwait (0.3) seconds\nset [counter v] to [1]\nrepeat (15)\n    turn right (-3) degrees\n    change [counter v] by (-2)\n    change size by (Counter)\nend\nhide\n\n@Cover\n\nwhen flag clicked\nswitch costume to (costume3 v)\nset [brightness v] effect to (0)\ngo to x: (0) y: (366)\ngo to [front v] layer\nhide\nwait (5) seconds\nshow\nset [counter2 v] to [-2]\nrepeat (17)\n    change y by (Counter2)\n    change [counter2 v] by (-4)\nend\nbroadcast (Menu v)\nwait (0.5) seconds\nset [counter2 v] to [2]\nswitch costume to (costume4 v)\nrepeat (17)\n    change y by (Counter2)\n    change [counter2 v] by (4)\nend\nhide\n\nwhen flag clicked\nset volume to (40) %\nwait (5.4) seconds\nset [counter v] to [-2]\nrepeat (14)\n    change [brightness v] effect by (Counter)\n    change [counter v] by (-1)\n    change volume by ((Counter) + (2))\nend\nstop all sounds\n\nwhen flag clicked\nplay sound [MDK - Super Ultra \[320kbps\].mp3 v] until done\n\nwhen flag clicked\nwait (5) seconds\nrepeat (20)\n    change volume by (-5)\nend\n\nwhen I receive [cover v]\nshow\nset [counter2 v] to [-2]\nswitch costume to (costume3 v)\nrepeat (17)\n    change y by (Counter2)\n    change [counter2 v] by (-4)\nend\nwait (1) seconds\nset [counter2 v] to [2]\nswitch costume to (costume4 v)\nrepeat (17)\n    change y by (Counter2)\n    change [counter2 v] by (4)\nend\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Button\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nhide\n\nwhen I receive [menu v]\nset [start v] to [False]\nshow\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (0) y: (-40)\nswitch costume to (button_start v)\nset size to (100) %\nset [counter v] to [0]\nwait (1) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        set [counter v] to [0]\n        repeat (6)\n            change [counter v] by (1)\n            change size by (Counter)\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        set [counter v] to [0]\n        repeat (6)\n            change [counter v] by (-1)\n            change size by (Counter)\n        end\n    end\nend\n\nwhen I start as a clone\npoint in direction (90)\ngo to x: (0) y: (60)\nswitch costume to (title2 v)\nforever\n    if <(Start) = [True]> then\n        stop all sounds\n        delete this clone\n    end\nend\n\nwhen I receive [menu v]\nforever\n    if <(Start) = [True]> then\n        hide\n        play sound [738335_Canonblade---Debug.mp3 v] until done\n    end\nend\n\nwhen I receive [menu v]\nset size to (100) %\nset [counter v] to [0]\nforever\n    if <<(Start) = [False]> and <<touching (mouse-pointer v)?> and <mouse down?>>> then\n        set [start v] to [True]\n        broadcast (Cover v)\n        wait (0.5) seconds\n        switch backdrop to (background v)\n        broadcast (Game v)\n        hide\n    end\nend\n\nwhen I receive [menu v]\nwait (1) seconds\nplay sound [738335_Canonblade---Debug.mp3 v] until done\n\nwhen I receive [menu v]\nset volume to (0) %\nwait (2) seconds\nrepeat (8)\n    wait (0.1) seconds\n    change volume by (10)\nend\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [game v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (Level)\n    if <(Level) = [17]> then\n        broadcast (cover v)\n        wait (0.5) seconds\n        broadcast (back to menu v)\n    end\nend\n\nwhen I receive [menu v]\nset [level v] to [1]\nswitch costume to (Level)\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\nbroadcast (menu v)\n\n@You\n\nwhen flag clicked\nhide\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\n\ndefine Reset\nset [touched v] to [False]\nset [button pressed? v] to [False]\ngo to x: (-213) y: (-11)\nset [x v] to [0]\nset [y v] to [0]\nset [movement v] to [False]\nwait (0.3) seconds\nset [movement v] to [True]\n\nwhen I receive [game v]\nset [movement v] to [False]\nwait (1.5) seconds\nset [movement v] to [True]\ngo to x: (-213) y: (-11)\nshow\nset [y v] to [0]\nset [x v] to [0]\nset size to (100) %\nforever\n    change [y v] by (-0.5)\n    if <(Movement) = [True]> then\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x v] by (1)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x v] by (-1)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#666666)?> then\n        change y by (1)\n        if <touching color (#666666)?> then\n            change y by (1)\n            if <touching color (#666666)?> then\n                change y by (1)\n                if <touching color (#666666)?> then\n                    change y by (1)\n                    if <touching color (#666666)?> then\n                        change y by (1)\n                        if <touching color (#666666)?> then\n                            change y by (1)\n                            if <touching color (#666666)?> then\n                                change y by (-6)\n                                if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                    set [y v] to [10]\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 (#666666)?> 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 (#666666)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [y v] to [8.5]\n    end\n    change y by (0.5)\nend\n\nwhen I receive [game v]\nset [level v] to [1]\nforever\n    if <<(x position) > [232]> or <key (n v) pressed?>> then\n        change [level v] by (1)\n        Reset\n    end\n    if <<<touching color (#cc0000)?> or <key (r v) pressed?>> or <touching (lazers v)?>> then\n        Reset\n    end\n    if <touching color (#6600cc)?> then\n        set [y v] to [12]\n    end\nend\n\n@Lazers\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [game v]\nshow\nforever\n    switch costume to (Level)\n    if <(Button Pressed?) = [True]> then\n        hide\n    else\n        show\n        if <(Level) = [6]> then\n            set [ghost v] effect to (100)\n        else\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\n\n@LevelButton\n\nwhen I receive [game v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [game v]\nforever\n    if <touching (you v)?> then\n        set [button pressed? v] to [True]\n        set y to (-2)\n        wait until <not <touching (you v)?>>\n        set y to (2)\n        set [touched v] to [True]\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (Level)\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game v]\nforever\n    if <<not <touching (you v)?>> and <(Touched) = [True]>> then\n        wait (6) seconds\n        set [button pressed? v] to [False]\n        set [touched v] to [False]\n    end\nend\n\n@LevelNumbers\n\nwhen flag clicked\nhide\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game v]\nswitch costume to (10 v)\ngo to x: (-183) y: (166)\nshow\ncreate clone of (_myself_ v)\nchange x by (13)\nforever\n    if <(letter (2) of (Level)) = []> then\n        hide\n    else\n        show\n    end\n    switch costume to ((letter (2) of (Level)) + (1))\nend\n\nwhen I start as a clone\nforever\n    if <(letter (1) of (Level)) = []> then\n        hide\n    else\n        show\n    end\n    switch costume to ((letter (1) of (Level)) + (1))\nend\n\n@Level Print\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game v]\nshow\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\n\n@Lazers2\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [back to menu v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game v]\nshow\nforever\n    switch costume to (Level)\n    show\n    wait (1) seconds\n    hide\n    wait (1) seconds\nend\n\n@Thumb\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Secret Troll\n\nwhen flag clicked\nswitch costume to (nothing v)\nhide\n\nwhen I receive [game v]\nforever\n    if <(Level) = [6]> then\n        go to x: (0) y: (0)\n        show\n    else\n        hide\n        go to x: (0) y: (180)\n    end\nend\n\nwhen I receive [game v]\nforever\n    if <touching (you v)?> then\n        switch costume to (costume2 v)\n    end\nend\n\n