Trapped Within Scratch platformer

Instructions: Here's the second one! https://scratch.mit.edu/projects/336940308/\narrow keys to move.\nspace bar to shoot good code at enemy.\n\nif @SewCool answers your comment instead of me, don't worry, she's my sister and i told her she could answer the comments.

@Stage\n\nwhen I receive [3 v]\nbroadcast (What v)\nstop [other scripts in sprite v]\nplay sound [Evil Laugh Sound Effect v] until done\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait (2) seconds\nswitch backdrop to (backdrop2 v)\nwait (.1) seconds\nswitch backdrop to (backdrop3 v)\nwait (.1) seconds\nswitch backdrop to (backdrop4 v)\nwait (.1) seconds\nswitch backdrop to (backdrop5 v)\nwait (.1) seconds\nswitch backdrop to (backdrop6 v)\nwait (.1) seconds\nswitch backdrop to (backdrop7 v)\nwait (.1) seconds\nswitch backdrop to (backdrop8 v)\nwait (.1) seconds\nswitch backdrop to (backdrop9 v)\nwait (.1) seconds\nswitch backdrop to (backdrop10 v)\nwait (.1) seconds\nswitch backdrop to (backdrop11 v)\nwait (.1) seconds\nswitch backdrop to (backdrop12 v)\nwait (.1) seconds\nswitch backdrop to (backdrop13 v)\nwait (.1) seconds\nswitch backdrop to (backdrop14 v)\nwait (.1) seconds\nswitch backdrop to (backdrop15 v)\nwait (.1) seconds\nswitch backdrop to (backdrop16 v)\nswitch backdrop to (1 v)\nwait (2) seconds\nswitch backdrop to (2 v)\nwait (.1) seconds\nswitch backdrop to (3 v)\nwait (.1) seconds\nswitch backdrop to (4 v)\nwait (.1) seconds\nswitch backdrop to (5 v)\nwait (.1) seconds\nswitch backdrop to (6 v)\nwait (.1) seconds\nswitch backdrop to (7 v)\nwait (.1) seconds\nswitch backdrop to (8 v)\nwait (.1) seconds\nswitch backdrop to (9 v)\nwait (.1) seconds\nswitch backdrop to (10 v)\nwait (.1) seconds\nswitch backdrop to (11 v)\nwait (.1) seconds\nswitch backdrop to (12 v)\nwait (.1) seconds\nswitch backdrop to (13 v)\nwait (.1) seconds\nswitch backdrop to (14 v)\nwait (.1) seconds\nswitch backdrop to (15 v)\nwait (.1) seconds\nswitch backdrop to (16 v)\nwait (3) seconds\nbroadcast (What v)\nnext backdrop\nplay sound [Evil Laugh Sound Effect v] until done\n\nwhen backdrop switches to [17 v]\nbroadcast (bradcast v)\nwait (5) seconds\n\nwhen I receive [bradcast v]\nbroadcast (nearly done v)\nswitch backdrop to (backdrop17 v)\nforever\n    stop [all v]\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\n\nwhen flag clicked\nforever\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\n    change [brightness v] effect by (-10)\n    wait (.2) seconds\nend\n\nwhen backdrop switches to [backdrop37 v]\nhide\n\nnext backdrop\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@finish\n\nwhen flag clicked\ngo to x: (42) y: (-4)\nhide\n\nwhen backdrop switches to [backdrop37 v]\nshow\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen backdrop switches to [backdrop41 v]\nset pen size to (10)\nshow\ngo to x: (-35) y: (-154)\nforever\n    glide (1) secs to x: (6) y: (-85)\n    glide (1) secs to x: (47) y: (-159)\n    glide (1) secs to x: (93) y: (-85)\n    glide (1) secs to x: (114) y: (-154)\n    glide (1) secs to x: (149) y: (-84)\n    glide (1) secs to x: (148) y: (-168)\n    erase all\n    wait (1.5) seconds\n    glide (1) secs to x: (95) y: (-79)\n    glide (1) secs to x: (57) y: (-163)\n    glide (1) secs to x: (18) y: (-75)\n    glide (1) secs to x: (-16) y: (-162)\n    glide (1) secs to x: (-35) y: (-81)\n    glide (1) secs to x: (-36) y: (-170)\n    erase all\n    wait (1.5) seconds\nend\n\nwhen backdrop switches to [backdrop41 v]\nforever\n    pen down\nend\n\nwhen flag clicked\nerase all\nhide\n\nwhen backdrop switches to [backdrop39 v]\nhide\npen up\nerase all\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [backdrop37 v]\nhide\n\nwhen backdrop switches to [backdrop37 v]\nhide\nerase all\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    set pen color to (#3800ff)\nend\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [1 v]\nshow\n\nwhen I receive [flash v]\nhide\n\nwhen I receive [2 v]\nhide\n\nwhen backdrop switches to [backdrop41 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [pass v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop41 v]\ngo to x: (15) y: (22)\nshow\n\nwhen I receive [2 v]\nhide\n\nwhen backdrop switches to [backdrop37 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@start over\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-59) y: (111)\nshow\nwait (5) seconds\nhide\n\nwhen this sprite clicked\nshow\nswitch backdrop to (backdrop37 v)\nbroadcast (3 v)\n\nwhen backdrop switches to [backdrop37 v]\nswitch costume to (costume2 v)\nforever\n    show\nend\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@script\n\nwhen I receive [pass v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [what v]\nforever\n    play sound [Song of Healing v] until done\nend\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Enemy ideas\n\nwhen backdrop switches to [backdrop47 v]\nswitch costume to (pico-d4 v)\ngo to x: (179) y: (76)\nshow\n\nwhen I receive [what v]\nforever\n    if <(good or bad?) = [3]> then\n        broadcast (die v)\n        wait (.5) seconds\n        hide\n        switch costume to (pico-d4 v)\n        set [good or bad? v] to [0]\n    end\nend\n\nwhen I receive [what v]\nforever\n    if <touching (your fire v)?> then\n        change [good or bad? v] by (1)\n        next costume\n        wait (.1) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop17 v]\nshow\nstop [other scripts in sprite v]\ngo to x: (26) y: (-122)\nswitch costume to (pico-a v)\n\nwhen flag clicked\nhide\nswitch costume to (pico-d4 v)\n\nwhen backdrop switches to [backdrop46 v]\nswitch costume to (pico-d4 v)\ngo to x: (187) y: (-114)\nshow\n\nwhen flag clicked\nset [good or bad? v] to [0]\n\nwhen I receive [3 v]\nhide\n\n@your fire\n\nwhen I receive [pass v]\nhide\ndelete this clone\n\nwhen I start as a clone\ngo to (character v)\nshow\ngo to [back v] layer\nrepeat until <<touching (enemy ideas2 v)?> or <<touching (_edge_ v)?> or <<touching (enemy ideas v)?> or <touching color (#4c97ff)?>>>>\n    change x by (10)\n    wait (.01) seconds\nend\nhide\ngo to (character v)\ndelete this clone\n\nset [x position v] to (x position)\n\nwhen I receive [what v]\nhide\nforever\n    if <key (space v) pressed?> then\n        repeat until <not <key (space v) pressed?>>\n            create clone of (_myself_ v)\n            wait (.2) seconds\n        end\n    end\nend\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@enimy fire\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nrepeat until <<touching (_edge_ v)?> or <<touching (character v)?> or <touching color (#4c97ff)?>>>\n    change x by (-10)\n    wait (.05) seconds\nend\nhide\ndelete this clone\n\nwhen I receive [pass v]\nhide\ndelete this clone\n\nwhen backdrop switches to [backdrop46 v]\nforever\n    create clone of (_myself_ v)\n    go to (enemy ideas v)\n    wait (1) seconds\nend\n\nwhen I receive [pass v]\nstop [other scripts in sprite v]\n\nwhen I receive [die v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen backdrop switches to [backdrop47 v]\nforever\n    create clone of (_myself_ v)\n    go to (enemy ideas v)\n    wait (1) seconds\n    create clone of (_myself_ v)\n    go to (enemy ideas2 v)\nend\n\nwhen I receive [die2 v]\nstop [other scripts in sprite v]\nbroadcast (99 v)\ndelete this clone\n\nwhen backdrop switches to [backdrop50 v]\nforever\n    create clone of (_myself_ v)\n    go to (i v)\n    wait (1) seconds\n    create clone of (_myself_ v)\n    go to (me v)\n    create clone of (_myself_ v)\n    go to (mi v)\n    wait (1) seconds\n    create clone of (_myself_ v)\n    go to (mine v)\nend\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [3 v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\n@Enemy ideas2\n\nwhen backdrop switches to [backdrop47 v]\nswitch costume to (pico-d4 v)\ngo to x: (190) y: (-48)\nshow\n\nwhen I receive [what v]\nforever\n    if <touching (your fire v)?> then\n        next costume\n        change [good or bad?2 v] by (1)\n        wait (.1) seconds\n    end\nend\n\nwhen I receive [what v]\nforever\n    if <(good or bad?2) = [3]> then\n        broadcast (die2 v)\n        wait (.5) seconds\n        hide\n        switch costume to (pico-d4 v)\n        set [good or bad?2 v] to [0]\n    end\nend\n\nwhen backdrop switches to [backdrop17 v]\nshow\nstop [other scripts in sprite v]\ngo to x: (-85) y: (-119)\nswitch costume to (pico-a v)\n\nwhen flag clicked\nhide\nswitch costume to (pico-d4 v)\n\nwhen backdrop switches to [backdrop47 v]\nswitch costume to (pico-d4 v)\ngo to x: (191) y: (-48)\nshow\n\nwhen flag clicked\nset [good or bad?2 v] to [0]\n\nwhen I receive [3 v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nhide\ngo to x: (17) y: (-152)\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop48 v]\nshow\nrepeat until <touching color (#4c97ff)?>\n    wait (1) seconds\n    next costume\nend\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@I\n\nwhen flag clicked\ngo to x: (90) y: (73)\nhide\n\nwhen backdrop switches to [backdrop50 v]\nshow\n\nwhen backdrop switches to [backdrop48 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Me\n\nwhen flag clicked\ngo to x: (-10) y: (-41)\nhide\n\nwhen backdrop switches to [backdrop50 v]\nshow\n\nwhen backdrop switches to [backdrop48 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Mi\n\nwhen flag clicked\ngo to x: (-91) y: (-91)\nhide\n\nwhen backdrop switches to [backdrop50 v]\nshow\n\nwhen backdrop switches to [backdrop48 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Mine\n\nwhen flag clicked\ngo to x: (40) y: (24)\nhide\n\nwhen backdrop switches to [backdrop50 v]\nshow\n\nwhen backdrop switches to [backdrop48 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@portal\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop51 v]\ngo to x: (-159) y: (134)\nshow\nforever\n    next costume\n    wait (.1) seconds\nend\n\nwhen backdrop switches to [backdrop52 v]\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@Character\n\nwhen I receive [what v]\nforever\n    if <touching (finish v)?> then\n        go to x: (-172) y: (-71)\n        broadcast (pass v)\n    end\nend\n\nwhen I receive [what v]\nforever\n    if <touching color (#808080)?> then\n        broadcast (2 v)\n    end\n    if <touching color (#cdb800)?> then\n        broadcast (1 v)\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\n\nwhen backdrop switches to [backdrop51 v]\nforever\n    if <touching (portal v)?> then\n        stop [other scripts in sprite v]\n        go to x: (-185) y: (147)\n        go to [front v] layer\n        wait (1) seconds\n        hide\n        wait (1) seconds\n        show\n        broadcast (What v)\n        broadcast (pass v)\n    end\nend\n\nwhen I receive [what v]\nset size to (100) %\ngo to x: (-172) y: (-71)\nshow\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    if <<touching color (#3800ff)?> or <<touching (enemy ideas v)?> or <touching (enemy ideas2 v)?>>> then\n        change [hearts v] by (-1)\n        broadcast (flash v) and wait\n        go to x: (-171) y: (-71)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#4c97ff)?> then\n        change y by (1)\n    end\n    if <touching color (#4c97ff)?> then\n        change y by (1)\n    end\n    if <touching color (#4c97ff)?> then\n        change y by (1)\n    end\n    if <touching color (#4c97ff)?> then\n        change y by (1)\n    end\n    if <touching color (#4c97ff)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#4c97ff)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#4c97ff)?>> then\n        set [y v] to [10]\n    end\n    change y by (1)\nend\n\nwhen I receive [bradcast v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [what v]\nforever\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        next costume\n        set [step v] to (costume [number v])\n        wait (0.05) seconds\n    else\n        switch costume to (costume1 v)\n        set [step v] to [1]\n    end\nend\n\nwhen I receive [what v]\nforever\n    if <touching color (#fab95f)?> then\n        set [y v] to [20]\n    end\nend\n\n@Capture0\n\nwhen flag clicked\ngo to x: (94) y: (13)\nshow\nwait (1.5) seconds\nhide\n\nwhen backdrop switches to [17 v]\nhide\nstop [other scripts in sprite v]\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\n