sunset a platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Inferno v] until done\nend\n\n@Player\n\nwhen I receive [intro over v]\n\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\n\nbroadcast (new coin v)\n\nchange y by (1)\n\nif <<touching (level v)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [15]\nend\nchange y by (1)\n\nif <touching (level v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-1)\n\nif <(x position) > [200]> then\n    change [level v] by (1)\nend\n\nwhen flag clicked\nswitch costume to (right v)\nshow\ngo to x: (-205) y: (-81)\nset size to (50) %\nchange y by (-1)\n\ngo to x: (-204) y: (-77)\n\nwhen flag clicked\n\ngo to [front v] layer\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.89))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n        end\n        if <touching (level v)?> then\n            change y by (1)\n        end\n        if <touching (level v)?> then\n            change y by (-6)\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change [y v] by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\nend\n\nif <<touching (level v)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [15]\n    change y by (1)\nend\n\nchange y by (-1)\nif <<touching (level v)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [15]\n    change y by (1)\nend\nif <<touching (level v)?> and <key (up arrow v) pressed?>> then\n    change y by (1)\n    set [y v] to [15]\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n    end\nend\n\n\n\nchange y by (-1)\n\nchange y by (1)\n\n\nforever\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\nend\n\ncreate clone of (_myself_ v)\n\nif <<touching (level v)?> and <key (up arrow v) pressed?>> then\nchange y by (1)\nset [y v] to [15]\nif <<touching (level v)?> and <key (up arrow v) pressed?>> then\n    change y by (1)\n    set [y v] to [15]\nend\n\nwhen I receive [intro over v]\nshow\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (start game v)\nbroadcast (reset v)\ngo to [front v] layer\n\ngo to x: (-202) y: (-79)\n\nwhen I receive [start game v]\nforever\n    change [y v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [x v] by (2)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-2)\n    end\n    set [x v] to ((x) * (0.89))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-6)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n            if <(x) > [0]> then\n                set [x v] to [-8]\n            else\n                set [x v] to [8]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [285]> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [reset v]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-205) y: (-81)\n\nwhen I receive [start game v]\nforever\n    if <(x position) > [241]> then\n        set x to (-218)\n        broadcast (next level v)\n        change [level v] by (1)\n    end\n    is stuck in ground\nend\n\ndefine is stuck in ground\nif <touching (level v)?> then\n    repeat (4)\n        change y by (10)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    \nend\n\nwhen I receive [next level v]\ngo to x: (-205) y: (-81)\n\ngo to x: (-153) y: (-80)\n\ngo to x: (-189) y: (-80)\n\nwhen flag clicked\n\nwhen I receive [start game v]\nforever\n    if <touching (danger v)?> then\n        switch costume to (dead v)\n        stop [other scripts in sprite v]\n        repeat (10)\n            change size by (-10)\n            change [ghost v] effect by (15)\n        end\n        broadcast (reset v)\n        broadcast (start game v)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [reset v]\nswitch costume to (right v)\nset [ghost v] effect to (0)\nset size to (50) %\nset [ghost v] effect to (0)\ngo to x: (-205) y: (-80)\ngo to x: (-205) y: (-80)\ngo to x: (-205) y: (-80)\n\nwhen I receive [start game v]\nswitch costume to (right v)\nset size to (50) %\nset [ghost v] effect to (0)\ngo to x: (-205) y: (-80)\ngo to x: (-205) y: (-80)\n\nshow\n\nshow\n\nwhen flag clicked\n\nwhen I receive [reset v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n    end\nend\n\nwhen flag clicked\nforever\n    forever\n        if <(Level) = [7]> then\n            broadcast (black v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen I receive [reset v]\nforever\n    if <(level) = [12]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <(level) = [12]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Level\n\nwhen flag clicked\nshow\ngo to x: (24) y: (29)\n\nwhen flag clicked\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nshow\ngo to x: (24) y: (29)\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen flag clicked\nif <(level) = [14]> then\n    switch backdrop to (backdrop3 v)\nend\n\nwhen I receive [reset v]\nif <(level) = [14]> then\n    switch backdrop to (backdrop3 v)\nend\n\nwhen I receive [start game v]\nif <(level) = [14]> then\n    switch backdrop to (backdrop3 v)\nend\n\nwhen I receive [next level v]\nif <(level) = [14]> then\n    switch backdrop to (backdrop3 v)\nend\n\nwhen flag clicked\nif <(level) = [16]> then\n    switch backdrop to (backdrop4 v)\nend\n\nwhen I receive [reset v]\nif <(level) = [16]> then\n    switch backdrop to (backdrop4 v)\nend\n\nwhen I receive [start game v]\nif <(level) = [16]> then\n    switch backdrop to (backdrop4 v)\nend\n\nwhen I receive [next level v]\nif <(level) = [16]> then\n    switch backdrop to (backdrop4 v)\nend\n\nwhen flag clicked\nif <(level) = [18]> then\n    switch backdrop to (backdrop5 v)\nend\n\nwhen I receive [reset v]\nif <(level) = [18]> then\n    switch backdrop to (backdrop5 v)\nend\n\nwhen I receive [start game v]\nif <(level) = [18]> then\n    switch backdrop to (backdrop5 v)\nend\n\nwhen I receive [next level v]\nif <(level) = [18]> then\n    switch backdrop to (backdrop5 v)\nend\n\n@Danger\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (24) y: (29)\n\nwhen flag clicked\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (24) y: (29)\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nforever\n\nshow\ngo to x: (24) y: (29)\nhide\n\n@Dark cave look\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\ngo to [back v] layer\ngo to x: (31) y: (-6)\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        broadcast (show v)\n    end\n    if <(level) < [7]> then\n        broadcast (hide v)\n    end\n    if <(level) > [7]> then\n        broadcast (hide v)\n    end\n    if <(Level) = [11]> then\n        broadcast (show v)\n        go to x: (31) y: (-6)\n        switch costume to (costume2 v)\n    end\n    if <(Level) > [11]> then\n        broadcast (hide v)\n        if <(Level) < [11]> then\n            broadcast (hide v)\n        end\n    end\nend\n\nhide\n\nwhen I receive [black v]\n\nshow\n\nwhen flag clicked\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        forever\n            show\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        show\n    end\nend\n\nbroadcast (show v)\n\nwhen flag clicked\nforever\n    if <not <(level) = [11]>> then\n        broadcast (hide v)\n    end\nend\n\nshow\n\nwhen flag clicked\nforever\n    if <(level) > [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) < [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(level) = [11]>> then\n        broadcast (hide v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) < [11]> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(level) > [12]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(level) = [12]>> then\n        broadcast (hide v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) < [12]> then\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nforever\n    if <(level) = [19]> then\n        show\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <(level) = [19]> then\n        show\n    end\nend\n\nwhen I receive [reset v]\nforever\n    if <(level) = [19]> then\n        show\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <(level) = [19]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    \nend\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
                         Hello everyone and welcome to \n                      \n                 ⭐⭐⭐ sunset a platformer ⭐⭐⭐\n\n                                             controls\n                                   arrow keys to move \n                                   up arrow key to jump\n      \n                                             Hazards\n\n                                           lava and spikes                            \n\n                                          please ❤ and ⭐\n\n                  