Prison Break || An Interactive scrolling platformer                 #Games #Art #Music #All
@Stage\n\nwhen I receive [start v]\nforever\n    play sound [PYLOT - A Race Against Time \[Monstercat Release\] v] until done\nend\n\n@Blank\n\n@Blank2\n\n@Blank3\n\n@Blank4\n\n@Blank5\n\n@Player\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [sx v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [in air v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (150) %\nset [ghost v] effect to (0)\npoint in direction (90)\nshow\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [sx v] by (-2)\n    if <(Dress no.) = [2]> then\n        switch costume to (policeleft v)\n    else\n        switch costume to (left v)\n    end\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [sx v] by (2)\n    if <(Dress no.) = [2]> then\n        switch costume to (policeright v)\n    else\n        switch costume to (right v)\n    end\nend\nif <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n    if <(Dress no.) = [2]> then\n        switch costume to (policecrouch v)\n    else\n        switch costume to (crouch v)\n    end\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <key (k v) pressed?> then\n    switch costume to (smoke v)\n    broadcast (Smoke v)\nend\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\n    if <(Dress no.) = [2]> then\n        switch costume to (policeup v)\n    else\n        switch costume to (up v)\n    end\nend\nif <(sy) > [20]> then\n    change [sy v] by (-2)\nend\nif <<<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (d v) pressed?> and <key (w v) pressed?>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\n    if <(Dress no.) = [2]> then\n        switch costume to (policerightup v)\n    else\n        switch costume to (rightup v)\n    end\nend\nif <<<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (a v) pressed?> and <key (w v) pressed?>>> then\n    change [y v] by (sy)\n    change [in air v] by (1)\n    Position\n    repeat until <not <touching (platforms v)?>>\n        if <(sy) > [0]> then\n            change [y v] by (-1)\n        else\n            change [y v] by (1)\n            set [in air v] to [0]\n        end\n        Position\n        set [sy v] to [0]\n    end\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\n    if <(Dress no.) = [2]> then\n        switch costume to (policeleftup v)\n    else\n        switch costume to (leftup v)\n    end\nend\nif <not <<key (left arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (up arrow v) pressed?>>>> then\n    if <(Dress no.) = [2]> then\n        switch costume to (policeidle v)\n    else\n        switch costume to (idle v)\n    end\nend\nchange [sy v] by (-2)\nChange player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\nif <touching (main gate v)?> then\n    broadcast (Free v)\nend\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-20]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\n\ndefine Test - Die\nif <<touching (police v)?> or <<touching (spikes v)?> or <<touching (saws v)?> or <<touching (lasers v)?> or <touching (laser2 v)?>>>>> then\n    set [exit v] to [die]\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\nwhen I receive [playerreply \( 1 \) v]\nwait (7) seconds\nset [exit v] to [die]\n\nwhen I receive [playerreply \( 2 \) v]\nwait (7) seconds\nset [exit v] to [die]\n\nwhen I receive [playerreply \( 3 \) v]\nset [idk v] to [xD]\n\nwhen I receive [playerreply \( 6 \) v]\nset [idk v] to [xD]\n\nwhen I receive [playerreply \( 4 \) v]\nwait (7) seconds\nset [exit v] to [die]\n\nwhen I receive [playerrelpy \( 5 \) v]\nwait (7) seconds\nset [exit v] to [die]\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [free v]\n\nhide\nstop [this script v]\n\n@Spikes\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [1395] y: [-57]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [-600] y: [0]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [350]\n\nClone at x: [360] y: [0]\n\n@Home Page\n\nwhen flag clicked\nshow\ngo to [back v] layer\nswitch costume to (costume2 v)\nforever\n    wait (1) seconds\n    next costume\nend\n\nwhen I receive [start v]\nhide\n\n@Start\n\nwhen I receive [green flag v]\nshow\nset size to (100) %\ngo to x: (166) y: (77)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <mouse down?> then\n            hide\n            broadcast (Start v)\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [about v]\nhide\n\nwhen I receive [home from about v]\nshow\n\n@Jail and police rooms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (jail v)\n    Clone at x: [0] y: [-18]\n    switch costume to (jail2 v)\n    Clone at x: [460] y: [-18]\n    switch costume to (jail3 v)\n    Clone at x: [569] y: [-18]\n    switch costume to (jail4 v)\n    Clone at x: [1159] y: [-18]\n    switch costume to (jail5 v)\n    Position [1269] [-18]\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nClone at x: [-133] y: [367]\nClone at x: [490] y: [417]\nClone at x: [380] y: [417]\n\nPosition [1379] [-18]\n\n@Textboard1\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    Textboard function\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (0 v)\n    Clone at x: [590] y: [-57]\nend\nset [x v] to [-9999999999999999999999999999]\n\ndefine Textboard function\nif <touching (player v)?> then\n    switch costume to (1 v)\n    if <<touching (player v)?> and <key (z v) pressed?>> then\n        switch costume to (2 v)\n        broadcast (Alarm1 v)\n    end\nelse\n    switch costume to (0 v)\nend\n\nnext costume\n\n@Alarm1\n\nwhen I receive [alarm1 v]\nshow\nplay sound [Alarm v] until done\nwait (2) seconds\nhide\n\nwhen I receive [green flag v]\nhide\n\n@Police\n\nwhen I receive [green flag v]\nhide\nset size to (200) %\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (police1 v)\n    Clone at x: [780] y: [-55]\n    switch costume to (police2 v)\n    Clone at x: [880] y: [-55]\n    switch costume to (police3 v)\n    Clone at x: [3855] y: [-55]\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nClone at x: [-133] y: [367]\nClone at x: [490] y: [417]\nClone at x: [380] y: [417]\n\n@Table1\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n     Documents function\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (0 v)\n    Clone at x: [1020] y: [-48]\nend\nset [x v] to [-9999999999999999999999999999]\n\ndefine  Documents function\nif <touching (player v)?> then\n    switch costume to (1 v)\n    if <<touching (player v)?> and <key (z v) pressed?>> then\n        switch costume to (2 v)\n    end\nelse\n    switch costume to (0 v)\nend\n\ngo to [front v] layer\ngo [forward v] (99) layers\n\n@Saws\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [1720] y: [-70]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    turn right (5) degrees\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [350]\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\n@Lasers\n\nwhen I receive [green flag v]\nshow\nset [ghost v] effect to (100)\nset [lasers visible v] to [No]\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [1560] y: [-56]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [3100] y: [206]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    set [ghost v] effect to (99)\n    if <(Lasers visible) = [Yes]> then\n        repeat (9)\n            change [ghost v] effect by (-10)\n        end\n    end\nelse\n    set [ghost v] effect to (99)\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [show lasers v]\nshow\nset [lasers visible v] to [Yes]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (10) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [hide lasers v]\nshow\nset [lasers visible v] to [No]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Smoke\n\nwhen I receive [green flag v]\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [smoke v]\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (Show lasers v)\nwait (10) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Hide lasers v)\n\n@CheckPoint1\n\nwhen I receive [green flag v]\nhide\nset size to (200) %\nset [answer v] to [No]\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (police1 v)\n    Clone at x: [2277] y: [-56]\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    Talk\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Talk\nif <<touching (player v)?> and <(Answer) = [No]>> then\n    switch costume to (police2 v)\n    broadcast (Answer1 v)\nelse\n    if <<touching (player v)?> and <(Answer) = [Yes]>> then\n        set [idk v] to [idk]\n    end\nend\n\nwhen I receive [playerreply \( 1 \) v]\nset [answer v] to [yes]\nswitch costume to (police3 v)\n\nwhen I receive [playerreply \( 2 \) v]\nset [answer v] to [Yes]\nswitch costume to (police4 v)\n\nwhen I receive [playerreply \( 3 \) v]\nset [answer v] to [Yes]\nswitch costume to (police5 v)\n\n@Dress\n\nwhen I receive [green flag v]\nhide\nset size to (200) %\nset [dress no. v] to [1]\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [1957] y: [128]\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    Dress Function\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Dress Function\nif <touching (player v)?> then\n    switch costume to (dress2 v)\n    if <<touching (player v)?> and <key (c v) pressed?>> then\n        broadcast (Change Dress v)\n        set [dress no. v] to [2]\n    end\nelse\n    switch costume to (dress v)\nend\n\n@Answers\n\nwhen I receive [green flag v]\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [answer1 v]\nshow\ngo to x: (-28) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 1 \) v)\n            hide\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [green flag v]\nforever\n    if <(Answer) = [Yes]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide all v]\nhide\nstop [this script v]\n\n@Answers2\n\nwhen I receive [green flag v]\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [answer1 v]\nshow\ngo to x: (50) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 2 \) v)\n            hide\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [green flag v]\nforever\n    if <(Answer) = [Yes]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide all v]\nhide\nstop [this script v]\n\n@Answers3\n\nwhen I receive [green flag v]\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [answer1 v]\nshow\ngo to x: (28) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 3 \) v)\n            broadcast (Hide all v)\n            hide\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [green flag v]\nforever\n    if <(Answer) = [Yes]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide all v]\nhide\nstop [this script v]\n\n@Textboard2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (0 v)\n    Clone at x: [2719] y: [-57]\nend\nset [x v] to [-9999999999999999999999999999]\n\n@Textboard3\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\ngo to [back v] layer\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (0 v)\n    Clone at x: [3463] y: [-30]\nend\nset [x v] to [-9999999999999999999999999999]\n\n@Laser2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [532] y: [207]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set [ghost v] effect to (90)\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [350]\n\n@Main Gate\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\ngo to [back v] layer\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (0 v)\n    Clone at x: [4819] y: [15]\nend\nset [x v] to [-9999999999999999999999999999]\n\n@CheckPoint2\n\nwhen I receive [green flag v]\nhide\nset size to (200) %\nset [answer2 v] to [No]\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (police6 v)\n    Clone at x: [4556] y: [-56]\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    Talk2\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Talk2\nif <<touching (player v)?> and <(Answer2) = [No]>> then\n    switch costume to (police7 v)\n    broadcast (Answer2 v)\nelse\n    if <<touching (player v)?> and <(Answer2) = [Yes]>> then\n        set [idk v] to [idk]\n    end\nend\n\nwhen I receive [playerreply \( 4 \) v]\nset [answer2 v] to [yes]\nswitch costume to (police2 v)\n\nwhen I receive [playerrelpy \( 5 \) v]\nset [answer2 v] to [Yes]\nswitch costume to (police3 v)\n\nwhen I receive [playerreply \( 6 \) v]\nset [answer2 v] to [Yes]\nswitch costume to (police4 v)\n\nClone at x: [4556] y: [-56]\n\n@Answers4\n\nwhen I receive [green flag v]\nhide\nswitch costume to (costume1 v)\nset [ghost v] effect to (0)\n\nwhen I receive [answer1 v]\nshow\ngo to x: (-28) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 1 \) v)\n            hide\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [green flag v]\nforever\n    if <(Answer2) = [Yes]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [answer2 v]\nshow\ngo to x: (-28) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 4 \) v)\n            hide\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [hide all2 v]\nhide\nset [ghost v] effect to (100)\nstop [this script v]\n\n@Answers5\n\nwhen I receive [green flag v]\nhide\nswitch costume to (costume1 v)\nset [ghost v] effect to (0)\n\nwhen I receive [answer1 v]\nshow\ngo to x: (50) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 2 \) v)\n            hide\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [green flag v]\nforever\n    if <(Answer2) = [Yes]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [answer2 v]\nshow\ngo to x: (50) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerRelpy \( 5 \) v)\n            hide\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [hide all2 v]\nhide\nset [ghost v] effect to (100)\nstop [this script v]\n\n@Answers6\n\nwhen I receive [green flag v]\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [answer1 v]\nshow\ngo to x: (28) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 3 \) v)\n            broadcast (Hide all v)\n            hide\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [green flag v]\nforever\n    if <(Answer2) = [Yes]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [answer2 v]\nshow\ngo to x: (28) y: (-194)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-40)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PlayerReply \( 6 \) v)\n            broadcast (Hide all2 v)\n            hide\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [hide all2 v]\nhide\nstop [this script v]\n\n@Win!\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [free v]\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen [n v] key pressed\nnext costume\nstop [all v]\n\n@TB\n\nwhen I receive [green flag v]\nshow\ngo to [front v] layer\nwait (3) seconds\nhide\n\n
YAY!!! I GOT 1st in @THUNDERcloudof08's contest!!!\nTOP LOVED?!?!?!?!?! - May 7, 2021\n94k+ views?!?! 2.4+ loves, 2.1k+ favs and 140+ remixes?!?! Wow :O\n\n--Prison Break || An Interactive Scrolling Platformer--\n\nAbout this game:\nHello and welcome to Prison Break! Finally after 2 months of work it's finished! It consists of 1401 blocks!! Sorry, but this was late due to my school. But still I made this as fast as I can! And also, I worked really hard on this!! I made my own game!\n\n❗❗❗ ALL ADS WILL BE REPORTED ❗❗❗\n                           Credits are below!!\n\nControls:\n➡ <^>, WASD keys or tap to move\n➡ Don't touch spikes, policemen, lasers and saws\n➡ Answer cleverly to the questions that those policemen ask!\n➡ Press K to switch on smoke\n➡ C to change your dress\n➡ Get to the Main Gate to win!!\n➡ Have fun!\n\nNOTE: If you don't answer a question and try to skip it, then a laggy mode will be activated.\nLagging? Try this: https://turbowarp.org/501845772\n\nThis is my entry for @THUNDERcloudof8's contest!\n\nSTORY: \nYou did not make a project for a looong time, and thus, the Scratch Police put you into the jail. But you were a brave and clever fellow. So you took the risk and tried to jail break, not at all knowing the dangers of your journey!\n\nI really hope I win :)\n\nAlso I'd really appreciate if you like my hard work and give it at least a ❤️ and a ⭐. And if you absolutely love this then why not a follow???\nAnd also, 50 loves = Part 2 :D\n------------------------------Credits------------------------------@THUNDERcloudof8 for the contest!\n@griffpatch for the tutorials\n@KIKOKO_ for the amazing music!\n@-UltraProgrammer- ( me ) for the rest!\nCooltext.com for the ebik text!\nYou all for viewing :)\n100% art by me!\n\n                                        HINTS\n\n1. Smoke shows you lasers! So use it when you think you should.\n2. Read the documents for help.\n3. You should use your brain to answer the questions, because if you give the wrong answer then you'll have to again start from the beginning, because in real, there aren't any checkpoints in a prison, right? :D\nFamous ❤️ and ⭐:\n@BillyBomb ❤️ and ⭐\n@Techno-Programmer ❤️ and ⭐\n@doodleshark ❤️ and ⭐\n@cesa23 ❤️\n@Indian-Programmer ❤️\n@DrEverything ❤️\n@THUNDERcloudof08 ❤️ and ⭐\n\nNew:\n• Added smoke\n• Added invisible lasers\n• Made the whole thing myself\n• Made all police costumes\n• Added textboards\n\nAlso make sure to check this out made by @HeroOfWar: https://scratch.mit.edu/projects/515920040/