Sizes- A Platformer
@Stage\n\n@Sprite6\n\nwhen I receive [nl v]\nnext costume\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\nswitch costume to (unnamed v)\nforever\n    go to [front v] layer\n    go to x: (36) y: (28)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (-200) y: (130)\nset size to (110) %\nswitch costume to (costume1 v)\nforever\n    if <[0] = [0]> then\n        change [y v] by (-0.5)\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (costume2 v)\n            change [x v] by (-0.6)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x v] by (0.6)\n            switch costume to (costume1 v)\n        end\n        set [x v] to ((x) * (0.9))\n        change x by (x)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n        if <touching (sprite2 v)?> then\n            change y by (1)\n            if <touching (sprite2 v)?> then\n                change y by (1)\n                if <touching (sprite2 v)?> then\n                    change y by (1)\n                    if <touching (sprite2 v)?> then\n                        change y by (1)\n                    end\n                    if <touching (sprite2 v)?> then\n                        change y by (1)\n                        if <touching (sprite2 v)?> then\n                            change y by (-6)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (sprite2 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (sprite2 v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <key (z v) pressed?> then\n        change size by (-30)\n        wait (.5) seconds\n    end\n    if <key (x v) pressed?> then\n        change size by (30)\n        wait (.5) seconds\n    end\n    if <key (g v) pressed?> then\n        set y to (130)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (150)\n        set size to (110) %\n        switch costume to (costume1 v)\n    end\n    if <(x position) > [215]> then\n        broadcast (NL v)\n        go to x: (-200) y: (130)\n        set size to (110) %\n    end\n    if <(y position) = [-193]> then\n        go to x: (-200) y: (130)\n        set size to (110) %\n    end\n    if <touching (sprite4 v)?> then\n        go to x: (-200) y: (130)\n        set size to (110) %\n        broadcast (Dead v)\n    end\nend\n\n@Sprite3\n\nwhen I receive [nl v]\nnext costume\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\ngo to [back v] layer\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (15)\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\ngo to [back v] layer\ncreate clone of (_myself_ v)\nforever\n    go to x: (-310) y: (pick random (150) to (80))\n    show\n    glide (pick random (10) to (15)) secs to x: (310) y: (75)\n    hide\nend\n\nwhen I start as a clone\nhide\nwait (4) seconds\ngo to [back v] layer\nforever\n    go to x: (-310) y: (pick random (80) to (0))\n    show\n    glide (pick random (10) to (15)) secs to x: (310) y: (75)\n    hide\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (15)\nend\n\nwhen I receive [nl v]\nnext costume\n\n@Sprite4\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (15)\nend\n\nwhen I receive [nl v]\nnext costume\n\n@Sprite7\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop2 v)\nwait (3) seconds\nswitch backdrop to (backdrop1 v)\nshow\ngo to [back v] layer\nset size to (95) %\nforever\n    go to (sprite1 v)\n    if <key (z v) pressed?> then\n        change size by (-30)\n        wait (.5) seconds\n    end\n    if <key (x v) pressed?> then\n        change size by (30)\n        wait (.5) seconds\n    end\n    if <key (r v) pressed?> then\n        set size to (95) %\n    end\nend\n\nwhen I start as a clone\nwait (.25) seconds\ndelete this clone\n\nwhen I receive [nl v]\nset size to (95) %\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (.001) seconds\nend\n\nwhen I receive [dead v]\nset size to (95) %\n\n
PLAY THE BETTER VERSION HERE: https://scratch.mit.edu/projects/1013796572/\n\n12/9/21--- 100 views in 4 days?? Thank you!\n3/11/22--- 300 views!!\n5/12/22---500+ views!!\n\n✨ Arrow keys or W, A, D to move\n✨ Get to the other side of the screen to proceed to the next level\n✨ Don't touch red\n✨ If you get stuck in the ground, press g to fix the glitch\n✨ Press r to restart a level\n✨ This platformer has 20 levels