Autumn - A platformer
@Stage\n\n@Player\n\ndefine Tick\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1)\nend\nchange x by (xv)\nset [xv v] to ((xv) * (0.9))\nif <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 x by ((xv) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <touching color (#000000)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <key (up arrow v) pressed?> then\n    if <touching color (#000000)?> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [tick v]\nTick\n\nwhen [right arrow v] key pressed\nswitch costume to (player\(costume1\) v)\n\nwhen [left arrow v] key pressed\nswitch costume to (player\(costume2\) v)\n\nwhen flag clicked\nforever\n    if <(x position) > [265]> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (player\(costume1\) v)\ngo to x: (-162) y: (1)\n\nwhen I receive [start level v]\ngo to x: (-200) y: (1)\n\nwhen flag clicked\nforever\n    if <touching color (#656565)?> then\n        broadcast (Start Level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (teleport v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        say [Thanks for playing!!] for (3) seconds\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nif <(Level) = [1]> then\n    say [Hello!] for (2) seconds\n    say [I love autumn because of the beautiful red evening skies] for (4) seconds\nend\n\n@Level\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\nbroadcast (Start Level v)\n\nwhen flag clicked\nswitch costume to (lvl.1 v)\n\nshow\n\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nshow\n\n@teleport\n\n
We all know: ⬅️⬆️➡️