-QuaXX- A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next level v]\nnext backdrop\n\n@HELLO\n\nwhen I receive [next level v]\nif <not <(LEVEL) = [14]>> then\n    go to [front v] layer\n    set y to (400)\n    show\n    set [slide v] to [-27]\n    repeat (20)\n        change y by (-17)\n    end\n    wait (0.01) seconds\n    repeat (12)\n        change y by (20)\n    end\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nplay sound [Coin v] until done\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@THERE!\n\nwhen flag clicked\ngo to x: (0) y: (-90)\nhide\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [6]> then\n        show\n        Moving Platforms\n    else\n        if <(LEVEL) = [7]> then\n            go to x: (-75) y: (-90)\n            show\n            Moving Gears\n        end\n        if <(LEVEL) = [9]> then\n            go to x: (-75) y: (65)\n            show\n            Moving Gears\n        end\n        hide\n    end\nend\n\ndefine Moving Platforms\ngo to [back v] layer\nturn right (15) degrees\n\ndefine Moving Gears\nrepeat (30)\n    change x by (5)\nend\nwait (1) seconds\nrepeat (30)\n    change x by (-5)\nend\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        Moving Platforms\n    end\n    if <(LEVEL) = [9]> then\n        Moving Platforms\n    end\nend\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@MAYBE\n\nwhen flag clicked\n\nforever\n    if <touching (and v)?> then\n        switch costume to (kostüm2 v)\n        wait (0.15) seconds\n    else\n        switch costume to (kostüm1 v)\n    end\nend\n\nwhen flag clicked\n\nforever\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (-2) y: (-53)\n    else\n        if <(LEVEL) = [7]> then\n            go to x: (-191) y: (-52)\n            show\n        end\n    end\nend\n\nwhen flag clicked\n\nforever\n    if <not <<(LEVEL) = [4]> or <(LEVEL) = [7]>>> then\n        hide\n    end\nend\n\nhide\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@GIVE\n\nwhen flag clicked\ngo to x: (35) y: (20)\ngo to [back v] layer\nforever\n    repeat (10)\n        change y by (-1)\n    end\n    repeat (10)\n        change y by (1)\n    end\nend\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@A\n\nwhen flag clicked\nshow\nswitch costume to (level 1-1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\nif <(costume [name v]) = [costume8]> then\n    set [costumename v] to [8]\n    broadcast (Right v)\nend\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@LOVE\n\nwhen flag clicked\nhide\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (50))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (2.5)\n        end\n        hide\n        wait (pick random (2) to (7)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (-3.5)\n        end\n        hide\n        wait (pick random (3) to (5)) seconds\n    end\nend\n\n@FAV\n\nset [level v] to [6]\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@AND\n\nbroadcast (LEVEL UP! v)\nhide\nchange [coins v] by (1)\ngo to x: (-200) y: (0)\nwait (1.1) seconds\ngo to x: (-200) y: (0)\nshow\n\nbroadcast (LEVEL UP! v)\nhide\nchange [coins v] by (1)\ngo to x: (-200) y: (0)\nwait (1.1) seconds\ngo to x: (-200) y: (0)\nshow\n\nbroadcast (LEVEL UP! v)\nhide\nchange [coins v] by (1)\ngo to x: (-200) y: (0)\nwait (1.1) seconds\ngo to x: (-200) y: (0)\nshow\n\nbroadcast (LEVEL UP! v)\nhide\nchange [coins v] by (1)\ngo to x: (-200) y: (0)\nwait (1.1) seconds\ngo to x: (-200) y: (0)\nshow\n\ndefine Physics\ngo [forward v] (1000000) layers\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    point in direction (90)\n    change [xmovement v] by (2)\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (90)\n        change [xmovement v] by (-2)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <<touching (fav v)?> or <touching (there! v)?>> then\n    change y by (1)\nend\nif <<touching (fav v)?> or <touching (there! v)?>> then\n    change y by (1)\nend\nif <<touching (fav v)?> or <touching (there! v)?>> then\n    change y by (1)\nend\nif <<touching (fav v)?> or <touching (there! v)?>> then\n    change y by (1)\nend\nif <<touching (fav v)?> or <touching (there! v)?>> then\n    change x by ((Xmovement) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n        set [yv v] to [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <<touching (fav v)?> or <touching (there! v)?>> then\n    change y by ((Yv) - ((Yv) * (2)))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <(x position) > [220]> then\n    broadcast (next level v)\n    show\n    change [level v] by (1)\n    go to x: (-211) y: (-7)\nend\nif <<touching (a v)?> or <touching (there! v)?>> then\n    broadcast (red v)\n    go to x: (-211) y: (-7)\n    start sound [Break Brick v]\nend\nif <touching (maybe v)?> then\n    set [yv v] to [20]\n    start sound [Drum Boing v]\nend\n\nwhen flag clicked\nset [level v] to [1]\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\ngo [forward v] (10) layers\npoint in direction (90)\ngo to x: (-211) y: (-7)\nforever\n    Physics\nend\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n        set [yv v] to [19]\n    end\n    if <(Yv) > [7]> then\n        repeat until <(Yv) = [0]>\n            change y by (-1)\n        end\n    end\nend\n\nwhen I receive [restart v]\n\nwhen I receive [left v]\npoint in direction (-90)\nrepeat (2)\n    change [xmovement v] by (-2)\nend\n\nwhen I receive [right v]\npoint in direction (90)\nrepeat (2)\n    change [xmovement v] by (2)\nend\n\nwhen I receive [up v]\nset [yv v] to [17]\nforever\n    if <(Yv) > [7]> then\n        repeat until <(Yv) = [0]>\n            change y by (-1)\n        end\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-211) y: (-7)\n\nwhen [s v] key pressed\nbroadcast (next level v)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen [up arrow v] key pressed\nplay sound [Jump v] until done\n\nwhen flag clicked\nswitch costume to (logo v)\nforever\n    if <(LEVEL) = [14]> then\n        broadcast (checkpoint v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [JJD - Adventure \[NCS Release\] v] until done\nend\n\nwhen I receive [red v]\nswitch costume to (costume1 v)\nwait (0.3) seconds\nswitch costume to (logo v)\n\nwhen I receive [up v]\nforever\n    say (join (join (join (join [Your time was ] (timer)) [ secs and you lost ]) (lost)) [ times!])\nend\n\nwhen I receive [checkpoint v]\nforever\n    change [ghost v] effect by (10)\nend\n\n@FOLLOW?\n\nwhen I receive [red v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [costumename v] to [0]\nset [timer v] to [0]\nset [lost v] to [0]\ngo [forward v] (100000000) layers\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [red v]\nchange [lost v] by (1)\n\nwhen I receive [right v]\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    wait (1) seconds\n    change [timer v] by (1)\n    if <(costumename) = [8]> then\n        broadcast (Up v)\n        stop [this script v]\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n
ᴛʜᴀɴᴋ ʏᴏᴜ ɢᴜʏꜱ ꜱᴏ ᴍᴜᴄʜ ꜰᴏʀ 1ᴋ ꜰᴏʟʟᴏᴡᴇʀꜱ! :) ᴡᴀɴᴛ ᴛᴏ ᴘᴀʀᴛɪᴄɪᴘᴀᴛᴇ ɪɴ ᴍʏ ɪɴᴛʀᴏ ᴄᴏɴᴛᴇꜱᴛ?\nhttps://scratch.mit.edu/projects/411640812/\n\n--------------------------------------------------------------\n2ɴᴅ ᴘʟᴀᴛꜰᴏʀᴍᴇʀ ɪɴ ᴛʜᴇ ʙɪᴏ ꜱᴇʀɪᴇꜱ ɪꜱꜱꜱꜱꜱꜱ ᴏᴜᴛ!!! ᴄʜᴇᴄᴋ ɪᴛ ᴏᴜᴛ, ᴀɴᴅ ᴍᴀʏʙᴇ ɢɪᴠᴇ ᴀ ʜᴇᴀʀᴛ, ꜱᴛᴀʀ, ᴀɴᴅ ꜰᴏʟʟᴏᴡ!\n\nꜰᴇᴀᴛᴜʀᴇꜱ ɪɴᴄʟᴜᴅᴇ:\n- ᴛʜᴇ ɴᴏʀᴍᴀʟ ꜱᴛᴜꜰꜰ\n- ʙɪᴏ ᴀʙᴏᴜᴛ @QuaXX\n- ᴍᴏᴠɪɴɢ ɢᴇᴀʀꜱ\n- ᴅᴇꜱᴇʀᴛ ꜱᴛʏʟᴇ ᴀʀᴛ\n- ᴄᴏᴏʟ ꜱᴏᴜɴᴅ ᴇꜰꜰᴇᴄᴛꜱ\n- ᴛɪᴍᴇ ᴀɴᴅ ɴᴏ. ᴏꜰ ᴅᴇᴀᴛʜꜱ\n- ᴘʟᴀʏ ᴛʜᴇ ɢᴀᴍᴇ ᴛᴏ ꜱᴇᴇ ᴛʜᴇ ʀᴇꜱꜱꜱꜱᴛ!!! =ᴅ\n\n\nᴘʟᴀᴛꜰᴏʀᴍɪɴɢ ᴇɴɢɪɴᴇ ʙʏ @griffpatch!\nᴄʟᴏᴜᴅꜱ ᴀɴᴅ ᴛʀᴀᴍᴘꜱ ʙʏ @Benelem12!\nɢᴇᴀʀ ᴀʀᴛ ʙʏ @QuaXX!\nᴇᴠᴇʀʏᴛʜɪɴɢ ᴇʟꜱᴇ ʙʏ @Lazy_Coder02!\n\n-@awesomebricks1\nhttps://scratch.mit.edu/projects/406329562/\n\n*ᴄʟɪᴄᴋ ꜱᴇᴇ ɪɴꜱɪᴅᴇ! ʏᴏᴜ'ʟʟ ꜱᴇᴇ ᴡʜʏ :)\n*ᴘʟᴀʏ ᴛɪʟʟ ᴛʜᴇ ᴇɴᴅ ꜰᴏʀ ʏᴏᴜʀ ᴛɪᴍᴇ ᴀɴᴅ ɴᴏ. ᴏꜰ ᴅᴇᴀᴛʜꜱ ᴀɴᴅ ᴍᴇɴᴛɪᴏɴ ɪᴛ ɪɴ ᴛʜᴇ ᴄᴏᴍᴍᴇɴᴛꜱ! :)