Super Mario Maker - A Platformer Creator
@Stage\n\nwhen flag clicked\nwait (10) seconds\nbroadcast (ENDED v)\nforever\n    play sound [minecraft song v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nbroadcast (Call v)\n\ngo to [front v] layer\nshow\n\n@Intro\n\nwhen I start as a clone\nif <(ID) = [CircExplo1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (circexplo v)\n    set size to (1) %\n    set [ghost v] effect to (25)\n    set [brightness v] effect to (0)\n    set [svel v] to (SplSpeed)\n    set [xvel v] to (SplSpeed)\n    set [fisheye v] effect to (100)\n    show\n    repeat (25)\n        change size by (Svel)\n        change [xvel v] by ((Xvel) / (3))\n        change [fisheye v] effect by (Xvel)\n        set [svel v] to ((Svel) * ((SplGrSpeed) / (10)))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\ndefine Shake (vel) (deter) (domain)\nset [shake? v] to [0]\nset [var v] to [0]\nset [shakevel v] to [0]\nchange [shakevel v] by (vel)\nrepeat until <<(ShakeVel) < [0]> or <(ShakeVel) = [1]>>\n    set [camx v] to (([sin v] of ((Var) * (4)) ) * ((ShakeVel) / (10)))\n    set [camy v] to (([cos v] of ((Var) * (4)) ) * ((ShakeVel) / (10)))\n    set [camd v] to ((([sin v] of ((Var) * (4)) ) * ((ShakeVel) / (10))) + (90))\n    change [var v] by (domain)\n    set [shakevel v] to ((ShakeVel) - (deter))\nend\nset [shake? v] to [0]\n\nwhen I start as a clone\nif <not << (ID) contains [par]?> or << (ID) contains [border]?> or << (ID) contains [shutter]?> or < (ID) contains [line]?>>>>> then\n    wait (0) seconds\n    set [defx v] to (x position)\n    set [defy v] to (y position)\n    forever\n        go to x: ((DefX) + (CamX)) y: ((DefY) + (CamY))\n        point in direction ((CamD) + (Direction))\n    end\nend\n\nwhen I receive [end v]\nif <<(ID) = [text]> or < (ID) contains [end]?>> then\n    if <(ID) = [text]> then\n        set [svel v] to [2]\n        repeat until <[8.9] < (timer)>\n            switch costume to (size hack v)\n            change size by (Svel)\n            change [svel v] by ((Svel) / (2))\n            change [direction v] by ((Svel) / (15))\n            switch costume to (text v)\n        end\n        delete this clone\n    end\nelse\n    if < (ID) contains [fade]?> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\n    wait (1) seconds\n    delete this clone\nend\n\ndefine Clone (id) (#)\nset [id v] to (id)\nset [# v] to [1]\nrepeat (#)\n    create clone of (_myself_ v)\n    change [# v] by (1)\nend\n\ndefine Turn\npoint in direction (90)\nrepeat (#)\n    turn right ((360) / (7)) degrees\nend\n\nwhen I start as a clone\nif <(ID) = [Circ1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    switch costume to (circ2 v)\n    set size to (1) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    go to [back v] layer\n    go [forward v] (1) layers\n    set [svel v] to [5]\n    show\n    repeat (7)\n        change size by (Svel)\n        change [svel v] by ((Svel) / (2))\n    end\n    repeat (25)\n        switch costume to (size hack v)\n        change size by (((590) - (size)) / (7))\n        switch costume to (circ2 v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Spline1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (spline1 v)\n    set size to (50) %\n    go [forward v] (1) layers\n    point in direction (((#) * (45)) + (45))\n    move (1) steps\n    point in direction (Direction)\n    set [direction v] to (((#) * (45)) + (-45))\n    point in direction (((#) * (45)) + (45))\n    set [brightness v] effect to (0)\n    set [svel v] to (SplSpeed)\n    show\n    repeat (12)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        next costume\n        change size by (Svel)\n    end\n    repeat (2)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        change size by (Svel)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Chev1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    switch costume to (chev v)\n    set size to (1) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    set [direction v] to [0]\n    set [svel v] to [15]\n    show\n    if <[5.7] < (timer)> then\n        delete this clone\n    else\n        repeat until <[250] < (size)>\n            change size by ((((size) + (100)) / (2)) * (bump))\n        end\n        repeat until <[1000] < (size)>\n            switch costume to (size hack v)\n            change size by ((((size) + (40)) / (4)) * (bump))\n            switch costume to (chev v)\n            if <[5.7] < (timer)> then\n                set [rvel v] to [1]\n                repeat until <[6.2] < (timer)>\n                    switch costume to (size hack v)\n                    change size by (((450) - (size)) / (6))\n                    switch costume to (chev v)\n                    change [rvel v] by ((Rvel) / (3))\n                    change [direction v] by (Rvel)\n                    change [ghost v] effect by (0)\n                end\n                repeat until <[111] < (timer)>\n                    switch costume to (size hack v)\n                    change size by (((450) - (size)) / (6))\n                    switch costume to (chev v)\n                    change [rvel v] by (((1) - (Rvel)) / (4))\n                    change [direction v] by (Rvel)\n                end\n            end\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Text]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (180) y: (360)\n    set [defx v] to [240]\n    set [defy v] to [360]\n    switch costume to (text v)\n    set size to (115) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    go to [back v] layer\n    go [forward v] (3) layers\n    set [rvel v] to [5]\n    set [direction v] to [200]\n    set [yvel v] to [-4]\n    set [xvel v] to [-4]\n    wait until <[1] < (timer)>\n    show\n    set [svel v] to [3]\n    repeat until <[2] < (timer)>\n        set [yvel v] to (((Yvel) * (0.6)) + (((0) - (DefY)) / (5)))\n        change [defy v] by (Yvel)\n        set [xvel v] to (((Xvel) * (0.6)) + (((0) - (DefX)) / (5)))\n        change [defx v] by (Xvel)\n        set [rvel v] to (((Rvel) * (0.6)) + (((0) - (Direction)) / (5)))\n        change [direction v] by (Rvel)\n    end\n    set [svel v] to [1]\n    repeat until <[2.1] < (timer)>\n        set [yvel v] to (((Yvel) * (0.6)) + (((0) - (DefY)) / (5)))\n        change [defy v] by (Yvel)\n        set [xvel v] to (((Xvel) * (0.6)) + (((0) - (DefX)) / (5)))\n        change [defx v] by (Xvel)\n        set [rvel v] to (((Rvel) * (0.6)) + (((0) - (Direction)) / (5)))\n        change [direction v] by (Rvel)\n        change [svel v] by ((Svel) / (5))\n        change size by (Svel)\n    end\n    repeat until <[2.9] < (timer)>\n        set [yvel v] to (((Yvel) * (0.6)) + (((0) - (DefY)) / (5)))\n        change [defy v] by (Yvel)\n        set [xvel v] to (((Xvel) * (0.6)) + (((0) - (DefX)) / (5)))\n        change [defx v] by (Xvel)\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n    end\n    set [svel v] to [1]\n    repeat until <[3] < (timer)>\n        change [svel v] by ((Svel) / (2))\n        change size by (Svel)\n    end\n    repeat until <[3.8] < (timer)>\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n    end\n    set [svel v] to [1]\n    repeat until <[3.9] < (timer)>\n        change [svel v] by ((Svel) / (2))\n        change size by (Svel)\n    end\n    repeat until <[4.8] < (timer)>\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n    end\n    set [svel v] to [1]\n    repeat until <[4.9] < (timer)>\n        change [svel v] by ((Svel) / (2))\n        change size by (Svel)\n    end\n    repeat until <[5.7] < (timer)>\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n    end\n    set [svel v] to [1]\n    set [rvel v] to [1]\n    repeat until <[5.8] < (timer)>\n        change [svel v] by ((Svel) / (2))\n        change [rvel v] by ((Rvel) / (3))\n        change [direction v] by (Rvel)\n        change size by (Svel)\n    end\n    repeat until <[6.2] < (timer)>\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n        change [rvel v] by ((Rvel) / (3))\n        change [direction v] by (Rvel)\n    end\n    repeat until <[6.7] < (timer)>\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n        change [rvel v] by (((360) - (Rvel)) / (4))\n        set [direction v] to (Rvel)\n    end\n    set [svel v] to [1]\n    repeat until <[6.8] < (timer)>\n        change [svel v] by ((Svel) / (2))\n        change size by (Svel)\n        change [rvel v] by (((360) - (Rvel)) / (4))\n        set [direction v] to (Rvel)\n    end\n    repeat until <[7.7] < (timer)>\n        set [svel v] to (((Svel) * (0.6)) + (((115) - (size)) / (6)))\n        change size by (Svel)\n        change [rvel v] by (((360) - (Rvel)) / (4))\n        set [direction v] to (Rvel)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [flash]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    go [backward v] (2) layers\n    switch costume to (bar full v)\n    set size to (150) %\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (50)\n    show\n    repeat (10)\n        change [ghost v] effect by (7.5)\n    end\n    delete this clone\nend\n\ndefine Explosion || Amount: (#) Xpos: (xpos) Ypos: (ypos) ID: (splineid) Explosion Speed: (splspeed) Grow Speed: (splgrspeed)\nset [splinex v] to (xpos)\nset [spliney v] to (ypos)\nset [# v] to [1]\nset [id v] to (splineid)\nset [splspeed v] to (splspeed)\nset [splgrspeed v] to (splgrspeed)\nrepeat (#)\n    create clone of (_myself_ v)\n    change [# v] by (1)\nend\n\nwhen I start as a clone\nif <(ID) = [SplineLeft]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (spline1 v)\n    set size to (50) %\n    go [forward v] (1) layers\n    point in direction (((#) * (45)) + (45))\n    move (1) steps\n    point in direction (Direction)\n    set [direction v] to (((#) * (45)) + (-45))\n    point in direction (((#) * (45)) + (45))\n    set [brightness v] effect to (0)\n    set [svel v] to (SplSpeed)\n    show\n    repeat (12)\n        turn right ((Svel) / (-2)) degrees\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        next costume\n        change size by (Svel)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Border]> then\n    hide\n    switch costume to (pos hack v)\n    switch costume to (border1 v)\n    set size to (200) %\n    set [ghost v] effect to (85)\n    set [brightness v] effect to (0)\n    go to [front v] layer\n    go [forward v] (1) layers\n    show\n    if <(#) = [1]> then\n        go to x: (-220) y: (-50)\n        \n            repeat (20)\n                change y by (5.1)\n            end\n            set y to (-50)\n        end\n    else\n        go to x: (220) y: (50)\n        \n            repeat (20)\n                change y by (-5.1)\n            end\n            set y to (50)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [BrSpline1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (spline1 v)\n    set size to (50) %\n    go [forward v] (1) layers\n    point in direction (((#) * (45)) + (45))\n    move (1) steps\n    point in direction (Direction)\n    set [direction v] to (((#) * (45)) + (-45))\n    point in direction (((#) * (45)) + (45))\n    set [brightness v] effect to (100)\n    set [svel v] to (SplSpeed)\n    show\n    repeat (12)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        next costume\n        change size by (Svel)\n    end\n    repeat (2)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        change size by (Svel)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [flash2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (bar full v)\n    set size to (150) %\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (0)\n    show\n    repeat (20)\n        change [ghost v] effect by (7.5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Shutter]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (300)\n    switch costume to (shutter v)\n    set size to (100) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    go to [front v] layer\n    if <(#) = [1]> then\n        set [yvel v] to [-25]\n        set [xvel v] to [-10]\n        switch costume to (pos hack v)\n        go to x: (0) y: (300)\n        switch costume to (shutter v)\n    else\n        set [yvel v] to [25]\n        set [xvel v] to [10]\n        switch costume to (pos hack v)\n        go to x: (0) y: (-300)\n        switch costume to (shutter v)\n    end\n    wait until <[3.1] < (timer)>\nend\n\nwhen I start as a clone\nif <(ID) = [Shutter]> then\n    hide\n    set size to (100) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    go to [front v] layer\n    if <(#) = [1]> then\n        set [svel v] to [-3]\n        wait until <[1.3] < (timer)>\n        show\n        repeat (5)\n            go to [front v] layer\n            switch costume to (pos hack v)\n            change [svel v] by ((Svel) / (4))\n            change y by (Svel)\n            switch costume to (shutter v)\n        end\n        forever\n            go to [front v] layer\n            switch costume to (pos hack v)\n            change y by (((180) - (y position)) / (5))\n            switch costume to (shutter v)\n        end\n    else\n        set [svel v] to [3]\n        wait until <[1.3] < (timer)>\n        show\n        repeat (5)\n            go to [front v] layer\n            switch costume to (pos hack v)\n            change [svel v] by ((Svel) / (4))\n            change y by (Svel)\n            switch costume to (shutter v)\n        end\n        forever\n            go to [front v] layer\n            switch costume to (pos hack v)\n            change y by (((-180) - (y position)) / (5))\n            switch costume to (shutter v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [CircExplo2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (circexplo v)\n    set size to (1) %\n    set [ghost v] effect to (25)\n    set [brightness v] effect to (100)\n    set [svel v] to (SplSpeed)\n    set [xvel v] to (SplSpeed)\n    set [fisheye v] effect to (100)\n    show\n    repeat (25)\n        change size by (Svel)\n        change [xvel v] by ((Xvel) / (3))\n        change [fisheye v] effect by (Xvel)\n        set [svel v] to ((Svel) * ((SplGrSpeed) / (10)))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [SplineRight]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (spline1 v)\n    set size to (50) %\n    go [forward v] (1) layers\n    point in direction (((#) * (45)) + (45))\n    move (1) steps\n    point in direction (Direction)\n    set [direction v] to (((#) * (45)) + (-45))\n    point in direction (((#) * (45)) + (45))\n    set [brightness v] effect to (0)\n    set [svel v] to (SplSpeed)\n    show\n    repeat (12)\n        turn right ((Svel) / (2)) degrees\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        next costume\n        change size by (Svel)\n    end\n    delete this clone\nend\n\nwhen I receive [call v]\nreset timer\nwait until <[1.5] < (timer)>\nset [bump v] to [0]\nset [loops2 v] to [1]\nrepeat until <[8] < (timer)>\n    Clone [Chev1] [1]\n    Clone [ArrowLeft] [3]\n    Clone [ArrowRight] [3]\n    change [bump v] by (1)\n    wait until <((((0.93) * (loops2)) + (2)) - ()) < (timer)>\n    change [loops2 v] by (1)\n    Clone [Chev2] [1]\n    change [bump v] by (1)\n    wait until <((((0.93) * (loops2)) + (2)) - ()) < (timer)>\n    change [loops2 v] by (1)\nend\n\nwhen I receive [call v]\nrepeat (1)\n    delete this clone\nend\nhide\npoint in direction (90)\nreset timer\nstart sound [Sync 2D Gradient Intro Templat v]\nwait until <[1.2] < (timer)>\nClone [circ2] [1]\nwait until <[1.4] < (timer)>\nClone [circ1] [1]\nClone [shutter] [2]\nClone [text] [1]\nwait until <[2] < (timer)>\nClone [Text2] [1]\nClone [fade] [1]\nClone [Fade2] [1]\nClone [pars1] [60]\nClone [pars2] [60]\nClone [pars3] [60]\nClone [pars4] [60]\nwait until <[3.85] < (timer)>\nExplosion || Amount: [16] Xpos: [-180] Ypos: [100] ID: [line1] Explosion Speed: [15] Grow Speed: [5]\nwait until <[4.8] < (timer)>\nExplosion || Amount: [16] Xpos: [180] Ypos: [-100] ID: [line1] Explosion Speed: [15] Grow Speed: [5]\nwait until <[5.6] < (timer)>\nClone [pin] [1]\nClone [dots] [1]\nwait until <[6.7] < (timer)>\nExplosion || Amount: [16] Xpos: [0] Ypos: [0] ID: [line1] Explosion Speed: [30] Grow Speed: [7]\nwait until <[8.6] < (timer)>\nClone [end] [1]\n\nwhen I receive [call v]\nrepeat (1)\n    delete this clone\nend\nhide\nset [camd v] to [90]\nset [direction v] to [0]\nset [shakevel v] to [0]\nset [var v] to [0]\nset [defx v] to [0]\nset [defy v] to [0]\npoint in direction (90)\nShake [1] [2.5] [4]\nShake [20] [3] [6]\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(ID) = [Line1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (shrinkline1 v)\n    set size to (50) %\n    go [forward v] (1) layers\n    point in direction (((#) * (22.5)) + (22.5))\n    move (1) steps\n    point in direction (Direction)\n    set [direction v] to (((#) * (22.5)) + (-22.5))\n    point in direction (((#) * (22.5)) + (22.5))\n    set [brightness v] effect to (100)\n    set [svel v] to (SplSpeed)\n    show\n    repeat (8)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        move (Svel) steps\n        next costume\n    end\n    repeat (2)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        move (Svel) steps\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Line2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (SplineX) y: (SplineY)\n    switch costume to (shrinkline1 v)\n    set size to (50) %\n    go [forward v] (1) layers\n    point in direction (((#) * (45)) + (45))\n    move (1) steps\n    point in direction (Direction)\n    set [direction v] to (((#) * (45)) + (-45))\n    point in direction (((#) * (45)) + (45))\n    set [brightness v] effect to (0)\n    set [svel v] to (SplSpeed)\n    show\n    repeat (8)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        move (Svel) steps\n        next costume\n    end\n    repeat (2)\n        change [svel v] by (((0) - (Svel)) / (SplGrSpeed))\n        move (Svel) steps\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Chev2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    switch costume to (chev v)\n    set size to (1) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    set [direction v] to [90]\n    set [svel v] to [15]\n    show\n    if <[5.7] < (timer)> then\n        delete this clone\n    else\n        repeat until <[250] < (size)>\n            change size by ((((size) + (100)) / (2)) * (bump))\n        end\n        repeat until <[1000] < (size)>\n            switch costume to (size hack v)\n            change size by ((((size) + (40)) / (4)) * (bump))\n            switch costume to (chev v)\n            if <[5.7] < (timer)> then\n                set [rvel v] to [1]\n                repeat until <[6.2] < (timer)>\n                    switch costume to (size hack v)\n                    change size by (((450) - (size)) / (6))\n                    switch costume to (chev v)\n                    change [rvel v] by ((Rvel) / (3))\n                    change [direction v] by (Rvel)\n                    change [ghost v] effect by (0)\n                end\n                repeat until <[111] < (timer)>\n                    switch costume to (size hack v)\n                    change size by (((450) - (size)) / (6))\n                    switch costume to (chev v)\n                    change [rvel v] by (((1) - (Rvel)) / (4))\n                    change [direction v] by (Rvel)\n                end\n            end\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [call v]\nreset timer\nset [loops v] to [1]\nShake [25] [5] [8]\nwait until <[2] < (timer)>\nrepeat until <[8] < (timer)>\n    Clone [flash] [1]\n    set [shake? v] to [1]\n    Shake [50] [4] [6]\n    wait until <((((0.44) * (Loops)) + (2)) - ((0.44) * (1))) < (timer)>\n    change [loops v] by (1)\nend\n\nwhen I receive [call v]\nreset timer\nwait until <[1] < (timer)>\n\n    change [bump v] by (((0.03) - (bump)) / (4))\nend\n\nwhen I start as a clone\nif <(ID) = [flash2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    go [backward v] (2) layers\n    switch costume to (bar full v)\n    set size to (150) %\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (25)\n    show\n    repeat (10)\n        change [ghost v] effect by (7.5)\n    end\n    delete this clone\nend\n\nchange y by (Yvel)\n\nwhen I start as a clone\nif <(ID) = [fade]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (fade3 v)\n    set size to (125) %\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (100)\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    forever\n        go to [front v] layer\n        go [backward v] (2) layers\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [pars1]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (pick random (-300) to (250)) y: (pick random (-140) to (-160))\n    switch costume to (par1 v)\n    set size to (pick random (50) to (100)) %\n    set [ghost v] effect to (pick random (9) to (13))\n    set [brightness v] effect to (0)\n    set [direction v] to (pick random (45) to (15))\n    set [svel v] to (pick random (1) to (1.25))\n    show\n    wait ((#) / (5)) seconds\n    \n        switch costume to (pos hack v)\n        point in direction (Direction)\n        move ((Svel) + ((bump) * (8))) steps\n        switch costume to (par1 v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [pars2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (pick random (-300) to (250)) y: (pick random (-140) to (-160))\n    switch costume to (par2 v)\n    set size to (pick random (100) to (125)) %\n    set [ghost v] effect to (pick random (93) to (97))\n    set [brightness v] effect to (0)\n    set [direction v] to (pick random (45) to (15))\n    set [svel v] to (pick random (2.5) to (1.3))\n    show\n    wait ((#) / (10)) seconds\n    \n        switch costume to (pos hack v)\n        point in direction (Direction)\n        move ((Svel) + ((bump) * (8))) steps\n        switch costume to (par2 v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [ArrowLeft]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: ((-280) - (((#) * (65)) - (65))) y: (0)\n    switch costume to (arrowleft2 v)\n    set size to (100) %\n    set [ghost v] effect to (((#) * (30)) - (25))\n    set [brightness v] effect to (0)\n    set [direction v] to [0]\n    set [svel v] to [5]\n    wait until <[1.9] < (timer)>\n    show\n    \n        switch costume to (pos hack v)\n        change [defx v] by ((1) + ((35) * (bump)))\n        switch costume to (arrowleft2 v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [ArrowRight]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: ((280) + (((#) * (65)) - (65))) y: (0)\n    switch costume to (arrowleft v)\n    set size to (100) %\n    set [ghost v] effect to (((#) * (30)) - (25))\n    set [brightness v] effect to (0)\n    set [direction v] to [0]\n    set [svel v] to [-5]\n    wait until <[1.9] < (timer)>\n    show\n    \n        switch costume to (pos hack v)\n        change [defx v] by ((-1) + (((35) * (bump)) / (-1)))\n        switch costume to (arrowleft v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Text2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    set [defx v] to [0]\n    set [defy v] to [0]\n    switch costume to (text2 v)\n    set size to (115) %\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (0)\n    go to [back v] layer\n    go [forward v] (2) layers\n    set [direction v] to [0]\n    wait until <[1] < (timer)>\n    show\n    repeat (7)\n        change [ghost v] effect by (-10)\n    end\n    repeat until <[5.3] < (timer)>\n    repeat until <[6.8] < (timer)>\n        change [ghost v] effect by (25)\n    end\n    repeat (5)\n        change [ghost v] effect by (-25)\n    end\nend\n\nwhen I start as a clone\nif <<not < (ID) contains [par]?>> and <(timer) < [8.5]>> then\n    wait until <[7.7] < (timer)>\n    if < (ID) contains [arrow]?> then\n        set [ghost v] effect to (90)\n    end\n    repeat (40)\n        change [color v] effect by (35)\n        set [defx v] to (pick random (-8) to (8))\n        set [defy v] to (pick random (-8) to (8))\n        set [fisheye v] effect to (-9)\n        set [pixelate v] effect to (pick random (5) to (9))\n    end\n    set [color v] effect to (0)\n    set [defx v] to [0]\n    set [defy v] to [0]\nend\n\nwhen I start as a clone\nif <(ID) = [fade2]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (fade2 v)\n    set size to (125) %\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (100)\n    show\n    repeat (4)\n        change [ghost v] effect by (-10)\n    end\n    forever\n        go to [front v] layer\n        go [backward v] (2) layers\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [dots]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    go [backward v] (2) layers\n    switch costume to (size hack v)\n    set size to (800) %\n    switch costume to (dotted v)\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (0)\n    show\n    set [rvel v] to [-1]\n    repeat until <[6.2] < (timer)>\n        switch costume to (size hack v)\n        change size by (((300) - (size)) / (6))\n        switch costume to (dotted v)\n        change [rvel v] by ((Rvel) / (3))\n        change [direction v] by (Rvel)\n        change [ghost v] effect by (0)\n    end\n    repeat until <[111] < (timer)>\n        switch costume to (size hack v)\n        change size by (((300) - (size)) / (6))\n        switch costume to (dotted v)\n        change [rvel v] by (((-1) - (Rvel)) / (4))\n        change [direction v] by (Rvel)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [pin]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    go [backward v] (2) layers\n    switch costume to (pinwheel v)\n    set size to (150) %\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (97)\n    show\n    set [rvel v] to [1]\n    repeat until <[6.2] < (timer)>\n        change [rvel v] by ((Rvel) / (3))\n        change [direction v] by (Rvel)\n        change [ghost v] effect by (0)\n    end\n    repeat until <[111] < (timer)>\n        change [rvel v] by (((1) - (Rvel)) / (4))\n        change [direction v] by (Rvel)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [end]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (0) y: (-180)\n    set [defy v] to [-180]\n    set y to (-180)\n    switch costume to (end2 v)\n    set size to (1) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (0)\n    go to [front v] layer\n    go [forward v] (1) layers\n    set [svel v] to [5]\n    show\n    broadcast (End v)\n    repeat (7)\n        change size by (Svel)\n        change [svel v] by ((Svel) / (2))\n    end\n    repeat (35)\n        switch costume to (size hack v)\n        change size by (((800) - (size)) / (7))\n        switch costume to (end2 v)\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [pars3]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (pick random (-250) to (300)) y: (pick random (-140) to (-160))\n    switch costume to (par1 v)\n    set size to (pick random (50) to (100)) %\n    set [ghost v] effect to (pick random (9) to (13))\n    set [brightness v] effect to (0)\n    set [direction v] to (pick random (315) to (280))\n    set [svel v] to (pick random (1) to (1.25))\n    show\n    wait ((#) / (5)) seconds\n    \n        switch costume to (pos hack v)\n        point in direction (Direction)\n        move ((Svel) + ((bump) * (8))) steps\n        switch costume to (par1 v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [pars4]> then\n    hide\n    switch costume to (pos hack v)\n    go to x: (pick random (-250) to (300)) y: (pick random (-140) to (-160))\n    switch costume to (par2 v)\n    set size to (pick random (100) to (125)) %\n    set [ghost v] effect to (pick random (93) to (97))\n    set [brightness v] effect to (0)\n    set [direction v] to (pick random (315) to (280))\n    set [svel v] to (pick random (2.5) to (1.3))\n    show\n    wait ((#) / (10)) seconds\n    \n        switch costume to (pos hack v)\n        point in direction (Direction)\n        move ((Svel) + ((bump) * (8))) steps\n        switch costume to (par2 v)\n    end\nend\n\n@Player \n\nwhen I receive [ended v]\nforever\n    if <<<key (up arrow v) pressed?> and <(In Air?) < [8]>> or <<key (w v) pressed?> and <(In Air?) < [8]>>> then\n        set [y vel v] to [14]\n    end\n    if <<<touching color (#54983b)?> or <touching color (#428125)?>> or <touching color (#d24b0a)?>> then\n        broadcast (Die v)\n    end\n    if <touching color (#005ed6)?> then\n        set [y vel v] to [40]\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        move (7) steps\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        move (-7) steps\n    end\n    if <<[235] < (x position)> or <(x position) = [235]>> then\n        broadcast (Next v)\n        go to x: (-187) y: (52)\n    end\nend\n\ndefine Walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching color (#000000)?>> and <(Ground Lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(Ground Lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen I receive [delete clones v]\n\ndefine Handle Ground <moving up>\nrepeat until <not <touching color (#000000)?>>\n    if <moving up> then\n        change y by (-5)\n    else\n        change y by (1)\n        set [in air? v] to [0]\n    end\n    set [y vel v] to [0]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [ended v]\nwait (1) seconds\nshow\nswitch costume to (p l a y e r v)\ngo to [front v] layer\nshow\nset rotation style [left-right v]\ngo to x: (-193) y: (-34)\nset [y vel v] to [0]\nforever\n    change [y vel v] by (-2)\n    change y by (Y Vel)\n    change [in air? v] by (1)\n    Handle Ground <[0] < (Y Vel)>\nend\n\nwhen I receive [die v]\ngo to x: (-193) y: (-34)\nstart sound [classic_hurt v]\n\n\n\nif <<(x position) = [50]> or <[] < (x position)>> then\n\n@Level\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [ended v]\nwait (1) seconds\ngo to [front v] layer\nshow\n\n