Shadows- A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nset [sanitizer collected: v] to [0]\nforever\n    switch costume to (Level)\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nset [total level count v] to [15]\nshow\n\nwhen flag clicked\nset [spawn x v] to [-214]\nset [spawn y v] to [-90]\n\ndefine Sense Hazard\nif <touching color (#ff1717)?> then\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    go to x: (Spawn X) y: (Spawn Y)\nend\n\nwhen flag clicked\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (Spawn X) y: (Spawn Y)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((X velocity) * (0.9))\n    change x by (X velocity)\n    if <touching (level v)?> then\n        Sense Hazard\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((X velocity) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(X velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [5]\n                                end\n                                set [y velocity v] to [10]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y velocity)\n    if <touching (level v)?> then\n        Sense Hazard\n        change y by ((Y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        Sense Hazard\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (Spawn X) y: (Spawn Y)\n    end\n    if <(y position) < [-184]> then\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (Spawn X) y: (Spawn Y)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
This platformer was made to be fun, not challenging, so it might be super easy. \n\nSTORY||\n- You are a cube\n- you are in a realm of darkness\n- Get to the end to restore the light!