Save As - A Platformer

Instructions: Save As - A Platformer\n\nLaptop/Desktop: Use Arrow Keys To Move\n\nMobile: Touch Where You Want To Move\n\nWarning: This platformer may not be suitable for all ages, read and play at your own caution.

@Stage\n\nwhen flag clicked\nplay sound [934797_triplebarrel---The-Noise-E \(1\) v] until done\n\n@Player\n\ndefine Spin off screen\nset [dead? v] to [1]\nset [y v v] to [10]\nrepeat until <(y position) < [-179]>\n    switch costume to (death v)\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nhide\ngo to x: (-200) y: (-130)\nreset\n\ndefine reset\nswitch costume to (center v)\nclear graphic effects\nset [dead? v] to [0]\nset [x v v] to [0]\nset [y v v] to [0]\ngo to x: (-200) y: (0)\npoint in direction (90)\nset size to (120) %\nshow\n\nwhen I receive [start v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (over right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (over left v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <<not <key (up arrow v) pressed?>> and <<not <key (right arrow v) pressed?>> and <not >>> then\n        switch costume to (center v)\n    end\nend\n\nwhen I receive [start v]\nset [level v] to [1]\nset [dead? v] to [0]\nset size to (120) %\nreset\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (.9)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (moving platform v)?>> then\n                change y by (1)\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<mouse down?> and <((mouse y) - (y position)) > [50]>> and <touching (level v)?>>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (moving platform v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (moving platform v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [13]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-0.8)\n    change y by (Y v)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <<<<<touching (spikes v)?> or <touching (bottom spikes v)?>> or <touching (saws v)?>> or <touching (top spikes v)?>> and <(dead?) = [0]>> then\n        Spin off screen\n    end\nend\n\nset [y v v] to [16]\n\nwhen I receive [start v]\nswitch costume to (center v)\nforever\n    set [direction v] to (direction)\nend\n\nwhen I receive [start v]\nforever\n    if <(y position) = [-179]> then\n        switch costume to (death v)\n        Spin off screen\n        hide\n        wait (1) seconds\n        go to x: (-200) y: (0)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (effect v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <[239] < (x position)> then\n        go to x: (-200) y: (0)\n        change [level v] by (1)\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [redo v]\ngo to x: (-200) y: (0)\nshow\n\nwhen I receive [next level v]\ngo to x: (-200) y: (0)\n\nwhen I receive [start v]\nforever\n    if <key (d v) pressed?> then\n        switch costume to (over right v)\n    end\n    if <key (a v) pressed?> then\n        switch costume to (over left v)\n    end\nend\n\nwhen I receive [end v]\nhide\n\ngo to (random position v)\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\nwhen I receive [next level v]\ndelete this clone\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [14]> then\n        wait (pick random (1) to (5)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (2)\n    end\n    if <(Level) > [20]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nwait (1) seconds\nforever\n    if <(Level) > [20]> then\n        set [ghost v] effect to (100)\n        wait (pick random (1) to (5)) seconds\n        set [ghost v] effect to (0)\n        wait (pick random (0.5) to (1)) seconds\n        set [ghost v] effect to (100)\n        wait (pick random (0.5) to (1)) seconds\n        set [ghost v] effect to (0)\n        wait (pick random (0.5) to (1)) seconds\n        set [ghost v] effect to (100)\n    end\n    if <(Level) > [27]> then\n        go to x: (0) y: (0)\n        set [ghost v] effect to (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\n    if <(Level) > [37]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [37]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (16)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-16)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nwait (1) seconds\nforever\n    if <(Level) > [14]> then\n        wait (pick random (1) to (5)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (2)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\n    if <(Level) > [37]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [37]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (16)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-16)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n    end\nend\n\nchange x by (-8)\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Background\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (0)\npoint in direction (90)\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) = [5]> then\n        point in direction (85)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [4]> then\n        wait (pick random (1) to (5)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (4)\n    end\n    if <(Level) > [20]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nwait (1) seconds\nforever\n    if <(Level) = [15]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) = [21]> then\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) = [28]> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\n    if <(Level) > [37]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [37]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (16)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-16)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Shading\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Bottom Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Top Spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Opening\n\nwhen flag clicked\nforever\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) = [51]> then\n        set [ghost v] effect to (0)\n        broadcast (Save As v)\n        forever\n            go to [front v] layer\n            stop [this script v]\n        end\n    end\nend\n\n@Effects\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [14]> then\n        wait (pick random (0) to (0.5)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (2)\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Effects2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    hide\n    wait (0.001) seconds\n    show\n    wait (0.01) seconds\n    hide\n    wait (0.005) seconds\n    show\n    wait (0.1) seconds\n    hide\n    wait (0.01) seconds\n    show\n    wait (0.05) seconds\n    hide\n    wait (0.005) seconds\n    show\n    wait (0.1) seconds\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Shading2\n\nwhen flag clicked\nhide\nwait (1) seconds\nforever\n    if <[4] < (Level)> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (70)\nwait (1) seconds\nforever\n    if <[4] < (Level)> then\n        repeat (20)\n            change [ghost v] effect by (-0.5)\n        end\n        repeat (20)\n            change [ghost v] effect by (0.5)\n        end\n        repeat (20)\n            change [ghost v] effect by (-0.75)\n        end\n        repeat (20)\n            change [ghost v] effect by (0.75)\n        end\n    end\n    if <[14] < (Level)> then\n        repeat (20)\n            change [ghost v] effect by (-1)\n        end\n        repeat (20)\n            change [ghost v] effect by (1)\n        end\n        repeat (20)\n            change [ghost v] effect by (-2)\n        end\n        repeat (20)\n            change [ghost v] effect by (2)\n        end\n        if <(Level) > [20]> then\n            set [ghost v] effect to (100)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nrepeat (10)\n    go to [front v] layer\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [20]> then\n        repeat (10)\n            set [ghost v] effect to (100)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        repeat (10)\n            set [ghost v] effect to (40)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        repeat (10)\n            set [ghost v] effect to (20)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [37]> then\n        repeat (10)\n            set [ghost v] effect to (10)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [44]> then\n        repeat (10)\n            set [ghost v] effect to (5)\n        end\n        stop [this script v]\n    end\nend\n\n@Saws\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [4]> then\n        wait (pick random (1) to (5)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.5)) seconds\n        change x by (4)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [27]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-2)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (2)\n    end\n    if <(Level) > [32]> then\n        go to x: (0) y: (0)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) > [32]> then\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-4)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (-8)\n        wait (pick random (0.01) to (0.1)) seconds\n        change x by (4)\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n@Effect3\n\nwhen flag clicked\nshow\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nwait (1) seconds\nforever\n    if <(Level) = [8]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect1 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect1 v]\nforever\n    if <(Level) = [9]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect2 v]\nforever\n    if <(Level) = [10]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect3 v]\nforever\n    if <(Level) = [11]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect4 v]\nforever\n    if <(Level) = [12]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect5 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect5 v]\nforever\n    if <(Level) = [13]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect6 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect6 v]\nforever\n    if <(Level) = [14]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        broadcast (Effect7 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [effect7 v]\nforever\n    if <(Level) = [15]> then\n        set [ghost v] effect to (0)\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [save as v]\nstop [other scripts in sprite v]\n\n