Dear Diary ~a platformer~

Instructions: ( Check out my newest artwork! https://scratch.mit.edu/projects/389589965/ )\n\n\n                   THANKS FOR 16000 VIEWS!! \n                               \n                               ~instructions~\n                     use the arrow keys to move.\n                                \n                                 ~update log~\n                    ~11/9/19~ GAME REALISED\n                  ~11/10/19~ ADDED 2 LEVELS\n                   ~11/11/19~ ADDED 2 LEVELS

@Stage\n\nwhen flag clicked\nforever\n    if <(username) = [Hex66]> then\n        stop [all v]\n    end\nend\n\n@player\n\nwhen flag clicked\nset [level v] to [1]\nshow\nset rotation style [left-right v]\ngo to x: (-190) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n        change [x v] by (-1)\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 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 (-7)\n                                    if <<<mouse down?> and <((y position) + (30)) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                        if <(x) > [0]> then\n                                            set [x v] to [-4]\n                                        else\n                                            set [x v] to [4]\n                                        end\n                                        set [y v] to [8]\n                                    else\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<<mouse down?> and <((y position) + (30)) < (mouse y)>> or <key (up arrow v) pressed?>> then\n        if <touching (ground v)?> then\n            set [y v] to [15]\n        end\n    end\n    if <touching color (#81f8ff)?> then\n        if <<<mouse down?> and <((y position) + (30)) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            change [y v] by (0.3)\n        end\n    end\n    if <touching color (#81f9ff)?> then\n        if <<<mouse down?> and <(mouse y) < ((y position) + (30))>> or <key (down arrow v) pressed?>> then\n            change [y v] by (-1.3)\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    set [y v] to ((y) * (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    if <<touching (spikes v)?> or <<touching (bad guy v)?> or <<touching (block v)?> or <touching (block2 v)?>>>> then\n        go to x: (-196) y: (-61)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(y position) = [-174]> then\n        go to x: (-196) y: (-61)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(x position) = [266]> then\n        change [level v] by (1)\n        broadcast (switch level v)\n        go to x: (-196) y: (-61)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<(y) = [1]> or <(y) < [1]>> then\n        switch costume to (down v)\n    end\n    if <<(y) = [0]> and <<(x) = [0]> or <<(x) < [6]> or <(x) > [-6]>>>> then\n        switch costume to (normal v)\n    end\n    if <<(x) = [-1]> or <(x) < [-1]>> then\n        switch costume to (left v)\n    end\n    if <<(x) = [1]> or <(x) > [1]>> then\n        switch costume to (right v)\n    end\nend\n\n@ground\n\nwhen I receive [switch level v]\nswitch costume to (level)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@words\n\nwhen flag clicked\nwait (4.8) seconds\ngo to [front v] layer\nswitch costume to (costume3 v)\n\nwhen I receive [switch level v]\nswitch costume to (level)\n\n@level\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [switch level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume5 v)\ngo to x: (-12) y: (-128)\npoint in direction (90)\nhide\n\nwhen I receive [switch level v]\nif <(level) = [4]> then\n    show\nend\nif <(level) = [5]> then\n    show\n    switch costume to (costume1 v)\n    point in direction (180)\n    go to x: (-163) y: (133)\n    repeat (1)\n        create clone of (_myself_ v)\n    end\nend\nif <(level) = [6]> then\n    hide\nend\n\nwhen I start as a clone\ngo to x: (126) y: (94)\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (24) y: (28)\nend\n\n@BAD GUY\n\nwhen flag clicked\nhide\n\nwhen I receive [switch level v]\nif <(level) = [6]> then\n    show\n    go to x: (77) y: (-88)\n    create clone of (_myself_ v)\n    forever\n        glide (1) secs to x: (217) y: (-90)\n        glide (1) secs to x: (77) y: (-88)\n    end\nend\nif <(level) = [7]> then\n    hide\nend\n\nwhen I start as a clone\ngo to x: (-64) y: (0)\nforever\n    glide (1) secs to x: (-222) y: (1)\n    glide (1) secs to x: (-64) y: (0)\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\ngo [forward v] (3) layers\n\nwhen I receive [startproject v]\nhide\n\n@block\n\nwhen flag clicked\nhide\n\nwhen I receive [switch level v]\nif <(level) = [7]> then\n    show\n    create clone of (_myself_ v)\n    set size to (100) %\n    go to x: (-1) y: (43)\n    forever\n        glide (.3) secs to x: (-1) y: (-111)\n        glide (1) secs to x: (-1) y: (31)\n    end\nend\nif <(level) = [8]> then\n    hide\nend\n\nwhen I start as a clone\nif <(level) = [8]> then\n    hide\nend\ngo to x: (241) y: (43)\nforever\n    glide (.3) secs to x: (241) y: (-110)\n    glide (1) secs to x: (241) y: (43)\nend\n\n@block2\n\nwhen I receive [switch level v]\nif <(level) = [8]> then\n    go to x: (100) y: (5)\n    show\n    forever\n        glide (.5) secs to x: (346) y: (5)\n        glide (.5) secs to x: (100) y: (5)\n    end\nend\nif <(level) = [9]> then\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Intro\n\nwhen flag clicked\nwait (3.1) seconds\nset [shakeyyyy v] to [0]\npoint in direction (90)\nforever\n    change [shakeyyyy v] by (20)\n    change y by ([cos v] of (shakeyyyy) )\n    point in direction (([cos v] of (shakeyyyy) ) * (2))\n    turn right (90) degrees\nend\n\ngo to x: (20) y: (170)\nrepeat (8)\n    change y by ((() - (y position)) / (6))\nend\n\nwhen I start as a clone\npoint in direction (90)\nif <(CloneID) = [1]> then\n    go to x: (-300) y: (0)\n    go to [front v] layer\n    show\n    switch costume to (lefthalf v)\n    show\n    glide (1.5) secs to x: (0) y: (0)\n    broadcast (\[Intro\]Blast v)\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    delete this clone\nend\nif <(CloneID) = [2]> then\n    show\n    go to x: (300) y: (0)\n    switch costume to (righthalf v)\n    show\n    glide (1.5) secs to x: (0) y: (0)\n    broadcast (\[Intro\]Blast v)\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    delete this clone\nend\n\nwhen I receive [\[intro\]blast v]\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (logo with backing v)\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nrepeat (15)\n    change size by (10)\nend\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nswitch costume to (name v)\nset size to (100) %\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nswitch costume to (name v)\nwait (1) seconds\npoint in direction (90)\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nhide\nbroadcast (StartProject v)\n\nwhen flag clicked\nhide\ngo to [front v] layer\npoint in direction (90)\nset size to (100) %\nset [cloneid v] to [1]\ncreate clone of (_myself_ v)\nset [cloneid v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I receive [\[intro\]blast v]\npoint in direction (90)\nforever\n    set [turnnnnnn v] to ((turnnnnnn) * (.9))\n    turn right (turnnnnnn) degrees\nend\n\n