Notebook 2 - Platformer - Hacked

Instructions: MORE:\n15 more levels to challenge your skills!\nTell me if there are any bugs.\nCONTROLS:\nArrow Keys/WASD/Mobile to move around.\nAvoid spikes, liquid fire, saws and turrets.\nThe arrows force you until you reach another arrow (opposite)\nBounce on trampolines to get to high places.\nGet to the flag to advance.\nGo into the red and green portals to become a different size.

@Stage\n\nwhen flag clicked\nswitch backdrop to (page v)\nwait until <(Level) = [15]>\nswitch backdrop to (page2 v)\n\nwhen I receive [intro done v]\nswitch backdrop to (page v)\nwait until <(Level) = [15]>\nswitch backdrop to (page2 v)\n\n@Blank\n\n@Player\n\nwhen flag clicked\nset volume to (50) %\nset [left? v] to [0]\nset [right? v] to [0]\nset [level v] to [1]\nhide\n\ndefine Platformer Physics (speed) (friction) (jump height)\nchange [y velocity v] by (-1)\nif <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <<not <(Right?) = [1]>> or <not <(Left?) = [1]>>>> then\n    change [x velocity v] by (speed)\nend\nif <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <<not <(Right?) = [1]>> or <not <(Left?) = [1]>>>> then\n    change [x velocity v] by ((0) - (speed))\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nif <touching (level v)?> then\n    repeat until <<not <touching (level v)?>> or <(Slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((0) - (([abs v] of (X Velocity) ) / (X Velocity)))\n    end\n    set [x velocity v] to [0]\nend\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (level v)?>> then\n    set [y velocity v] to (jump height)\nend\nchange y by (1)\nif <(Right?) = [1]> then\n    if <(size) = [70]> then\n        change [x velocity v] by (1.3)\n    else\n        change [x velocity v] by (1.5)\n    end\nend\nif <(Left?) = [1]> then\n    if <(size) = [70]> then\n        change [x velocity v] by (-1.3)\n    else\n        change [x velocity v] by (-1.5)\n    end\nend\n\ndefine Detection\nif <touching (flag v)?> then\n    broadcast (Next v)\n    start sound [Ding Sound Effect v]\n    set [level v] to ((Level) + (1))\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [left? v] to [0]\n    set [right? v] to [0]\n    go to x: (-205) y: (-82)\nend\nif <key (r v) pressed?> then\n    set [left? v] to [0]\n    set [right? v] to [0]\n    start sound [Oops v]\n    repeat (3)\n        hide\n        wait (0.11) seconds\n        show\n        wait (0.11) seconds\n    end\n    hide\n    wait (0.11) seconds\n    show\n    go to x: (-205) y: (-82)\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif <touching (bouncy v)?> then\n    start sound [Big Boing v]\n    if <(size) = [100]> then\n        set [y velocity v] to [18]\n    else\n        set [y velocity v] to [14]\n    end\nend\nif <touching color (#ff3b3b)?> then\n    set size to (70) %\nend\nif <touching color (#60d55a)?> then\n    set size to (100) %\nend\nif <touching (super right v)?> then\n    set [right? v] to [1]\n    set [left? v] to [0]\nend\nif <touching (super left v)?> then\n    set [left? v] to [1]\n    set [right? v] to [0]\nend\nif <touching (left v)?> then\n    set [right? v] to [0]\nend\nif <touching (right v)?> then\n    set [left? v] to [0]\nend\n\nwhen I receive [intro done v]\nset size to (100) %\nset [cheat v] to [0]\nwait (0.1) seconds\nshow\ngo [forward v] (88) layers\ngo to x: (-205) y: (-82)\nset [level v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    if <touching (activate v)?> then\n        Platformer Physics [2] [0.8] [16]\n        Detection\n    else\n        if <(size) = [70]> then\n            Platformer Physics [2] [0.79] [9.99]\n            Detection\n        else\n            if <(size) = [100]> then\n                Platformer Physics [1.99] [0.798] [11.5]\n                Detection\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    Cheats Menu\n    set [x v] to (round (x position))\n    set [y v] to (round (y position))\nend\n\ndefine Cheats Menu\nif <<<key (1 v) pressed?> and <<(username) = [YeetBoiExtreme]> or <(username) = [YeetBoiExtreme]>>> and <not <(CHEAT) = [1]>>> then\n    set [cheat v] to [1]\n    wait (1) seconds\nelse\n    if <<key (1 v) pressed?> and <(CHEAT) = [1]>> then\n        set [cheat v] to [0]\n        wait (1) seconds\n    end\nend\nif <<key (up arrow v) pressed?> and <(CHEAT) = [1]>> then\n    set [y velocity v] to [7]\nend\nif <<key (down arrow v) pressed?> and <(CHEAT) = [1]>> then\n    set [y velocity v] to [-6]\nend\n\nset [right? v] to [0]\n\ndelete this clone\n\nwhen I receive [transition v]\ngo to x: (-205) y: (-82)\n\nwhen [e v] key pressed\ngo to (mouse-pointer v)\n\nwhen flag clicked\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\n@Text\n\nwhen flag clicked\nclear graphic effects\nforever\n    switch costume to (Level)\n    if <touching (player v)?> then\n        set [ghost v] effect to (45)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Bouncy\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Flag\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Turret\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nhide\nwait until <(Level) = [2]>\npoint in direction (-90)\ngo to x: (203) y: (-111)\nshow\nrepeat until <not <(Level) = [2]>>\n    create clone of (bullet v)\n    wait (3) seconds\nend\nhide\nwait until <(Level) = [4]>\npoint in direction (90)\ngo to x: (-211) y: (33)\nshow\nrepeat until <not <(Level) = [4]>>\n    create clone of (bullet v)\n    wait (3) seconds\nend\nhide\nwait until <(Level) = [6]>\npoint in direction (180)\ngo to x: (-199) y: (141)\nshow\nrepeat until <not <(Level) = [6]>>\n    create clone of (bullet v)\n    wait (2) seconds\nend\nhide\nwait until <(Level) = [7]>\npoint towards (player v)\ngo to x: (-199) y: (141)\nshow\nrepeat until <not <(Level) = [7]>>\n    create clone of (bullet v)\n    wait (3) seconds\nend\nhide\nwait until <(Level) = [8]>\npoint in direction (180)\ngo to x: (-202) y: (108)\nshow\nrepeat until <not <(Level) = [8]>>\n    create clone of (bullet v)\n    wait (2) seconds\nend\nhide\nwait until <(Level) = [9]>\npoint in direction (180)\ngo to x: (210) y: (146)\nshow\nrepeat until <not <(Level) = [9]>>\n    create clone of (bullet v)\n    wait (3) seconds\nend\nhide\nwait until <(Level) = [12]>\npoint towards (player v)\ngo to x: (-194) y: (141)\nshow\nrepeat until <not <(Level) = [12]>>\n    create clone of (bullet v)\n    wait (4) seconds\nend\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nwait until <(Level) = [3]>\nhide\n\nwhen I receive [intro done v]\nwait until <(Level) = [5]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [7]>\nforever\n    point towards (player v)\n    if <not <(Level) = [7]>> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [intro done v]\nwait until <(Level) = [8]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [12]>\nforever\n    point towards (player v)\n    if <not <(Level) = [12]>> then\n        stop [this script v]\n    end\nend\n\n@Bullet\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo to (turret v)\npoint in direction ([direction v] of [turret v])\nrepeat until <<<touching (player v)?> or <touching (level v)?>> or <touching (_edge_ v)?>>\n    move (4.5) steps\nend\ndelete this clone\n\n@Activate\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@text\n\nwhen flag clicked\nhide\ngo to [front v] layer\nwait (2.4) seconds\ngo to x: (0) y: (-60)\nset size to (100) %\nset [ghost v] effect to (100)\nshow\nset [rotation v] to [-10]\nrepeat (70)\n    change [ghost v] effect by (rotation)\n    change [rotation v] by (-1)\n    wait (0.01) seconds\nend\nset [ghost v] effect to (0)\n\nwhen I receive [message1 v]\nhide\n\nwhen I receive [intro done v]\nhide\n\n@Intro\n\nwhen flag clicked\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\nset [id v] to [3]\ncreate clone of (_myself_ v)\nset [id v] to [4]\ncreate clone of (_myself_ v)\nstart sound [Never Mind v]\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\npoint in direction (-90)\nset size to (300) %\nset [sine v] to [30]\nrepeat (40)\n    change size by (((100) - (size)) * (1))\n    turn right (((90) - (direction)) * (0.18)) degrees\nend\nset [glide v] to [7]\nrepeat (20)\n    change y by ((glide) - (1))\n    change [glide v] by (-0.34)\nend\nwait (5.8) seconds\nhide\n\nwhen I start as a clone\nif <(id) = [1]> then\n    clear graphic effects\n    show\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    switch costume to (bg v)\nelse\n    if <(id) = [2]> then\n        id 2\n    else\n        if <(id) = [3]> then\n            id 3\n        else\n            id 4\n        end\n    end\nend\n\ndefine id 2\ngo to x: (0) y: (0)\nswitch costume to (dot2 v)\nhide\nclear graphic effects\ngo to [front v] layer\nwait (7) seconds\nshow\nset size to (0.5) %\nset [vel v] to [1]\nswitch costume to (dot v)\nrepeat (50)\n    switch costume to (dot2 v)\n    change [vel v] by ((size) / (50))\n    change size by (vel)\n    switch costume to (dot v)\nend\nbroadcast (Intro Done v)\n\nwhen I receive [intro done v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\ndefine id 3\ngo to x: (0) y: (0)\nswitch costume to (dot2 v)\nhide\nclear graphic effects\ngo to [front v] layer\nwait (7.2) seconds\nshow\nset size to (0.5) %\nset [vel v] to [1]\nswitch costume to (dot v)\nrepeat (50)\n    switch costume to (dot2 v)\n    change [vel v] by ((size) / (50))\n    change size by (vel)\n    switch costume to (smaller dot v)\nend\n\ndefine id 4\ngo to x: (0) y: (0)\nswitch costume to (dot2 v)\nhide\nclear graphic effects\ngo to [front v] layer\nwait (7.4) seconds\nshow\nset size to (0.5) %\nset [vel v] to [1]\nswitch costume to (dot v)\nrepeat (50)\n    switch costume to (dot2 v)\n    change [vel v] by ((size) / (50))\n    change size by (vel)\n    switch costume to (crazy dot v)\n    turn left (1) degrees\nend\n\n@Small\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nshow\n\n@Music\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(volume) = [50]> then\n    set volume to (0) %\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\n    set volume to (50) %\nend\n\nwhen I receive [intro done v]\nshow\nswitch costume to (costume1 v)\ngo to x: (-219) y: (-160)\nset volume to (50) %\nset size to (70) %\nforever\n    play sound [Universe In A Nutshell Soundtrack \(2020\) v] until done\n    play sound [Termination Shock v] until done\nend\n\n@TN\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Normal\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nshow\n\n@Saws\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y) At Size: (size)\nset size to (size) %\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [next v]\nif  then\n    delete this clone\nend\nif <(Level) = [6]> then\n    Clone At X: [-2] [-92] At Size: [80]\n    Clone At X: [119] [-88] At Size: [80]\n    Clone At X: [-12] [42] At Size: [80]\nend\nif <(Level) = [7]> then\n    Clone At X: [-59] [30] At Size: [80]\n    Clone At X: [9] [-94] At Size: [60]\nend\nif <(Level) = [9]> then\n    Clone At X: [-67] [-103] At Size: [70]\nend\nif <(Level) = [10]> then\n    Clone At X: [220] [-17] At Size: [90]\nend\nif <(Level) = [11]> then\n    Clone At X: [15] [20] At Size: [80]\nend\nif <(Level) = [12]> then\n    Clone At X: [120] [0] At Size: [75]\nend\nif <(Level) = [13]> then\n    Clone At X: [199] [-176] At Size: [80]\nend\nif <(Level) = [14]> then\n    Clone At X: [184] [-84] At Size: [70]\n    Clone At X: [-149] [19] At Size: [70]\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nforever\n    turn right (4) degrees\nend\n\nbroadcast (Next v)\n\nClone At X: [103] [22] At Size: [70]\n\nbroadcast (Next v)\n\n@Super Right\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nshow\n\n@Left\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nshow\n\n@Super Left\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nshow\n\n@Right\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nshow\n\n@Skip\n\nwhen flag clicked\nwait until <(Level) = [21]>\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\ngo to x: (169) y: (-160)\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [intro done v]\nwait (0.8) seconds\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [intro done v]\nwait until <(Level) = [21]>\nhide\n\nwhen [s v] key pressed\nbroadcast (Transition v)\nbroadcast (Next v)\nchange [level v] by (1)\n\n@Transition\n\nwhen I receive [transition v]\nshow\ngo to [front v] layer\ngo to [front v] layer\nwait (0.8) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nclear graphic effects\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n