Sunshine - a Platformer - #games #all #trending #music #art

Instructions: ———————Sunshine——————————————\nHi Welcome To sunshine - Platformer\nWASD Or arrow Keys To move\n:D Have Fun                              Follow ❤️  & ⭐️ for more\n\nI Have a job for you\nShare This to 1000 Studios and I’ll do a giveaway

@Stage\n\nwhen flag clicked\nswitch backdrop to (background v)\nforever\nend\n\nplay sound [bensound-ukulele v] until done\n\n@Player\n\nwhen I start as a clone\nswitch costume to (player2 v)\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nset [level v] to [1]\nReset player\nforever\n    Controls - Left / Right\n    Gravity\n    Bug fixer / Next Level\n    Danger / Trampoline\nend\n\ndefine Reset player\ngo to x: (-201) y: (-59)\npoint in direction (90)\nswitch costume to (player v)\nset size to (60) %\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\nset [x v] to [0]\nset [y v] to [0]\nset [speed x v] to [0.9]\nset [x pos v] to (x position)\nset [y pos v] to (y position)\n\ndefine Controls - Left / Right\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x pos)>>> then\n    change [x v] by (1)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x pos)>>> then\n    change [x v] by (-1)\nend\nset [x v] to ((x) * (speed x))\nchange x by (x)\n\ndefine Gravity\nif <touching (platforms v)?> then\n    change y by (1)\n    if <touching (platforms v)?> then\n        change y by (1)\n        if <touching (platforms v)?> then\n            change y by (1)\n            if <touching (platforms v)?> then\n                change y by (1)\n                if <touching (platforms v)?> then\n                    change y by (1)\n                    if <touching (platforms v)?> then\n                        change x by ((x) * (-1))\n                        change y by (-5)\n                        Wall Jump\n                    end\n                end\n            end\n        end\n    end\nend\nchange [y v] by (-1)\nchange y by (y)\nif <touching (platforms v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <touching (platforms v)?> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y pos)>>> then\n        Controls - Up\n    end\nend\n\ndefine Wall Jump\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y pos)>>> then\n    if <(x) > [0]> then\n        set [x v] to [-5]\n    else\n        set [x v] to [5]\n    end\n    set [y v] to [10]\nelse\n    set [x v] to [0]\nend\n\ndefine Controls - Up\nset [y v] to [16]\n\ndefine Bug fixer / Next Level\nif <<(x position) > [-230]> and <(y position) < [-179]>> then\n    go to x: (-201) y: (-59)\n    set [x v] to [0]\n    set [y v] to [0]\nend\nif <(x position) > [239]> then\n    go to x: (-201) y: (-59)\n    change [level v] by (1)\n    Reset player\n    broadcast (Next Level! v)\nend\n\ndefine Danger / Trampoline\nif <touching (danger v)?> then\n    Player - Dead\nend\nif <touching (trampoline v)?> then\n    set [y v] to [18]\nend\n\nControls - Up\n\ndefine Player - Dead\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\ngo to x: (-201) y: (-59)\nset [x v] to [0]\nset [y v] to [0]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\n@Platforms\n\nwhen flag clicked\nSetup\n\ndefine Setup\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (level 1 v)\nset [ghost v] effect to (0)\nset size to (60) %\nshow\n\nwhen I receive [next level! v]\nNext Level\n\ndefine Next Level\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (H v)\n    end\nend\n\n@  \n\nwhen flag clicked\nSetup\n\ndefine Setup\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (level 1 v)\nset [ghost v] effect to (0)\ngo to [back v] layer\nset size to (60) %\nshow\n\nwhen I receive [next level! v]\nNext Level\n\ndefine Next Level\nnext costume\n\n@Danger\n\nwhen flag clicked\nSetup\n\ndefine Setup\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (level 1 v)\nset [ghost v] effect to (0)\nset size to (60) %\nshow\n\nwhen I receive [next level! v]\nNext Level\n\ndefine Next Level\nnext costume\n\n@Trampoline\n\nwhen flag clicked\nSetup\n\ndefine Setup\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (level 1 v)\nset [ghost v] effect to (0)\nset size to (60) %\nshow\n\nwhen I receive [next level! v]\nNext Level\n\ndefine Next Level\nnext costume\n\n@Clouds\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (5) to (15))\nswitch costume to (cloud v)\nset size to (pick random (40) to (100)) %\ngo [backward v] (10000000) layers\nshow\ngo to x: (-290) y: (pick random (120) to (70))\nrepeat (250)\n    change x by (2)\nend\ndelete this clone\n\nwhen flag clicked\nhide\ngo [backward v] (10000000) layers\nforever\n    repeat (pick random (10) to (20))\n        create clone of (_myself_ v)\n        wait (pick random (2) to (5)) seconds\n    end\n    wait (pick random (2) to (3)) seconds\nend\n\n@Sun\n\nwhen flag clicked\ngo to x: (227) y: (164)\nshow\nforever\n    turn right (1) degrees\nend\n\nwhen I receive [h v]\nhide\nif <(costume [number v]) = [7]> then\n    show\nend\n\n@Stuff maybe need?\n\n@TN\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\n\n@Illusions\n\nwhen I receive [levelübergang v]\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nset [level v] to [1]\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [intro finish v]\n\nwhen I receive [next level! v]\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (50)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\ngo to [back v] layer\ngo [forward v] (3) layers\n\n@Music\n\nwhen flag clicked\nforever\n    play sound [Inferno v] until done\nend\n\n