Bluey (A Platformer)
@Stage\n\nwhen I receive [cool stuff v]\nstop all sounds\nplay sound [The Spectre v] until done\n\nwhen I receive [sunburst v]\nstop all sounds\nplay sound [Tobu & Itro - Sunburst v] until done\n\nwhen I receive [epic v]\nstop all sounds\nplay sound [TFR-Epic v] until done\n\nwhen I receive [fly away v]\nstop all sounds\nplay sound [TFR-Fly Away v] until done\n\nwhen flag clicked\nplay sound (pick random (1) to (3)) until done\n\nwhen I receive [seventeen v]\nstop all sounds\nplay sound [Seventeen v] until done\n\n@Bluey\n\nwhen flag clicked\ngo to [front v] layer\nset rotation style [left-right v]\nset [level v] to [1]\ngo to x: (-215) y: (-52)\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [x velocity v] by (2)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [x velocity v] by (-2)\n    end\n    change x by (X Velocity)\n    if <touching color (#16c64d)?> then\n        change x by ((X Velocity) * (-1))\n        set [x velocity v] to [0]\n    else\n        set [x velocity v] to ((X Velocity) * (0.7))\n    end\n    change y by (Y Velocity)\n    if <touching color (#16c64d)?> then\n        change y by ((Y Velocity) * (-1))\n        set [y velocity v] to [0]\n        if <(Lock Up) = [0]> then\n            if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                set [y velocity v] to [15]\n                set [lock up v] to [1]\n            end\n        end\n    else\n        change [y velocity v] by (-1)\n        set [lock up v] to [0]\n        if <touching (cookie v)?> then\n            change [level v] by (1)\n            go to x: (-215) y: (-52)\n        end\n    end\n    if <touching color (#ff5353)?> then\n        go to x: (-215) y: (-52)\n    end\n    if <touching color (#f8ff58)?> then\n        change [y velocity v] by (20)\n    end\n    if <(Level) = [13]> then\nend\n\nwhen [r v] key pressed\ngo to x: (-215) y: (-52)\n\nwhen I receive [bluey 2 v]\nswitch costume to (bluey v)\n\nwhen I receive [hat bluey v]\nswitch costume to (hat bluey v)\n\nwhen I receive [flower bluey v]\nswitch costume to (flower bluey v)\n\nwhen I receive [ninja bluey v]\nswitch costume to (ninja bluey v)\n\n@Cookie\n\nwhen flag clicked\ngo to x: (199) y: (-56)\nforever\n    if <<(Level) = [13]> or <(Level) = [15]>> then\n        go to x: (205) y: (125)\n    else\n        go to x: (199) y: (-56)\n    end\n    if <(Level) = [16]> then\n        hide\n    else\n        show\n    end\nend\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\n    if <(Level) = [16]> then\n        hide variable [level v]\n    else\n        show variable [level v]\n    end\nend\n\n@Sounds\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (sounds on v)\ngo to x: (208) y: (162)\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (Sounds v)\n    end\nend\n\nwhen this sprite clicked\nswitch costume to (sounds off v)\nstop all sounds\n\nwhen flag clicked\nplay sound (pick random (1) to (3)) until done\n\nwhen I receive [sounds on v]\nswitch costume to (sounds on v)\n\n@Tobu & Itro-Sunburst\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (210) y: (120)\nhide\n\nwhen I receive [sounds v]\nshow\nwait (2) seconds\nhide\n\nwhen this sprite clicked\nbroadcast (Sunburst v)\nbroadcast (Sounds On v)\n\n@TFR-Epic\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (196) y: (79)\nhide\n\nwhen I receive [sounds v]\nshow\nwait (2) seconds\nhide\n\nwhen this sprite clicked\nbroadcast (Epic v)\nbroadcast (Sounds On v)\n\n@TFR-Fly Away\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (196) y: (35)\nhide\n\nwhen I receive [sounds v]\nshow\nwait (2) seconds\nhide\n\nwhen this sprite clicked\nbroadcast (Fly Away v)\nbroadcast (Sounds On v)\n\n@Cool Stuff\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (210) y: (-12)\nhide\n\nwhen I receive [sounds v]\nshow\nwait (2) seconds\nhide\n\nwhen this sprite clicked\nbroadcast (Cool Stuff v)\nbroadcast (Sounds On v)\n\n@Seventeen\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (210) y: (-55)\nhide\n\nwhen I receive [sounds v]\nshow\nwait (2) seconds\nhide\n\nwhen this sprite clicked\nbroadcast (Seventeen v)\nbroadcast (Sounds On v)\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n
Sooo.... this is my FIRST EVER platformer.\nUse the arrow keys or WASD to move.\nAvoid red.\nYellow is bouncy.\nGet to the cookies.\nPress R to restart.\nPress the Sounds button in the right-hand top-corner to mute the sounds. If you want to pick a sound just drag your mouse over the sounds button and click one of the music to play it.