mission escape || a platformer
@Stage\n\n@player\n\nwhen flag clicked\nset [xv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\nend\n\nwhen flag clicked\ngo to x: (-200) y: (-150)\nset [yv v] to [0]\nforever\n    go to [front v] layer\n    if <<touching (sprite2 v)?> or <<touching (bomb v)?> or <touching (bomb2 v)?>>> then\n        set [yv v] to [0]\n        if <<<touching (sprite2 v)?> or <<touching (bomb v)?> or <touching (bomb2 v)?>>> and <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    else\n        change [yv v] by (-0.8)\n    end\n    change y by (yv)\nend\n\nwhen flag clicked\nshow\nset [level v] to [1]\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (message1 v)\n        change [level v] by (1)\n        go to x: (-240) y: (-150)\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (danger v)?> or <<touching (danger2 v)?> or <<touching (danger3 v)?> or <<touching (axe v)?> or <touching (lava v)?>>>>> then\n        start sound [pop v]\n        broadcast (rebomb v)\n        go to x: (-200) y: (-150)\n        wait (0.1) seconds\n        change [lives v] by (-1)\n    end\nend\n\nwhen flag clicked\nswitch costume to (normal v)\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal v)\n    end\n    if <key (up arrow v) pressed?> then\n        switch costume to (up v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n    end\n    if <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (up-left v)\n    end\n    if <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (up-right v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bomb v)?> then\n        broadcast (bombhide v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bomb2 v)?> then\n        broadcast (bombhide2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (1)\nend\n\nwhen flag clicked\nforever\n    if <<touching (trampoline v)?> or <touching (trampoline2 v)?>> then\n        set [yv v] to [18]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal v)\n    end\nend\n\nwhen flag clicked\nset [lives v] to [3]\n\nwhen flag clicked\nforever\n    if <(lives) = [0]> then\n        stop [other scripts in sprite v]\n        broadcast (outro v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [goback v]\ngo to x: (-200) y: (-150)\n\nwhen flag clicked\nforever\n    if <<touching (family v)?> and <touching (sprite2 v)?>> then\n        stop [other scripts in sprite v]\n        think (join [thank you ] (join (username) [ for leading me home.])) for (2) seconds\n        broadcast (outro v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Bobby Cole - Epic Dawn v] until done\nend\n\nthink [Hmm...]\n\nwhen I receive [outro v]\ngo to [back v] layer\n\nwhen [9 v] key pressed\nchange [level v] by (1)\nbroadcast (message1 v)\nif <<(level) = [10]> or <(level) > [10]>> then\n    set [level v] to [10]\nend\n\n@danger\n\nwhen flag clicked\nset size to (100) %\npoint in direction (90)\nshow\nswitch costume to (costume3 v)\nforever\n    if <(level) = [1]> then\n        go to x: (-86) y: (1)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n        wait (0.5) seconds\n        switch costume to (costume3 v)\n    end\nend\n\nif  then\nelse\n    hide\n    stop [this script v]\nend\n\n\n\nwhen I receive [message1 v]\nswitch costume to (costume3 v)\nhide\nif <(level) = [1]> then\n    point in direction (90)\n    set size to (100) %\n    show\n    go to x: (-86) y: (1)\n    repeat until <not <(level) = [1]>>\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n        wait (0.5) seconds\n        switch costume to (costume3 v)\n    end\nend\nif <(level) = [4]> then\n    switch backdrop to (stop-danger-warning-attention-background_176503-28 v)\n    go to x: (6) y: (-180)\n    set size to (80) %\n    switch costume to (costume2 v)\n    show\n    repeat until <not <(level) = [4]>>\n        turn right (15) degrees\n    end\nend\nif <(level) = [9]> then\n    show\n    switch costume to (costume1 v)\n    point in direction (90)\n    set size to (100) %\n    go to x: (-169) y: (0)\n    repeat until <not <(level) = [9]>>\n        wait (0.5) seconds\n        switch costume to (costume3 v)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n    end\nend\n\nif <(level) = [1]> then\n\nshow\ngo to x: (59) y: (1)\n\n\n\nbroadcast (message1 v)\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@danger2\n\nwhen flag clicked\nswitch backdrop to (future-science-laboratory-human-genetics-researcher-workplace-interior-cartoon_1441-3026 v)\nset size to (100) %\npoint in direction (90)\nshow\nswitch costume to (costume1 v)\nforever\n    if <(level) = [1]> then\n        show\n        go to x: (59) y: (1)\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n    end\nend\n\n\n\nwhen I receive [message1 v]\nswitch costume to (costume1 v)\nhide\nif <(level) = [1]> then\n    set size to (100) %\n    point in direction (90)\n    show\n    go to x: (59) y: (1)\n    repeat until <not <(level) = [1]>>\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n    end\nend\nif <(level) = [2]> then\n    stop [other scripts in sprite v]\n    switch backdrop to (stop-danger-warning-attention-background_176503-28 v)\n    go to x: (6) y: (-180)\n    set size to (94) %\n    switch costume to (costume3 v)\n    show\n    repeat until <not <(level) = [2]>>\n        turn right (15) degrees\n    end\nend\nif <(level) = [3]> then\n    switch costume to (costume3 v)\n    go to [front v] layer\n    show\n    set size to (94) %\n    broadcast (zueeeeezueeeee v)\n    go to x: (220) y: (-180)\n    wait (1) seconds\n    repeat until <not <(level) = [3]>>\n        glide (1) secs to x: (-50) y: (-180)\n        glide (1) secs to x: (220) y: (-180)\n    end\nend\nif <(level) = [9]> then\n    show\n    switch costume to (costume2 v)\n    point in direction (90)\n    set size to (100) %\n    go to x: (-87) y: (0)\n    repeat until <not <(level) = [9]>>\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [zueeeeezueeeee v]\nrepeat until <not <(level) = [3]>>\n    turn right (15) degrees\nend\n\nwhen I start as a clone\nshow\nrepeat until <(x position) = [-240]>\n    change x by (-10)\n    if <touching (player v)?> then\n        change [lives v] by (-1)\n        delete this clone\n    end\nend\ndelete this clone\n\nswitch backdrop to (1231686 v)\n\nwhen I receive [message1 v]\ndelete this clone\n\nglide (2) secs to x: (-240) y: (y position)\n\nturn right (15) degrees\n\nrepeat until <not <(level) = [1]>>\nend\n\nset size to (100) %\npoint in direction (90)\nshow\ngo to x: (59) y: (1)\n\nrepeat (4)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Sprite1\n\nwhen flag clicked\nshow\nset [level v] to [1]\nforever\n    if <(level) = [10]> then\n        hide\n    end\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (-200)\nforever\n    go to [back v] layer\n    if <(level) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) = [1]> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@danger3\n\nwhen I receive [message1 v]\nset size to (60) %\nhide\nif <(level) = [5]> then\n    switch costume to (costume1 v)\n    show\n    go to x: (20) y: (-144)\nend\nif <(level) = [8]> then\n    switch costume to (costume2 v)\n    show\n    go to x: (271) y: (-141)\nend\nif <(level) = [9]> then\n    switch costume to (costume3 v)\n    show\n    go to x: (133) y: (-21)\nend\nif <(level) = [10]> then\n    go to x: (-50) y: (22)\n    switch costume to (costume4 v)\n    show\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@lava\n\nwhen I receive [message1 v]\nhide\nif <(level) = [6]> then\n    switch costume to (costume1 v)\n    show\nend\nif <(level) = [7]> then\n    switch costume to (costume2 v)\n    show\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@bomb\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nhide\nif <(level) = [6]> then\n    show\nend\n\nwhen I receive [rebomb v]\nif <(level) = [6]> then\n    show\nend\n\nwhen I receive [bombhide v]\nwait (0.03) seconds\nhide\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@bomb2\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nhide\nif <(level) = [6]> then\n    show\nend\n\nwhen I receive [rebomb v]\nif <(level) = [6]> then\n    show\nend\n\nwhen I receive [bombhide2 v]\nhide\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@trampoline\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nhide\nif <(level) = [7]> then\n    go to x: (-105) y: (-113)\n    switch backdrop to (flat-natural-background-with-landscape_23-2148247455 v)\n    show\nend\nif <(level) = [9]> then\n    show\n    go to x: (43) y: (-106)\nend\nif <(level) = [10]> then\n    show\n    go to x: (-103) y: (-106)\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@trampoline2\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nhide\nif <(level) = [7]> then\n    go to x: (129) y: (-108)\n    switch backdrop to (flat-natural-background-with-landscape_23-2148247455 v)\n    show\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@axe\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [message1 v]\nhide\nif <(level) = [8]> then\n    show\n    go to x: (0) y: (190)\n    set size to (100) %\n    point in direction (90)\n    repeat (30)\n        turn left (3) degrees\n    end\n    repeat (60)\n        turn right (3) degrees\n    end\n    repeat until <not <(level) = [8]>>\n        repeat (60)\n            turn left (3) degrees\n        end\n        repeat (60)\n            turn right (3) degrees\n        end\n    end\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@family\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [10]> then\n        show\n    else\n        hide\n    end\nend\n\n\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@download__8_-removebg-preview\n\nwhen flag clicked\ngo to x: (-162) y: (157)\nswitch costume to (3 v)\n\nwhen flag clicked\nforever\n    if <(lives) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(lives) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(lives) = [1]> then\n        switch costume to (1 v)\n    end\nend\n\nwhen I receive [message1 v]\nset [lives v] to [3]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@knifes\n\nwhen I start as a clone\nshow\nrepeat until <(x position) = [-240]>\n    change x by (-10)\n    if <touching (player v)?> then\n        start sound [pop v]\n        change [lives v] by (-1)\n        broadcast (goback v)\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [message1 v]\nif <(level) = [4]> then\n    repeat until <not <(level) = [4]>>\n        point in direction (70)\n        switch costume to (knife-removebg-preview v)\n        hide\n        set size to (60) %\n        go to x: (240) y: (pick random (-6) to (-140))\n        create clone of (_myself_ v)\n        wait (1.5) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\ndelete this clone\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\n\n@mGR8T OC\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\ngo to [front v] layer\nshow\nforever\n    play sound [Coffin dance bear2 v] until done\nend\n\n@Sprite3\n\nwhen I receive [outro v]\nset size to (100) %\nhide\nforever\n    go to x: (pick random (-240) to (240)) y: (200)\n    create clone of (_myself_ v)\n    wait (0.15) seconds\nend\n\nwhen I start as a clone\nshow\nforever\n    change y by (-6)\n    if <(y position) < [-180]> then\n        delete this clone\n    end\nend\n\nchange size by (10)\n\nchange size by (-10)\n\nwhen I start as a clone\nforever\n    change size by (20)\n    wait (0.2) seconds\n    change size by (-20)\n    wait (0.2) seconds\nend\n\n@Sprite4\n\nwhen I receive [outro v]\nset size to (100) %\nhide\nforever\n    go to x: (pick random (-240) to (240)) y: (200)\n    create clone of (_myself_ v)\n    wait (0.15) seconds\nend\n\nwhen I start as a clone\nshow\nforever\n    change y by (-6)\n    if <(y position) < [-180]> then\n        delete this clone\n    end\nend\n\nchange size by (10)\n\nchange size by (-10)\n\nwhen I start as a clone\nforever\n    turn right (3) degrees\nend\n\nchange size by (20)\nwait (0.2) seconds\nchange size by (-20)\nwait (0.2) seconds\n\n@Sprite5\n\nwhen I receive [outro v]\nset size to (100) %\nhide\nforever\n    go to x: (pick random (-240) to (240)) y: (200)\n    create clone of (_myself_ v)\n    wait (0.15) seconds\nend\n\nwhen I start as a clone\nshow\nforever\n    change y by (-6)\n    if <(y position) < [-180]> then\n        delete this clone\n    end\nend\n\nchange size by (10)\n\nchange size by (-10)\n\nchange size by (20)\nwait (0.2) seconds\nchange size by (-20)\nwait (0.2) seconds\n\n@THUMBNAIL\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\n    go to x: (9) y: (19)\nend\n\n
TRENDING!!!  #15 \narrow keys to move\nnot mobile friendly yet!\nthere are 10 levels\nyou have three lives for each level\nyou have to lead the cube creature to it's home which is in level 10\nif you complete it let me know in the comments below!