Big Tower Tiny Square | Platformer

Instructions: You are the pink square. Use the arrows keys or WASD to move. Avoid the lava (red), the gun, and the saws and spikes (gray). The bounce pads are orange. The checkpoints are green. Press R to respawn at the last checkpoint. The water (blue) slows you down. Get to the purple part to win!\nGood Luck. You'll need it!\nPlay in fullscreen for the best experience!\nPLEASE LOVE AND FAVORITE!!

@Stage\n\nwhen flag clicked\nforever\n    set [you failed to rescue pineapple and kill big square in v] to (join [0] (join (minutes) (join [:] (join [0] (seconds)))))\n    set [time v] to (join [0] (join (minutes) (join [:] (join [0] (seconds)))))\n    if <<(seconds) = [10]> or <(seconds) > [10]>> then\n        set [you failed to rescue pineapple and kill big square in v] to (join [0] (join (minutes) (join [:] (seconds))))\n        set [time v] to (join [0] (join (minutes) (join [:] (seconds))))\n    end\n    if <<(minutes) = [10]> or <(minutes) > [10]>> then\n        set [you failed to rescue pineapple and kill big square in v] to (join (minutes) (join [:] (join [0] (seconds))))\n        set [time v] to (join (minutes) (join [:] (join [0] (seconds))))\n    end\n    if <<<(seconds) = [10]> or <(seconds) > [10]>> and <<(minutes) = [10]> or <(minutes) > [10]>>> then\n        set [you failed to rescue pineapple and kill big square in v] to (join (minutes) (join [:] (seconds)))\n        set [time v] to (join (minutes) (join [:] (seconds)))\n    end\nend\n\nwhen [space v] key pressed\nshow variable [time v]\nshow variable [death v]\nforever\n    wait (1) seconds\n    change [seconds v] by (1)\n    if <(seconds) = [60]> then\n        set [seconds v] to [0]\n        change [minutes v] by (1)\n    end\nend\n\nwhen I receive [congratulations v]\nswitch backdrop to (you win v)\nhide variable [time v]\nshow variable [you failed to rescue pineapple and kill big square in v]\nhide variable [death v]\nshow variable [number of times you died: v]\nchange [amount of people who beat the game: v] by (1)\nshow variable [amount of people who beat the game: v]\nwait (5) seconds\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide variable [amount of people who beat the game: v]\nhide variable [number of times you died: v]\nhide variable [you failed to rescue pineapple and kill big square in v]\nhide variable [death v]\nset [time v] to [0]\nset [minutes v] to [0]\nset [seconds v] to [0]\nhide variable [time v]\nhide variable [minutes v]\nhide variable [seconds v]\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v) and wait\nset [color v] effect to (0)\nwait (1) seconds\nwait until <key (space v) pressed?>\nswitch backdrop to (lvl 1 v)\nstop [this script v]\n\nwhen I receive [hide3 v]\nwait (1) seconds\nswitch backdrop to (death v)\n\nbroadcast (hide3 v)\n\nswitch backdrop to (lvl 5 v)\n\n@Sprite1\n\nwhen flag clicked\nforever\n    play sound [Cool Music.mp3 v] until done\nend\n\n@thumbnail\n\nwhen flag clicked\nshow\nswitch costume to (vef5j5s-0 v)\nrepeat (91)\n    next costume\nend\nbroadcast (message1 v)\nswitch backdrop to (intro page v)\nhide\n\nwhen [space v] key pressed\nhide\nstop [other scripts in sprite v]\n\nbroadcast (message1 v)\nswitch backdrop to (intro page v)\nhide\n\nwhen [space v] key pressed\nhide\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen backdrop switches to [lvl 1 v]\nhide\n\nwhen I receive [message1 v]\nhide\nwait (1) seconds\nshow\nbroadcast (message2 v)\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen I receive [message2 v]\nwait (1) seconds\nshow\nbroadcast (message3 v)\n\nwhen backdrop switches to [lvl 1 v]\nhide\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen I receive [message3 v]\nwait (1) seconds\nshow\nbroadcast (message4 v)\n\nwhen backdrop switches to [lvl 1 v]\nhide\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite5\n\nwhen I receive [message4 v]\nwait (1) seconds\nshow\nbroadcast (message5 v)\n\nwhen backdrop switches to [lvl 1 v]\nhide\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite11\n\nwhen I receive [message6 v]\nwait (1) seconds\nshow\nset [ghost v] effect to (100)\nforever\n    repeat (50)\n        wait (0.01) seconds\n        change [ghost v] effect by (-2)\n    end\n    repeat (50)\n        wait (0.01) seconds\n        change [ghost v] effect by (2)\n    end\nend\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [lvl 1 v]\nhide\n\n@Sprite6\n\nwhen I receive [message5 v]\nwait (2) seconds\ngo to x: (-40) y: (-20)\nshow\nbroadcast (message6 v)\n\nwhen backdrop switches to [lvl 1 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [lvl 5 v]\nset size to (75) %\ngo to x: (-140) y: (865)\n\nwhen I receive [congratulations v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [congratulations v]\nshow\nforever\n    change [color v] effect by (25)\nend\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen I receive [congratulations v]\nshow\nforever\n    change [color v] effect by (25)\nend\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nwhen I receive [congratulations v]\nshow\nforever\n    change [color v] effect by (25)\nend\n\n@cube\n\nwhen I receive [play v]\nforever\n    change [y v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.8))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000008)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y v] to [5]\n    end\n    change y by (0.5)\n    show\n    if <touching color (#ff9400)?> then\n        set [y v] to [10]\n    end\n    if <touching color (#00ff55)?> then\n        set [checkx v] to (x position)\n        set [checky v] to (y position)\n    end\n    if <key (r v) pressed?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#00ffff)?> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 1 v]\nbroadcast (play v)\nset size to (100) %\nswitch costume to (ball-b v)\nshow\ngo to x: (-220) y: (-10)\nset [checkx v] to [-220]\nset [checky v] to [-10]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f7f7f)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f00ff)?> then\n        broadcast (lvl 2 v)\n        switch backdrop to (lvl 2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 2 v]\nswitch backdrop to (lvl 2 v)\ngo to x: (25) y: (-145)\nset [checkx v] to [25]\nset [checky v] to [-145]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f7f7f)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f00ff)?> then\n        broadcast (lvl 3 v)\n        switch backdrop to (lvl 3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 3 v]\nset size to (60) %\nswitch backdrop to (lvl 3 v)\ngo to x: (-30) y: (-165)\nset [checkx v] to [-30]\nset [checky v] to [-165]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f7f7f)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#003fff)?> then\n        broadcast (hide2 v)\n    end\n    if <touching color (#7f00ff)?> then\n        broadcast (lvl 4 v)\n        switch backdrop to (lvl 4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 4 v]\nswitch backdrop to (lvl 4 v)\ngo to x: (10) y: (-165)\nset [checkx v] to [10]\nset [checky v] to [-165]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f7f7f)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#ffff00)?> then\n        go to x: (-125) y: (-50)\n    end\n    if <touching color (#cccc00)?> then\n        go to x: (-180) y: (165)\n    end\n    if <touching color (#999900)?> then\n        go to x: (215) y: (140)\n    end\n    if <touching color (#003fff)?> then\n        broadcast (hide v)\n    end\n    if <touching color (#7f00ff)?> then\n        broadcast (lvl 5 v)\n        switch backdrop to (lvl 5 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 5 v]\nswitch backdrop to (lvl 5 v)\ngo to x: (-205) y: (-160)\nset [checkx v] to [-205]\nset [checky v] to [-160]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#7f7f7f)?> then\n        go to x: (checkX) y: (checkY)\n    end\n    if <touching color (#003fff)?> then\n        broadcast (hide3 v)\n    end\n    if <touching color (#0033cc)?> then\n        broadcast (hide4 v)\n    end\nend\n\nwhen I receive [lvl 5 v]\nforever\n    if <touching color (#00ff55)?> then\n        broadcast (say v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <not <touching color (#00ffff)?>>\n        broadcast (play v)\n    end\nend\n\nwhen flag clicked\nhide\nwait until <key (space v) pressed?>\nbroadcast (lvl 1 v)\n\nwhen flag clicked\nset [number of times you died: v] to [0]\nset [death v] to [0]\nforever\n    if <<touching color (#ff0000)?> or <touching color (#7f7f7f)?>> then\n        change [number of times you died: v] by (1)\n        change [death v] by (1)\n    end\nend\n\nwhen backdrop switches to [you win v]\ngo to x: (145) y: (-108)\n\nwhen I receive [play v]\nforever\n    repeat until <not <touching color (#00ffff)?>>\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x v] by (1)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x v] by (-1)\n        end\n        set [x v] to ((x) * (0.2))\n        change x by (x)\n    end\nend\n\n@trail\n\nwhen I start as a clone\nrepeat (4)\n    wait (0.05) seconds\n    go [backward v] (10000) layers\n    change [ghost v] effect by (25)\nend\ndelete this clone\n\nwhen I receive [lvl 1 v]\nshow\nforever\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    go to (cube v)\n    go [backward v] (1000) layers\nend\n\nwhen flag clicked\nhide\n\n@saw1\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nforever\n    turn right (15) degrees\nend\n\nwhen I receive [lvl 1 v]\nset size to (100) %\nshow\ngo to x: (90) y: (140)\nforever\n    if <(backdrop [name v]) = [lvl 2]> then\n        stop [this script v]\n    else\n        glide (3) secs to x: (90) y: (10)\n        glide (3) secs to x: (90) y: (140)\n    end\nend\n\nwhen I receive [lvl 2 v]\nset size to (100) %\nshow\ngo to x: (5) y: (85)\nforever\n    if <(backdrop [name v]) = [lvl 3]> then\n        stop [this script v]\n    else\n        glide (3) secs to x: (3) y: (40)\n        glide (3) secs to x: (5) y: (85)\n    end\nend\n\nwhen I receive [lvl 4 v]\nhide\n\nwhen I receive [lvl 3 v]\nshow\ngo to x: (40) y: (60)\nforever\n    if <(backdrop [name v]) = [lvl 4]> then\n        stop [this script v]\n    else\n        glide (3) secs to x: (40) y: (-120)\n        glide (3) secs to x: (40) y: (60)\n    end\nend\n\nwhen I receive [lvl 5 v]\nhide\n\n@saw2\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nforever\n    turn right (15) degrees\nend\n\nwhen I receive [lvl 1 v]\nwait (3) seconds\nshow\ngo to x: (140) y: (140)\nforever\n    if <(backdrop [name v]) = [lvl 2]> then\n        stop [this script v]\n    else\n        glide (3) secs to x: (140) y: (10)\n        glide (3) secs to x: (140) y: (140)\n    end\nend\n\nwhen I receive [lvl 2 v]\nwait (3) seconds\nshow\ngo to x: (40) y: (85)\nforever\n    if <(backdrop [name v]) = [lvl 3]> then\n        stop [this script v]\n    else\n        glide (3) secs to x: (40) y: (45)\n        glide (3) secs to x: (40) y: (85)\n    end\nend\n\nwhen I receive [lvl 3 v]\nshow\ngo to x: (15) y: (55)\nforever\n    if <(backdrop [name v]) = [lvl 4]> then\n        stop [this script v]\n    else\n        glide (3) secs to x: (70) y: (55)\n        glide (3) secs to x: (15) y: (55)\n    end\nend\n\nwhen I receive [lvl 4 v]\nhide\n\nwhen I receive [lvl 5 v]\nhide\n\n@lvl1 moving platform\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 2 v]\nhide\n\nwhen I receive [lvl 3 v]\nhide\n\nwhen I receive [lvl 1 v]\ngo to x: (20) y: (55)\nshow\nforever\n    glide (3) secs to x: (20) y: (150)\n    glide (3) secs to x: (20) y: (55)\n    if <(backdrop [name v]) = [lvl 2]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl 5 v]\nhide\n\nwhen I receive [lvl 4 v]\ngo to x: (-100) y: (-150)\nshow\nforever\n    glide (2) secs to x: (-100) y: (-70)\n    glide (2) secs to x: (-100) y: (-150)\nend\n\n@saw3\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nforever\n    turn right (15) degrees\nend\n\nwhen I receive [lvl 1 v]\nhide\n\nwhen I receive [lvl 2 v]\nshow\ngo to x: (-135) y: (40)\nforever\n    if <(backdrop [name v]) = [lvl 3]> then\n        stop [this script v]\n    else\n    end\nend\n\nwhen I receive [lvl 3 v]\nwait (3) seconds\nshow\ngo to x: (20) y: (-110)\nforever\n    if <(backdrop [name v]) = [lvl 4]> then\n        go to x: (-20) y: (70)\n        stop [this script v]\n    else\n        glide (3) secs to x: (65) y: (-110)\n        glide (3) secs to x: (20) y: (-110)\n    end\nend\n\nwhen I receive [lvl 4 v]\nshow\ngo to x: (-20) y: (70)\nforever\n    if <(backdrop [name v]) = [lvl 5]> then\n        stop [this script v]\n    else\n    end\nend\n\nwhen I receive [lvl 5 v]\nhide\n\n@saw4\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nforever\n    turn right (15) degrees\nend\n\nwhen I receive [lvl 1 v]\nhide\n\nwhen I receive [lvl 2 v]\nshow\ngo to x: (-120) y: (40)\nforever\n    if <(backdrop [name v]) = [lvl 3]> then\n        stop [this script v]\n    else\n    end\nend\n\nwhen I receive [lvl 3 v]\nshow\ngo to x: (-110) y: (-90)\nforever\n    if <(backdrop [name v]) = [lvl 4]> then\n        stop [this script v]\n    else\n    end\nend\n\nwhen I receive [lvl 4 v]\nshow\ngo to x: (-20) y: (55)\nforever\n    if <(backdrop [name v]) = [lvl 5]> then\n        stop [this script v]\n    else\n    end\nend\n\nwhen I receive [lvl 5 v]\nhide\n\n@lvl 3 block\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 4 v]\nshow\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [lvl 3 v]\nhide\n\nwhen I receive [lvl 5 v]\nhide\n\nwhen I receive [lvl 5 v]\nhide\n\n@lvl 3 block2\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 4 v]\nshow\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [lvl 3 v]\nhide\n\nwhen I receive [lvl 5 v]\nhide\n\n@spike\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 1 v]\nhide\n\nwhen I receive [lvl 4 v]\nshow\npoint in direction (90)\ngo to x: (55) y: (-165)\nforever\n    if <(backdrop [name v]) = [lvl 5]> then\n        delete this clone\n    else\n        set [clone v] to [0]\n        repeat (10)\n            change [clone v] by (1)\n            create clone of (_myself_ v)\n        end\n    end\n    if <(backdrop [name v]) = [lvl 5]> then\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nif <(clone) = [1]> then\n    point in direction (90)\n    go to x: (-25) y: (-140)\nend\nif <(clone) = [2]> then\n    point in direction (180)\n    go to x: (-45) y: (-110)\nend\nif <(clone) = [3]> then\n    point in direction (-90)\n    go to x: (-100) y: (-70)\nend\nif <(clone) = [4]> then\n    point in direction (90)\n    go to x: (-225) y: (135)\nend\nif <(clone) = [5]> then\n    point in direction (90)\n    go to x: (-190) y: (55)\nend\nif <(clone) = [6]> then\n    point in direction (90)\n    go to x: (-225) y: (-35)\nend\nif <(clone) = [7]> then\n    point in direction (-90)\n    go to x: (170) y: (65)\nend\nif <(clone) = [8]> then\n    point in direction (-90)\n    go to x: (225) y: (20)\nend\nif <(clone) = [9]> then\n    point in direction (-90)\n    go to x: (170) y: (-5)\nend\nif <(clone) = [10]> then\n    point in direction (-90)\n    go to x: (225) y: (-50)\nend\n\nwhen I receive [lvl 3 v]\nhide\n\nwhen I receive [lvl 2 v]\nhide\n\nwhen I receive [lvl 5 v]\nhide\ndelete this clone\n\nwhen I receive [congratulations v]\nhide\ndelete this clone\n\n@pineapple\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 1 v]\nset size to (20) %\ngo to x: (-170) y: (130)\nshow\nsay [Help Me!!] for (2) seconds\nwait (3) seconds\nhide\n\nwhen I receive [lvl 2 v]\nhide\n\nwhen I receive [hide3 v]\ngo to x: (-185) y: (145)\nglide (1) secs to x: (-185) y: (90)\n\nwhen I receive [lvl 5 v]\nset size to (15) %\ngo to x: (-175) y: (145)\nshow\n\nwhen backdrop switches to [you win v]\ngo to x: (-185) y: (-140)\n\nwhen I receive [congratulations v]\nstop [other scripts in sprite v]\n\n@turret\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    point towards (cube v)\nend\n\nwhen I receive [lvl 1 v]\nhide\nwait until <key (space v) pressed?>\nshow\ngo to x: (-175) y: (-80)\nforever\n    switch costume to (costume1 v)\n    wait (3) seconds\n    switch costume to (costume2 v)\n    repeat (6)\n        wait (2) seconds\n        broadcast (shoot v)\n        start sound [laser2 v]\n    end\nend\n\nwhen I receive [lvl 1 v]\nforever\n    if <(backdrop [name v]) = [lvl 2]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [lvl 2 v]\nhide\n\nwhen I receive [lvl 3 v]\nforever\n    point towards (cube v)\nend\n\nwhen I receive [lvl 3 v]\nshow\ngo to x: (-220) y: (0)\nforever\n    switch costume to (costume1 v)\n    wait (3) seconds\n    switch costume to (costume2 v)\n    repeat (6)\n        wait (2) seconds\n        broadcast (shoot v)\n        start sound [laser2 v]\n    end\nend\n\nwhen I receive [lvl 5 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [lvl 4 v]\nforever\n    point towards (cube v)\nend\n\nwhen I receive [lvl 4 v]\nshow\ngo to x: (0) y: (105)\nforever\n    switch costume to (costume1 v)\n    wait (3) seconds\n    switch costume to (costume2 v)\n    repeat (6)\n        wait (2) seconds\n        broadcast (shoot v)\n        start sound [laser2 v]\n    end\nend\n\nwhen I receive [lvl 4 v]\nforever\n    if <(backdrop [name v]) = [lvl 5]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@bullet\n\nwhen I receive [shoot v]\ngo to (turret v)\nshow\npoint towards (cube v)\nrepeat until <touching color (#000000)?>\n    move (5) steps\nend\nhide\n\nwhen I receive [lvl 1 v]\nhide\ngo [backward v] (1e+54) layers\ngo to (turret v)\n\nwhen flag clicked\nhide\n\n@lvl4 block\n\nwhen I receive [lvl 3 v]\nshow\n\nwhen I receive [hide2 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 4 v]\nhide\n\nwhen I receive [lvl 5 v]\nhide\n\n@lvl4 vanishing blocks\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 4 v]\nforever\n    show\n    set [ghost v] effect to (100)\n    forever\n        repeat (10)\n            wait (0.5) seconds\n            change [ghost v] effect by (-10)\n        end\n        wait (5) seconds\n        repeat (10)\n            wait (0.5) seconds\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\nwhen I receive [lvl 5 v]\nhide\nstop [other scripts in sprite v]\n\n@lvl 5 block2\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 5 v]\nshow\n\nwhen I receive [hide4 v]\nhide\n\n@lvl 5 block1\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 5 v]\nshow\n\nwhen I receive [hide3 v]\nhide\n\n@lvl 5 block2(2)\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 5 v]\nshow\n\nwhen I receive [hide3 v]\nhide\n\n@boss\n\nwhen I receive [lvl 5 v]\nswitch costume to (costume1 v)\nset size to (40) %\ngo to x: (-95) y: (135)\nshow\n\nwhen flag clicked\nhide\ngo to x: (-95) y: (135)\nswitch costume to (costume1 v)\nset size to (40) %\ngo to x: (-95) y: (135)\n\nwhen I receive [say v]\nsay [You made it! You still can't kill me though! Muahahaha] for (2) seconds\nwait (3) seconds\nsay [What are you doing?] for (1) seconds\nsay [Uh oh] for (1) seconds\nsay [Don't go over there!] for (1) seconds\nsay [Hey!] for (1) seconds\nsay [Watch it!] for (1) seconds\n\nwhen I receive [hide4 v]\nwait (0.2) seconds\ngo to x: (-95) y: (120)\nswitch costume to (costume2 v)\nsay [NOOOOOOOO! I HATE LAVA!] for (2) seconds\nglide (1) secs to x: (-95) y: (80)\nswitch costume to (costume1 v)\nwait (1) seconds\nsay [HEY I'M ALIVE! Not even hurt, actually.] for (4) seconds\nsay [Guess lava doesn't kill me. Good to know.] for (4) seconds\nsay [Well you failed to rescue your pineapple and kill me.] for (4) seconds\nsay [Such a non-conclusive ending must be maddening. Oh well.] for (4) seconds\nbroadcast (congratulations v)\n\nwhen I receive [hide3 v]\nswitch costume to (costume2 v)\ngo to x: (-95) y: (120)\nsay [NOOO! That's the bridge collapse switch, not the wall opening switch!] for (2) seconds\nsay [You killed the Pineapple!] for (2) seconds\nswitch costume to (costume1 v)\ngo to x: (-95) y: (135)\nsay [I can't believe you've done this! ] for (2) seconds\nsay [Why would I put a switch that could kill me RIGHT HERE???] for (2) seconds\nsay [Now no one gets to be friends with the Pineapple.] for (2) seconds\n\nwhen backdrop switches to [you win v]\ngo to x: (-95) y: (-145)\n\nwhen I receive [congratulations v]\nstop [other scripts in sprite v]\n\nset [amount of people who beat the game: v] to [3]\n\n