♤ Black and White 2 ♤ A mobile friendly platformer v3
@Stage\n\nwhen flag clicked\nswitch backdrop to (black v)\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        switch backdrop to (red v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        switch backdrop to (black v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        switch backdrop to (blue v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        switch backdrop to (black v)\n    end\nend\n\n@Player\n\nwhen flag clicked\nswitch costume to (white v)\ngo to [back v] layer\ngo to x: (-200) y: (0)\nset size to (90) %\n\nwhen flag clicked\nReset\nforever\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        create clone of (_myself_ v)\n        change [x velocity v] by (1)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        create clone of (_myself_ v)\n        change [x velocity v] by (-1)\n        point in direction (-90)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (X Velocity)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change x by ((0) - (X Velocity))\n                    change y by (-6)\n                    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n                        if <(X Velocity) > [0]> then\n                            set [x velocity v] to [-7]\n                        else\n                            set [x velocity v] to [7]\n                        end\n                        set [y velocity v] to [10]\n                    else\n                        set [x velocity v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((0) - (Y Velocity))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n            set [y velocity v] to [14.39]\n        end\n    end\n    change y by (1)\n    if <touching (danger2 v)?> then\n        Reset\n    end\n    if <touching (danger1 v)?> then\n        Reset\n    end\n    if <touching (sharp v)?> then\n        Reset\n    end\n    if <touching (danger3 v)?> then\n        Reset\n    end\n    if <touching (boost v)?> then\n        set [y velocity v] to [20]\n    end\n    if <touching (danger4 v)?> then\n        Reset\n    end\n    if <touching (danger5 v)?> then\n        Reset\n    end\n    if <touching (danger6 v)?> then\n        Reset\n    end\n    if <touching (danger1 v)?> then\n        Reset\n    end\n    if <touching (danger2 v)?> then\n        Reset\n    end\n    if <touching (moving saw v)?> then\n        Reset\n    end\n    if <touching (lava v)?> then\n        Reset\n    end\n    if <touching (moving ground v)?> then\n        broadcast (Next Level v)\n        play sound [Collect v] until done\n    end\n    if <touching (flag v)?> then\n        play sound [Collect v] until done\n        broadcast (Next Level v)\n        Reset\n    end\n    if <touching (dimension and orb v)?> then\n        play sound [Collect v] until done\n        broadcast (Next Level v)\n        Reset\n    end\n    if <(x position) < [-240]> then\n        Reset\n    end\n    if <(x position) > [240]> then\n        Reset\n    end\n    if <touching (portal v)?> then\n        broadcast (End v)\n        stop [this script v]\n    end\nend\n\nplay sound [Glass Breaking v] until done\n\ndefine Reset\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-200) y: (0)\npoint in direction (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I start as a clone\nrepeat (7)\n    change size by (-7)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [die v]\nReset\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <touching color (#d90505)?> then\n        Reset\n    end\nend\n\nwhen [space v] key pressed\n\nplay sound [Glass Breaking v] until done\n\nwhen I receive [mute v]\nset volume to (0) %\n\nwhen I receive [unmute v]\nset volume to (50) %\n\nReset\n\nwhen flag clicked\nrepeat (10000000000000)\n    play sound [Mega_Man_3_-_PasswordGameover v] until done\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        switch costume to (red v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        switch costume to (blue v)\n    end\nend\n\nswitch costume to (blue v)\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        switch costume to (white v)\n    end\nend\n\nReset\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        switch costume to (white v)\n    end\nend\n\n@Flag\n\nwhen flag clicked\ngo to x: (204) y: (-123)\nshow\n\ngo to x: (200) y: (-117)\n\nwhen flag clicked\nswitch costume to (2 v)\nforever\n    if <(Level) = [2]> then\n        go to x: (207) y: (-122)\n    end\nend\n\ngo to x: (200) y: (-117)\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        go to x: (205) y: (-114)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\ngo to x: (195) y: (-79)\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        go to x: (200) y: (-102)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        go to x: (200) y: (-102)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        go to x: (184) y: (-82)\n        show\n        switch costume to (2 v)\n    end\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        show\n    end\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        switch costume to (3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        switch costume to (3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        go to x: (213) y: (-82)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [8]> then\n        switch costume to (2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        switch costume to (4 v)\n        go to x: (191) y: (83)\n    end\nend\n\nshow\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        switch costume to (4 v)\n    end\nend\n\ngo to x: (191) y: (83)\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        hide\n    end\nend\n\n@Ground\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\n\nhide\n\n@sharp\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@mute\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset volume to (100) %\n\nstop all sounds\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (mute v)\n    end\n    if <(costume [number v]) = [1]> then\n        broadcast (unmute v)\n    end\nend\n\nswitch costume to (costume2 v)\n\nset volume to (10) %\n\nchange volume by (-100)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [color v] effect to (270)\n    else\n        set [color v] effect to (0)\n    end\nend\n\n\n\nset size to (110) %\n\nset size to (100) %\n\nwhen flag clicked\ngo to x: (11) y: (26)\n\nrepeat (10)\n\nrepeat (10)\n\ngo to x: (0) y: (0)\n\n@text\n\nwhen flag clicked\nset volume to (50) %\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite1\n\n@dimension and orb\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [4]> then\n        show\n    end\nend\n\nwhen flag clicked\nswitch costume to (2 v)\nforever\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        switch costume to (3 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        show\n        switch costume to (4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@Lava\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nshow\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen I receive [next level v]\nnext costume\n\n@jump\n\n@Sprite2\n\n@boost\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        show\n        go to x: (-218) y: (87)\n    end\nend\n\nswitch costume to (blue v)\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        hide\n    end\nend\n\ngo to x: (36) y: (28)\n\n@Sprite3\n\nwhen I start as a clone\nrepeat (7)\n    change size by (-7)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nif <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    create clone of (_myself_ v)\n    change [x velocity v] by (1)\n    point in direction (90)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    create clone of (_myself_ v)\n    change [x velocity v] by (-1)\n    point in direction (-90)\nend\n\n
this is part 1 \nhttps://scratch.mit.edu/projects/567060050/\nik this is not that good but i tried i was out of ideas :C\nInstruction\n-----------------\n♤ All lvl is possible ♤\nget the orb\nthis was not mean to be on trending but ok sure\nlatest project  https://scratch.mit.edu/projects/574388229/