Sunshine Dimension 2 - A platformer #All #Games #Art

Instructions: PART 4 IS HERE! https://scratch.mit.edu/projects/592943798/\nPART 3 IS OUT! https://scratch.mit.edu/projects/590633016/\nPart 1: https://scratch.mit.edu/projects/583136958/ \nSpam the flag xD\nWASD or arrows to move\nIf you are on mobile, just simply tap the screen!\nThanks for playing!\nO.O 100 views in a day?\n21 loves! TYSM!\n200 views!\nHooray 308 views! 35 loves! 26 favs! TYSM!\nHOORAY! 51 loves! 413 views! Part 3 coming soon!\n1k+ views! TYSM!\n2k+ views!\n#23 TRENDING GAMES! LET'S GO!\n4k+!

@Stage\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (3)) until done\n    play sound (pick random (1) to (3)) until done\n    play sound (pick random (1) to (3)) until done\n    play sound (pick random (1) to (3)) until done\nend\n\n@Player\n\nwhen I start as a clone\nrepeat (7)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset size to (45) %\nswitch costume to (middle v)\ngo to x: (-190) y: (50)\nset drag mode [not draggable v]\npoint in direction (90)\nforever\n    create clone of (_myself_ v)\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [13]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <<(x position) > [230]> and <not <(Level) = [15]>>> then\n        broadcast (next level v)\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (0)\n        set size to (45) %\n    end\n    if <<(y position) = [-180]> or <<touching (lava v)?> or <touching (spikes v)?>>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-190) y: (-50)\n        set size to (45) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#af00ff)?> then\n        set size to (20) %\n    end\n    if <touching color (#fff700)?> then\n        set [y v] to [17]\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-190) y: (-50)\nset size to (45) %\n\n@ground\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    switch costume to (Level)\nend\n\n@Clouds\n\nwhen flag clicked\nhide\ngo [backward v] (10000000) layers\nforever\n    repeat (pick random (5) to (6))\n        create clone of (_myself_ v)\n        wait (pick random (2) to (4)) seconds\n    end\n    wait (pick random (1) to (3)) seconds\nend\n\nwhen I start as a clone\nswitch costume to (big v)\nset [ghost v] effect to (pick random (5) to (30))\nset size to (100) %\ngo [backward v] (10000000) layers\nswitch costume to (costume1 v)\nshow\ngo to x: (-290) y: (pick random (80) to (20))\nrepeat until <(x position) > [270]>\n    go to [back v] layer\n    change x by (2)\nend\ndelete this clone\n\nhide\n\n@Spikes\n\nwhen flag clicked\nforever\n    if <<<(Level) = [3]> or <<<(Level) = [5]> or <<<(Level) = [7]> or <<<(Level) = [9]> or <<<(Level) = [11]> or <<<(Level) = [13]> or <(Level) = [14]>> or <(Level) = [12]>>> or <(Level) = [10]>>> or <(Level) = [8]>>> or <(Level) = [6]>>> or <(Level) = [4]>>> or <(Level) = [2]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        switch costume to (2 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        switch costume to (3 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        switch costume to (4 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        switch costume to (5 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        switch costume to (6 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        switch costume to (7 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        switch costume to (8 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        switch costume to (9 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        switch costume to (10 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        switch costume to (11 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        switch costume to (12 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        switch costume to (13 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        switch costume to (14 v)\n        go to x: (-19) y: (-73)\n    end\nend\n\n@Shrink\n\nwhen flag clicked\nforever\n    if <<(Level) = [12]> or <(Level) = [5]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        go to x: (-46) y: (-64)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        go to x: (-130) y: (-64)\n    end\nend\n\n@Trampoline\n\nwhen flag clicked\nforever\n    if <<(Level) = [6]> or <(Level) = [8]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        switch costume to (costume3 v)\n    end\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <(Level) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@Letters\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (Level)\nend\n\n@follow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n    else\n        change size by (((90) - (size)) / (3))\n    end\n    if <(Level) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\n@Skip\n\nwhen flag clicked\nshow\nforever\n    go to x: (-217) y: (-157)\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n    else\n        change size by (((90) - (size)) / (3))\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [15]>\n    go to [front v] layer\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        change [level v] by (1)\n        broadcast (next level v)\n        wait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\nend\n\n