Sky Pixels - A Platformer
@Stage\n\nwhen I receive [next level v]\nswitch backdrop to (pick random (1) to (4))\n\nwhen flag clicked\nset volume to (100) %\nset [pixelate v] effect to (20)\nforever\n    play sound (pick random (1) to (4)) until done\nend\n\nwhen I receive [unmute v]\nset volume to (100) %\n\nwhen I receive [mute v]\nset volume to (0) %\n\n@player\n\nwhen flag clicked\nset [pixelate v] effect to (0)\nset rotation style [left-right v]\ngo to x: (-115) y: (100)\nshow\nswitch costume to (normal v)\nset size to (75) %\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    change x by (Xv)\n    set [xv v] to ((Xv) * (0.9))\n    if <touching (ground v)?> then\n        change y by (0.5)\n        if <touching (ground v)?> then\n            change y by (0.5)\n            if <touching (ground v)?> then\n                change y by (0.5)\n                if <touching (ground v)?> then\n                    change y by (0.5)\n                    if <touching (ground v)?> then\n                        change y by (0.5)\n                        if <touching (ground v)?> then\n                            change y by (0.5)\n                            if <touching (ground v)?> then\n                                change y by (0.5)\n                                if <touching (ground v)?> then\n                                    change y by (0.5)\n                                    if <touching (ground v)?> then\n                                        if <key (up arrow v) pressed?> then\n                                            if <(Xv) > [0]> then\n                                                set [xv v] to [-7]\n                                            else\n                                                set [xv v] to [7]\n                                            end\n                                            set [yv v] to [10]\n                                        else\n                                            set [xv v] to ((Xv) * (-1.3))\n                                            change x by (Xv)\n                                            set [xv v] to [0]\n                                            change x by ((Xv) / (5))\n                                        end\n                                        change y by (-4)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.5)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        set [yv v] to ((Yv) * (-0.25))\n        change y by (Yv)\n        if <touching (ground v)?> then\n            change y by (Yv)\n            if <touching (ground v)?> then\n                change y by (Yv)\n                if <touching (ground v)?> then\n                    change y by (Yv)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [10]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [next level v]\ngo to x: (-115) y: (100)\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.5)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.5)\n    end\n    if <touching (bottom v)?> then\n        go to x: (-115) y: (100)\n    end\n    if <touching (checkpoint v)?> then\n        broadcast (next level v)\n    end\nend\n\n@ground\n\nwhen flag clicked\nset [pixelate v] effect to (20)\nswitch costume to (grasslands1 v)\n\nwhen I receive [next level v]\nnext costume\nif <(costume [number v]) = [23]> then\n    set [pixelate v] effect to (0)\n    broadcast (end v)\nend\n\nwhen flag clicked\nforever\n    set [ground:costume number v] to (costume [number v])\nend\n\nbroadcast (next level v)\n\n@bottom\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@checkpoint\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@mute/unmute\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    switch costume to (costume2 v)\n    broadcast (mute v)\nelse\n    switch costume to (costume1 v)\n    broadcast (unmute v)\nend\n\nset volume to (0) %\n\nset volume to (100) %\n\n@skip\n\nwhen this sprite clicked\nif <not <(ground:costume number) = [23]>> then\n    broadcast (next level v)\nelse\n    just do nothing\nend\n\ndefine just do nothing\n\nwhen flag clicked\nforever\n    if <(ground:costume number) = [23]> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\n\n@timer\n\nwhen flag clicked\nshow variable [timeshowed v]\nset [time v] to [0]\nforever\n    set [timeshowed v] to (join (time) [ seconds])\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n
TYSM FOR TRENDING!!\n\nmy record is 74 seconds. if you can beat it, follow me to prove it!