Sketched - A Platformer
@Stage\n\nwhen [s v] key pressed\nbroadcast (NEXT LEVEL v)\n\nwhen [r v] key pressed\nbroadcast (RESET v)\n\n@Thumnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@Player\n\nwhen flag clicked\ngo to x: (-210) y: (0)\npoint in direction (0)\nclear graphic effects\nset size to (100) %\nset [controls v] to [ON]\n\nwhen flag clicked\nforever\n    if <(CONTROLS) = [ON]> then\n        change [y v] by (-1)\n        change y by (Y)\n        if <touching color (#000000)?> then\n            change y by ((Y) * (-1))\n            set [y v] to [0]\n            repeat until <not <(Y) = [0]>>\n                change y by (-1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if  then\n                        set [y v] to [11]\n                    end\n                else\n                    set [y v] to [-1]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [x v] to [0]\nforever\n    if <(CONTROLS) = [ON]> then\n        if < or <key (a v) pressed?>> then\n            change [x v] by (-0.9)\n        end\n        if < or <key (d v) pressed?>> then\n            change [x v] by (0.9)\n        end\n        set [x v] to ((X) * (0.87))\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 (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 (-10)\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                end\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-210) y: (0)\npoint in direction (0)\nclear graphic effects\nset size to (100) %\nset [controls v] to [ON]\n\nwhen I receive [reset v]\ngo to x: (-210) y: (0)\npoint in direction (0)\nclear graphic effects\nset size to (100) %\nset [controls v] to [ON]\n\nwhen I receive [go to door v]\nset [controls v] to [OFF]\nset [x v] to [0]\nset [y v] to [0]\nglide (0.6) secs to x: ([x position v] of [door v]) y: (([y position v] of [door v]) - (6))\n\nwhen flag clicked\nforever\n    if <(y position) < [-200]> then\n        broadcast (RESET v)\n    end\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\nset [brightness v] effect to (10)\nforever\n    if <touching (player v)?> then\n        broadcast (RESET v)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Door\n\nwhen flag clicked\nshow\ngo to [back v] layer\nset [level v] to [1]\nswitch costume to (closed v)\ngo to x: (190) y: (-72)\nforever\n    set [controls v] to [ON]\n    if <touching (player v)?> then\n        set [controls v] to [OFF]\n        switch costume to (open v)\n        broadcast (GO TO DOOR v)\n        wait (0.1) seconds\n        switch costume to (open v)\n        wait (1) seconds\n        switch costume to (closed v)\n        broadcast (NEXT LEVEL v)\n    end\nend\n\nwhen I receive [next level v]\nshow\nchange [level v] by (1)\nif <(LEVEL) = [2]> then\n    go to x: (188) y: (-26)\nelse\n    if <(LEVEL) = [3]> then\n        go to x: (188) y: (10)\n    else\n        if <(LEVEL) = [4]> then\n            go to x: (190) y: (-72)\n        else\n            if <(LEVEL) = [5]> then\n                go to x: (190) y: (-72)\n            else\n                if <(LEVEL) = [6]> then\n                    go to x: (190) y: (-72)\n                else\n                    if <(LEVEL) = [7]> then\n                        go to x: (190) y: (-72)\n                    else\n                        if <(LEVEL) = [8]> then\n                            go to x: (190) y: (-72)\n                        else\n                            if <(LEVEL) = [9]> then\n                                go to x: (190) y: (-72)\n                            else\n                                if <(LEVEL) = [10]> then\n                                    go to x: (190) y: (81)\n                                else\n                                    if <(LEVEL) = [11]> then\n                                        go to x: (190) y: (-5)\n                                    else\n                                        if <(LEVEL) = [12]> then\n                                            go to x: (190) y: (146)\n                                        else\n                                            if <(LEVEL) = [13]> then\n                                                go to x: (168) y: (146)\n                                            else\n                                                if <(LEVEL) = [14]> then\n                                                    go to x: (204) y: (-87)\n                                                else\n                                                    if <(LEVEL) = [15]> then\n                                                        go to x: (204) y: (-87)\n                                                    else\n                                                        if <(LEVEL) = [16]> then\n                                                            go to x: (204) y: (135)\n                                                        else\n                                                            if <(LEVEL) = [17]> then\n                                                                go to x: (204) y: (135)\n                                                            else\n                                                                if <(LEVEL) = [18]> then\n                                                                    go to x: (191) y: (-26)\n                                                                else\n                                                                    if <(LEVEL) = [19]> then\n                                                                        hide\n                                                                    else\n                                                                        hide\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@PEN\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\npen up\nset pen color to (#000000)\nset pen size to (3)\nforever\n    if <[8] < (LEVEL)> then\n        if <(CONTROLS) = [ON]> then\n            if <mouse down?> then\n                go to (mouse-pointer v)\n                pen down\n            else\n                pen up\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\nerase all\n\nwhen I receive [reset v]\nerase all\n\nwhen flag clicked\nerase all\n\n
▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️CONTROLS▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️\nCOMPUTER/KEYBOARD: Arrow Keys or WASD to Move\n▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️▪️\n\n PLEASE ENJOY! On the level with the huge gap, you can start using the pen to draw your own level!\n\nAll Levels are 100% Possible!\n\nNotes:\n\n- R to Reset Pen and bring the player back to the start of the level\n\n- S to skip a level if you can't get past it\n\n- Draw right under the player and draw up to move the player straight up