summer|| a platformer

Instructions: curated by @mr_lemon_buddy on 7/26 tysm! :D\nthanks for 700 loves!\nand thanks so much for top remixed!!!\nI do not support STGP.

@Stage\n\n@level\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (level #)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    set [level # v] to (costume [number v])\nend\n\nwhen I receive [next level v]\nchange [level # v] by (1)\n\nwhen flag clicked\ngo [forward v] (10) layers\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    switch costume to (level #)\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    go [backward v] (8) layers\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (50)\n        change size by (0.1)\n    end\n    repeat (50)\n        change size by (-0.1)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go [backward v] (10) layers\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (50)\n        change size by (0.3)\n    end\n    repeat (50)\n        change size by (-0.3)\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    repeat (50)\n        change size by (0.5)\n    end\n    repeat (50)\n        change size by (-0.5)\n    end\nend\n\n@player\n\nwhen flag clicked\nset volume to (100) %\nswitch costume to (costume1 v)\nforever\n    play sound [ v] until done\nend\n\nwhen I start as a clone\nswitch costume to (costume3 v)\nset [ghost v] effect to (50)\nset size to (100) %\nrepeat (30)\n    change size by (-4)\n    change [ghost v] effect by (3)\nend\ndelete this clone\n\nchange [color v] effect by (-20)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\ndefine platform (jump height) (gravity) (friction) (running speed)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (playerx)>>>> then\n    change [xvelocity v] by ((running speed) * (1))\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (playerx)>>>> then\n    change [xvelocity v] by ((running speed) * (-1))\n    switch costume to (costume2 v)\nend\nset [xvelocity v] to ((xvelocity) * (friction))\nchange x by (xvelocity)\nif <touching (level v)?> then\n    set [slope v] to [0]\n    repeat until <<(slope) = [8]> or <not <touching (level v)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by ((slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (xvelocity) ) )\n            if <touching (level v)?> then\n                change x by ((([abs v] of (xvelocity) ) / (xvelocity)) * (-1))\n            end\n        end\n        set [xvelocity v] to [0]\n    end\nend\nchange y by (yvelocity)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (yvelocity) ) )\n        if <touching (level v)?> then\n            change y by ((([abs v] of (yvelocity) ) / (yvelocity)) * (-1))\n        end\n    end\n    if <<(([abs v] of (yvelocity) ) / (yvelocity)) = [-1]> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<touching (jump pad v)?> or <<mouse down?> and <(mouse y) > (playery)>>>>>> then\n        set [yvelocity v] to (jump height)\n    else\n        set [yvelocity v] to [0]\n    end\nelse\n    change [yvelocity v] by (-1)\nend\n\nwhen flag clicked\ngo to x: (-202) y: (-40)\nset [xvelocity v] to [0]\nset [yvelocity v] to [0]\nforever\n    if <touching (jump pad v)?> then\n        platform [20] [-1] [0.7] [2.3]\n    else\n        platform [12] [-1] [0.7] [2.3]\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <touching (evil stuff v)?> then\n        broadcast (respawn muahaha  v)\n    end\nend\n\nwhen I receive [respawn muahaha  v]\ngo to x: (-202) y: (-60)\n\nwhen flag clicked\nforever\n    if <touching (goal v)?> then\n        broadcast (respawn muahaha  v)\n        broadcast (next level v)\n    end\nend\n\ndefine out\n\nwhen flag clicked\nforever\n    if <(xvelocity) > [0]> then\n        repeat until <not <touching color (#3bb700)?>>\n            change x by (-1)\n        end\n    else\n        if <(xvelocity) < [0]> then\n            repeat until <not <touching color (#3bb700)?>>\n                change x by (1)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (jump pad v)?> then\n        change y by (1)\n        if <touching (jump pad v)?> then\n            change y by (1)\n            if <touching (jump pad v)?> then\n                change y by (1)\n                if <touching (jump pad v)?> then\n                    change y by (1)\n                    if <touching (jump pad v)?> then\n                        change y by (1)\n                        if <touching (jump pad v)?> then\n                            change y by (1)\n                            if <touching (jump pad v)?> then\n                                change y by (1)\n                                if <touching (jump pad v)?> then\n                                    change y by (1)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (water... imma noob v)?> then\n        change y by (4)\n        if <touching (water... imma noob v)?> then\n            change y by (4)\n            if <touching (water... imma noob v)?> then\n                change y by (4)\n                if <touching (water... imma noob v)?> then\n                    change y by (4)\n                    if <touching (water... imma noob v)?> then\n                        change y by (4)\n                        if <touching (water... imma noob v)?> then\n                            change y by (4)\n                            if <touching (water... imma noob v)?> then\n                                change y by (4)\n                                if <touching (water... imma noob v)?> then\n                                    change y by (4)\n                                    if <touching (water... imma noob v)?> then\n                                        change y by (4)\n                                        if <touching (water... imma noob v)?> then\n                                            if <touching (water... imma noob v)?> then\n                                                change y by (4)\n                                                if <touching (water... imma noob v)?> then\n                                                    change y by (4)\n                                                    if <touching (water... imma noob v)?> then\n                                                        change y by (4)\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [playerx v] to (x position)\n    set [playery v] to (y position)\nend\n\nwhen flag clicked\nforever\n    if <touching (water... imma noob v)?> then\n        broadcast (water v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (level v)?> then\n        broadcast (no water v)\n    end\nend\n\nwhen flag clicked\nforever\n    \nend\n\nwhen [m v] key pressed\nif <(volume) = [100]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\n@Sprite5\n\nwhen flag clicked\ngo to x: (-305) y: (125)\nset [ghost v] effect to (100)\nforever\n    create clone of (_myself_ v)\n    wait (pick random (7) to (13)) seconds\nend\n\nwhen I start as a clone\ngo [backward v] (7) layers\nset [ghost v] effect to (pick random (30) to (40))\ngo to x: (-305) y: (pick random (-40) to (180))\nrepeat (650)\n    change x by (2)\nend\n\nwhen I start as a clone\nwait (10) seconds\ndelete this clone\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (-305) y: (125)\nset [ghost v] effect to (100)\nforever\n    create clone of (_myself_ v)\n    wait (pick random (8) to (15)) seconds\nend\n\nwhen I start as a clone\ngo [backward v] (7) layers\nset [ghost v] effect to (pick random (30) to (40))\ngo to x: (305) y: (pick random (-40) to (180))\nrepeat (650)\n    change x by (-2)\nend\n\nwhen I start as a clone\nwait (10) seconds\ndelete this clone\n\n@jump pad\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen flag clicked\ngo to [front v] layer\n\n@evil stuff\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen flag clicked\ngo [forward v] (1) layers\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\n@sign\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen this sprite clicked\nif <(level #) = [1]> then\n    say [welcome to Summer: a platformer] for (2.5) seconds\nend\nif <(level #) = [3]> then\n    say [watch out...] for (2) seconds\nend\nif <(level #) = [9]> then\n    say [hmm.] for (2) seconds\nend\nif <(level #) = [14]> then\n    say [water!] for (2) seconds\nend\nif <(level #) = [18]> then\n    say [water and lava...] for (2.5) seconds\nend\n\nwhen flag clicked\ngo [forward v] (5) layers\n\n@goal\n\nwhen flag clicked\nshow\nset size to (100) %\nset size to (75) %\nset [ghost v] effect to (25)\npoint in direction (75)\nforever\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\npoint in direction (90)\nset [ghost v] effect to (0)\nforever\n    if <(level #) = [1]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [7]> then\n        go to x: (217) y: (-20)\n    end\n    if <(level #) = [8]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [10]> then\n        go to x: (220) y: (-57)\n    end\n    if <(level #) = [11]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [15]> then\n        go to x: (212) y: (49)\n    end\n    if <(level #) = [16]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [17]> then\n        go to x: (220) y: (155)\n    end\n    if <(level #) = [18]> then\n        go to x: (225) y: (62)\n    end\n    if <(level #) = [19]> then\n        go to x: (223) y: (-57)\n    end\n    if <(level #) = [20]> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (212) y: (-57)\nforever\n    if <(level #) = [1]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [7]> then\n        go to x: (217) y: (-20)\n    end\n    if <(level #) = [8]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [10]> then\n        go to x: (220) y: (-57)\n    end\n    if <(level #) = [11]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [15]> then\n        go to x: (212) y: (49)\n    end\n    if <(level #) = [16]> then\n        go to x: (212) y: (-57)\n    end\n    if <(level #) = [17]> then\n        go to x: (220) y: (155)\n    end\n    if <(level #) = [18]> then\n        go to x: (225) y: (62)\n    end\n    if <(level #) = [19]> then\n        go to x: (223) y: (-57)\n    end\n    if <(level #) = [20]> then\n        hide\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nset size to (130) %\nforever\n    set x to ((playerx) / (15))\n    set y to ((playery) / (15))\nend\n\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        repeat until <not <<key (right arrow v) pressed?> or <key (d v) pressed?>>>\n            change x by (0.3)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        repeat until <not <<key (left arrow v) pressed?> or <key (a v) pressed?>>>\n            change x by (-0.3)\n        end\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-28) y: (0)\n\nwhen flag clicked\ngo [forward v] (1) layers\n\nwhen I receive [respawn muahaha  v]\ngo to x: (-28) y: (0)\n\n@water... imma noob\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (20)\nforever\n    repeat (20)\n        change y by (0.75)\n    end\n    repeat (20)\n        change y by (-0.75)\n    end\nend\n\n@cooltext-357179999502882\n\nwhen flag clicked\npoint in direction (90)\nset size to (100) %\nforever\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (respawn muahaha  v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Cool-Text--357113495569986\n\nwhen flag clicked\nforever\n    hide\n    if <(level #) = [20]> then\n        show\n    end\nend\n\n@cooltext-357113032831655\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    show\n    go to [front v] layer\nend\n\n@cooltext-357180023871607\n\nwhen flag clicked\nshow\ngo to x: (-124) y: (-155)\npoint in direction (90)\nset size to (100) %\nforever\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (next level v)\nbroadcast (respawn muahaha  v)\nhide\n\nwhen flag clicked\nshow\nforever\n    if <(level #) = [20]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n