Water A Platformer
@Stage\n\n@Thumbnail\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [front v] layer\nclear graphic effects\n\nshow\n\n@Cubey\n\nwhen I start as a clone\nset size to (60) %\nrepeat (7)\n    change [ghost v] effect by (14)\n    change size by (-3)\nend\ndelete this clone\n\nwhen flag clicked\ngo to x: (-185) y: (-25)\npoint in direction (90)\nset rotation style [left-right v]\nset size to (60) %\nswitch backdrop to (1 v)\nswitch costume to (costume1 v)\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-0.5)\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x velocity v] by (.75)\n        point in direction (90)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x velocity v] by (-.75)\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 (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 Velocity) * (-1))\n                            change x by (-.8)\n                            change y by (-5)\n                            change x by (.8)\n                            if <<<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> or <key (space v) pressed?>> then\n                                if <(X Velocity) > [0]> then\n                                    set [x velocity v] to [-2]\n                                else\n                                    set [x velocity v] to [2]\n                                end\n                                set [y velocity v] to [8]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((Y Velocity) * (-1))\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)>>> then\n            set [y velocity v] to [8]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <[230] < (x position)> then\n        if <(Level) < [9]> then\n            change [level v] by (1)\n            broadcast (next lvl v)\n            set x to (-220)\n        end\n    end\nend\n\nwhen flag clicked\nset [atrail v] to [Yes]\nset size to (60) %\nforever\n    if <(aTrail) = [Yes]> then\n        create clone of (_myself_ v)\n    end\nend\n\nset [atrail v] to [Yes]\n\nset [atrail v] to [No]\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        go to x: (-185) y: (-25)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [next lvl v]\nnext costume\n\n@Trail toggle\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (192) y: (-151)\nset size to (40) %\nswitch costume to (yes v)\nwait (.3) seconds\nshow\n\nwhen this sprite clicked\nif <(aTrail) = [Yes]> then\n    set [atrail v] to [No]\n    switch costume to (no v)\nelse\n    if <(aTrail) = [No]> then\n        set [atrail v] to [Yes]\n        switch costume to (yes v)\n    end\nend\n\n@clouds\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (5) to (15)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nset size to (pick random (70) to (85)) %\nswitch costume to (costume1 v)\nset [ghost v] effect to (pick random (30) to (45))\nset [my variable v] to (pick random (1) to (2))\nif <(my variable) = [1]> then\n    go to x: (246) y: (pick random (180) to (50))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (180) to (50))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\n@Sprite1\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [next lvl v]\nnext costume\n\n@coin\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <touching (cubey v)?> then\n        broadcast (collect v)\n    end\nend\n\nwhen I receive [collect v]\nstart sound [Collect v]\nhide\n\nwhen I receive [next lvl v]\nshow\n\nshow\n\nwhen flag clicked\nforever\n    if <touching (cubey v)?> then\n        broadcast (COIN v)\n    end\nend\n\n@skip\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nif <(Level) < [9]> then\n    change [level v] by (1)\n    broadcast (next lvl v)\n    start sound [High Whoosh v]\nelse\n    hide\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (10)\n        set size to (105) %\n    else\n        set [ghost v] effect to (0)\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nshow\ngo to x: (-200) y: (-151)\nforever\n    go to [front v] layer\nend\n\n@mute\n\nwhen this sprite clicked\nif <(volume) = [50]> then\n    set volume to (0) %\n    switch costume to (muted v)\nelse\n    set volume to (50) %\n    switch costume to (umuted v)\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (10)\n        set size to (105) %\n    else\n        set [ghost v] effect to (0)\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nswitch costume to (umuted v)\nset volume to (50) %\nshow\ngo to x: (-113) y: (-151)\nforever\n    go to [front v] layer\n    play sound [Starship v] until done\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (-19) y: (-155)\nset size to (40) %\n\nwhen I receive [coin v]\nnext costume\n\nwhen I receive [con v]\nnext costume\n\n@coin2\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <touching (cubey v)?> then\n        broadcast (colect v)\n    end\nend\n\nwhen I receive [next lvl v]\nshow\n\nshow\n\nwhen flag clicked\nforever\n    if <touching (cubey v)?> then\n        broadcast (con v)\n    end\nend\n\nwhen I receive [colect v]\nstart sound [Collect v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\n
Please follow me  >> @AZBIDABOI for more content!\n(ALERT! JOIN THE CONTEST WHILE YOU CAN: https://scratch.mit.edu/projects/876561906/ )\nhttps://scratch.mit.edu/projects/878400602/\n                 ^^^ Another cool game ^^^\nPart one: \nI will make a part 2 if this gets 1500 views\n\n\nanother generic platformer lol why do i keep on doing this\n