☁ 360° Scrolling Platformer✨ || #Games #All #Musics #Art
@Stage\n\nwhen flag clicked\nswitch backdrop to (menu v)\n\nwhen I receive [start v]\nswitch backdrop to (game backdrop v)\n\nwhen flag clicked\nstop all sounds\n\nwhen I receive [start v]\nset volume to (50) %\nforever\n    if <(background_music) = [1]> then\n        play sound [3 v] until done\n        wait (1) seconds\n        play sound [2 v] until done\n        wait (1) seconds\n        play sound [1 v] until done\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nhide variable [sn v]\n\nwhen I receive [start v]\nset [sn v] to [21]\nrepeat until <(sn) = [0]>\n    wait (1) seconds\n    change [sn v] by (-1)\nend\n\nwhen I receive [respawn v]\nset [sn v] to [21]\n\n@Level\n\ndefine Become big (size)\nswitch costume to (size hack v)\nset size to (size) %\nswitch costume to (map v)\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\n\nwhen I receive [start v]\nshow\nbroadcast (Respawn v)\nBecome big [200]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [d vel v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [d vel v] by (0.2)\n    end\n    set [d vel v] to ((D vel) * (0.8))\n    turn right (D vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((D vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y vel)\n    if <touching (player v)?> then\n        change y by ((Y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(music_effects) = [1]> then\n                start sound [Jump v]\n            end\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [finish v]\nhide\nstop [this script v]\n\n@Player\n\nwhen I receive [respawn v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nshow\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (2 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (3 v)\n    end\n    if <not <key (any v) pressed?>> then\n        switch costume to (1 v)\n    end\n    if <<<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> or <<key (a v) pressed?> and <key (w v) pressed?>>> then\n        switch costume to (4 v)\n    end\n    if <<<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> or <<key (d v) pressed?> and <key (w v) pressed?>>> then\n        switch costume to (5 v)\n    end\nend\n\nwhen I receive [start v]\nwait (3) seconds\nforever\n    change y by (-5)\n    if <<touching color (#ff0000)?> or <touching color (#670000)?>> then\n        broadcast (Respawn v)\n    end\n    change y by (5)\nend\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide variable [play v]\nset [play v] to [0]\n\nwhen I receive [start v]\nset [play v] to [1]\n\nwhen flag clicked\nset [finish_settings v] to [0]\nhide variable [finish_settings v]\nforever\n    if <(finish_settings) = [0]> then\n        if <touching color (#549a10)?> then\n            broadcast (finish v)\n            hide\n            set [finish_settings v] to [1]\n            change [☁ winners v] by (1)\n        else\n            hide variable [☁ winners v]\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    wait until <(sn) = [0]>\n    set drag mode [draggable v]\nend\n\nwhen flag clicked\nset drag mode [not draggable v]\n\nwhen I receive [finish v]\nforever\n    hide\n    stop [this script v]\nend\n\nwhen I receive [respawn v]\nset drag mode [not draggable v]\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    show\nend\n\n@Start\n\nwhen flag clicked\nset size to (120) %\ngo to [front v] layer\nshow\nforever\n    go to x: (35) y: (0)\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (130) %\n    else\n        set size to (120) %\n    end\nend\n\nwhen this sprite clicked\nhide\nbroadcast (start v)\n\nwhen I receive [? v]\nhide\n\nwhen I receive [back v]\nshow\n\n@?\n\nwhen flag clicked\ngo to x: (145) y: (0)\nswitch costume to (? v)\nset size to (55) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (60) %\n    else\n        set size to (55) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (? v)\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen flag clicked\nforever\n    go to x: (145) y: (0)\nend\n\n@Background music\n\nwhen flag clicked\nswitch costume to (background music open v)\nset [background_music v] to [1]\nset size to (100) %\ngo to [front v] layer\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (105) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nif <(background_music) = [1]> then\n    set [background_music v] to [2]\n    switch costume to (background music close v)\nelse\n    if <(background_music) = [2]> then\n        set [background_music v] to [1]\n        switch costume to (background music open v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (40) y: (-66)\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [? v]\nhide\n\nwhen I receive [back v]\nshow\n\n@Music Effects (Player)\n\nwhen flag clicked\nswitch costume to (music effects \(player\) open v)\nset [music_effects v] to [1]\nset size to (100) %\ngo to [front v] layer\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (105) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nif <(music_effects) = [1]> then\n    set [music_effects v] to [2]\n    switch costume to (music effects \(player\)close v)\nelse\n    if <(music_effects) = [2]> then\n        set [music_effects v] to [1]\n        switch costume to (music effects \(player\) open v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (40) y: (-140)\nend\n\nwhen flag clicked\nhide variable [music_effects v]\nhide variable [background_music v]\n\nwhen I receive [start v]\nhide\n\nwhen I receive [? v]\nhide\n\nwhen I receive [back v]\nshow\n\n@Start-Man\n\nwhen flag clicked\ngo to x: (-202) y: (-46)\nswitch costume to (1 v)\nshow\nforever\n    wait (2) seconds\n    next costume\nend\n\nwhen I receive [start v]\nhide\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        think [Let's Play!] for (.1) seconds\n    end\nend\n\nwhen I receive [? v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen flag clicked\nforever\n    go to x: (-202) y: (-46)\nend\n\n@SCORE-1\n\nwhen I receive [finish v]\nshow\ngo to [front v] layer\nswitch costume to (letter (length of (☁ winners)) of (☁ winners))\n\nwhen I receive [finish v]\nforever\n    go to x: (-34) y: (20)\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nbroadcast (finish v)\n\n@SCORE-11\n\nwhen I receive [finish v]\nif <(length of (☁ winners)) > [1]> then\n    show\n    go to [front v] layer\nelse\n    hide\nend\nswitch costume to (letter ((length of (☁ winners)) - (1)) of (☁ winners))\n\nwhen I receive [finish v]\nforever\n    go to x: (-2) y: (20)\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\n@SCORE-111\n\nwhen I receive [finish v]\nif <(length of (☁ winners)) > [2]> then\n    show\n    go to [front v] layer\nelse\n    hide\nend\nswitch costume to (letter ((length of (☁ winners)) - (1)) of (☁ winners))\n\nwhen I receive [finish v]\nforever\n    go to x: (31) y: (20)\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\n@?text?\n\nwhen flag clicked\nhide\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [? v]\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\nwhen I receive [back v]\nhide\n\n@Back\n\nwhen flag clicked\nhide\nset size to (170) %\nforever\n    go to x: (-141) y: (127)\n    if <touching (mouse-pointer v)?> then\n        set size to (180) %\n    else\n        set size to (170) %\n    end\nend\n\nwhen I receive [? v]\nshow\n\nwhen this sprite clicked\nbroadcast (back v)\nhide\n\n@Finish Screen!\n\nwhen I receive [finish v]\nif <<(background_music) = [1]> or <(music_effects) = [1]>> then\n    start sound [Cheer v]\nend\nforever\n    go to x: (0) y: (0)\n    show\nend\n\nwhen flag clicked\nhide\n\n@+\n\nwhen I receive [finish v]\nif <(length of (☁ winners)) > [3]> then\n    go to x: (80) y: (13)\n    show\n    go to [front v] layer\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\n@die effect\n\nwhen flag clicked\nhide\n\nwhen I receive [respawn v]\nif <(start_dieEffect_close) = [2]> then\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    set [ghost v] effect to (100)\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    wait (0.1) seconds\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\nend\n\nwhen I receive [respawn v]\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [respawn v]\nif <(start_dieEffect_close) = [2]> then\n    if <(music_effects) = [1]> then\n        play sound [Roblox Death Sound  OOF Sound Effect v] until done\n    end\nend\n\nwhen I receive [start v]\nset [start_dieeffect_close v] to [1]\nwait (2) seconds\nset [start_dieeffect_close v] to [2]\n\n
                     ☁ 360° Scrolling Platformer✨\n \nWelcome to 360° Scrolling Platformer\n\nControls:\n\n✨Arrow keys and\n✨W-A-D keys\n\n--------------------------------\n\n✨Don't touch red obstacles\n✨Don't touch brown obstacle\n✨At the end of the game, drag your character to the green flag...\n\n               ✨That's All✨\n---------------------------------------------\n\n