Square - A mobile friendly platformer
@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (Level)\nend\n\n@Square guy\n\nwhen I receive [start v]\npoint in direction (90)\nset size to (30) %\nset [y spawn v] to [-129]\nset [x spawn v] to [-206]\ngo to x: (X Spawn) y: (Y Spawn)\nshow\nset size to (30) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    OOF\nend\n\nwhen I receive [start v]\nhide variable [level v]\nhide variable [x v]\nhide variable [x spawn v]\nhide variable [y v]\nhide variable [y spawn v]\n\nwhen flag clicked\nswitch backdrop to (menu v)\nbroadcast (hide v)\n\nwhen I receive [hide v]\npoint in direction (90)\ngo to x: (-10) y: (-92)\n\nwhen backdrop switches to [backdrop11 v]\nshow\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        wait (0.1) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch backdrop to (backdrop10 v)\n\nwhen I receive [start v]\nswitch backdrop to (backdrop19 v)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [1]> then\n    switch costume to (costume2 v)\nelse\n    if <(costume [name v]) = [costume3]> then\n        switch costume to (costume6 v)\n    else\n        if <(costume [name v]) = [costume1]> then\n            switch costume to (costume7 v)\n        else\n            if <(costume [name v]) = [costume4]> then\n                switch costume to (costume8 v)\n            else\n                switch costume to (costume9 v)\n            end\n        end\n    end\nend\nforever\n    set [ghost v] effect to (10)\n    repeat (10)\n        change size by (-1.5)\n        set [color v] effect to (5)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) > [5]> then\n        switch costume to (1 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (1 v)\n\ndefine OOF\nforever\n    change [y v] by (-0.5)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (0.8)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.8)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> then\n        change y by (1)\n        if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> then\n            change y by (1)\n            if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> then\n                change y by (1)\n                if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> then\n                    change y by (1)\n                    if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> then\n                        change y by (1)\n                    end\n                    if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> then\n                        change y by (-5)\n                        change x by ((X) * (-1))\n                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            set [y v] to [10]\n                            if <(X) > [0]> then\n                                set [x v] to [-5]\n                            else\n                                set [x v] to [5]\n                            end\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y)\n    if <<touching color (#00a16c)?> or <touching color (#00ff4f)?>> 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 (#00a16c)?> or <touching color (#00ff4f)?>> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching (xd v)?> then\n        go to x: (X Spawn) y: (Y Spawn)\n    end\n    if <touching (bouncy v)?> then\n        set [y v] to [14]\n    end\n    if <(x position) > [215]> then\n        change [level v] by (1)\n        go to x: (X Spawn) y: (Y Spawn)\n    end\n    if <touching color (#007dff)?> then\n        go to x: (X Spawn) y: (Y Spawn)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (X Spawn) y: (Y Spawn)\n    end\nend\n\n@Bouncy\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [hide v]\nhide\nstop [this script v]\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@XD\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Play button\n\nwhen this sprite clicked\nbroadcast (Start v)\nhide\n\nwhen flag clicked\nshow\nbroadcast (intro v)\n\n@Thumbnail :)\n\nwhen flag clicked\nhide\n\nforever\n    show\n    hide variable [level v]\n    show\n    go to [front v] layer\n    go to [front v] layer\n    go to x: (0) y: (-19)\n    clear graphic effects\nend\n\n@Sun :D\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\nend\n\n@grass\n\nwhen flag clicked\nforever\n    set size to (50) %\n    go to [back v] layer\nend\n\nwhen I receive [hide v]\nhide\n\n@tree\n\nwhen I receive [start v]\nshow\nhide\nforever\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [hide v]\nhide\n\n
-Arrow keys or AWSD: To move.\n-Space bar: Change skin.\n-Avoid Spikes, Water, and Lava.\n-Trampoline (Yellow): Make you jump higher.\n-There are 16 levels in total.\n-All levels are possible.\n-This platformer is mobile friendly.\n\nI worked hard on this project so, please\nplease drop a ❤️‍ to show your support :))))