Moonlight, A Mobile Friendly Platformer
@Stage\n\n@Player\n\nwhen I start as a clone\nswitch costume to (effect v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\ndefine Reset\ngo to x: (-200) y: (-50)\n\nwhen flag clicked\nshow\nReset\nset [level v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(mouse x) > [0]> and <mouse down?>>> then\n        change [xv v] by (1)\n        switch costume to (costume1 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<[0] > (mouse x)> and <mouse down?>>> then\n        change [xv v] by (-1)\n        switch costume to (costume2 v)\n    end\n    set [xv v] to ((xv) * (0.9))\n    change x by (xv)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change x by ((xv) * (-1))\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > [0]> and <mouse down?>>> 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    change [yv v] by (-1)\n    change y by (yv)\n    if <touching (platform v)?> then\n        change y by ((yv) - ((yv) * (2)))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > [0]> and <mouse down?>>> then\n            set [yv v] to [15]\n        end\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [20.5]\n    end\n    change y by (1)\n    if <(y position) < [-172]> then\n        Reset\n    end\n    if <touching (spikes v)?> then\n        Reset\n    end\n    if <touching (lava v)?> then\n        Reset\n    end\n    if <<touching (saw v)?> or <touching (saw2 v)?>> then\n        Reset\n    end\n    if <touching (left v)?> then\n        change [xv v] by (-3)\n    end\n    if <touching (right v)?> then\n        change [xv v] by (3)\n    end\n    if <(x position) > [238]> then\n        change [level v] by (1)\n        Reset\n        broadcast (Cover v)\n    end\nend\n\nwhen [r v] key pressed\nReset\n\nwhen flag clicked\nforever\n    play sound [Dance Energetic v] until done\nend\n\n@Platform\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Trampoline\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Right\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Left\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Lava\n\nwhen flag clicked\ngo to x: (36) y: (30)\nforever\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    repeat (10)\n        change y by (2)\n    end\n    repeat (10)\n        change y by (-2)\n    end\nend\n\n@Thumnail\n\nwhen flag clicked\nhide\n\n@Moon\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nwait (2) seconds\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nwait (2) seconds\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (25)\nforever\n    repeat (100)\n        switch costume to (costume3 v)\n        change size by (0.5)\n        switch costume to (costume2 v)\n    end\n    repeat (100)\n        switch costume to (costume3 v)\n        change size by (-0.5)\n        switch costume to (costume2 v)\n    end\nend\n\n@Cloud\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (0.4) to (1.8)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (40) to (75))\ngo to x: (-242) y: (pick random (28) to (-50))\nforever\n    repeat until <(x position) > [171]>\n        move (pick random (2) to (7)) steps\n    end\n    delete this clone\nend\n\n@Letters\n\nwhen flag clicked\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Particles\n\nwhen flag clicked\nset size to (5) %\nhide\n\nwhen flag clicked\nforever\n    wait (0.5) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to x: (230) y: (pick random (-200) to (200))\npoint in direction (pick random (-105) to (-75))\nset [ghost v] effect to (150)\nrepeat (5)\n    set [ghost v] effect to (-15)\nend\nrepeat until <(x position) < [-230]>\n    move (5) steps\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Advertiser\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (20) to (30)) seconds\n        switch costume to (download \(3\) v)\n        go to x: (100) y: (-300)\n        show\n        go to [front v] layer\n        start sound [Pop v]\n        repeat (9)\n            change y by (4)\n        end\n        repeat (5)\n            change y by (-3)\n        end\n        repeat (5)\n            change y by (1)\n        end\n        wait (2) seconds\n        repeat (10)\n            change y by (-7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Saw\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    turn right (7.5) degrees\nend\n\n@Saw2\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    turn right (7.5) degrees\nend\n\n
- Welcome to a plat former called "Moonlight" \n-Use the W.A.S.D keys or the arrow keys to move and jump\n-This game is also mobile friendly\n-Press R to reset\n\n-This game is also mobile friendly! you can play this game on a iPad or a phone\n\n-Please do not put any hateful comments in the chat, I will delete it if it is rude\n\n-Thank you for understanding