Traveler 2 - A Platformer #All #Animations #Art #Games #Music #Stories #Tutorials #Platformers
@Stage\n\nwhen I receive [\[intro\] over v]\nforever\n    play sound [Marshmello - POWER v] until done\nend\n\n@Call\n\nwhen flag clicked\nwait (1) seconds\nbroadcast (Call v)\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\nwhen flag clicked\nwait (12) seconds\nbroadcast (\[Intro\] over v)\n\n@Ground\n\nwhen I receive [\[intro\] over v]\nshow\nset [scene v] to [1]\ngo to x: (0) y: (0)\nforever\n    switch costume to (SCENE)\nend\n\nwhen flag clicked\nhide\n\n@Spikes\n\nwhen I receive [\[intro\] over v]\nshow\nset [scene v] to [1]\nforever\n    switch costume to (SCENE)\nend\n\nwhen flag clicked\nhide\n\n@Lava\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nset [scene v] to [1]\n\nwhen I receive [\[intro\] over v]\nhide\nset [scene v] to [1]\nforever\n    show\n    go to [back v] layer\n    set y to (Magma)\n    switch costume to (SCENE)\nend\n\nwhen I receive [\[intro\] over v]\nhide\nforever\n    set [magma v] to [0]\n    repeat (10)\n        change [magma v] by (1)\n    end\n    repeat (20)\n        change [magma v] by (-1)\n    end\n    repeat (10)\n        change [magma v] by (1)\n    end\nend\n\n@detector\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nset [actions \(love/fave\) v] to [0]\nforever\n    set [touching v] to [none]\n    Detect [love] at [-201] [-220]\n    Detect [fave] at [-201] [-220]\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [love]>\n    wait (0) seconds\n    if <(touching) = [love]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [fave]>\n    wait (0) seconds\n    if <(touching) = [fave]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\n@Player Trail\n\nwhen flag clicked\nhide\nset [length v] to [50]\n\nwhen I start as a clone\nshow\nrepeat (length)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [\[intro\] over v]\nforever\n    set [costume v] to ([costume name v] of [player v])\n    set [direction v] to ([direction v] of [player v])\n    set [y v] to ([y position v] of [player v])\n    set [x v] to ([x position v] of [player v])\n    switch costume to (costume)\n    point in direction (direction)\n    go to x: (x) y: (y)\n    create clone of (_myself_ v)\nend\n\nshow\n\nchange [ghost v] effect by (10)\n\nwhen I receive [die v]\nhide\nwait (1) seconds\nshow\n\n@Player\n\nwhen flag clicked\ndelete all of [healths v]\nset rotation style [left-right v]\nreset\nsetup platformer\nbroadcast (Next Level v)\n\ndefine wall sensing bug\nif <<touching (ground v)?> or <touching (movin platformer v)?>> then\n    change y by (1)\nend\n\ndefine reset\nset [xvel v] to [0]\nset [yvel v] to [0]\nplay sound [High Whoosh v] until done\ngo to x: (-216) y: (40)\n\nwhen I receive [next level v]\nreset\n\ndefine setup platformer\nset [health v] to [7]\nset [gravity v] to [10]\nset [jump force v] to [15]\nset [speed v] to [1]\nset [scene v] to [1]\n\nwhen I receive [\[intro\] over v]\nforever\n    Show Health (health) of [7] offset y [-40]\n    if <(health) < [1]> then\n        start sound [Wood Tap v]\n        broadcast (__Screen Wipe v)\n        set [scene v] to [1]\n        set [health v] to [7]\n    end\n    left and right controls\n    wall sensing bug\n    wall sensing bug\n    wall sensing bug\n    wall sensing bug\n    walljumping/sensing\n    wall sensing\n    jumping\n    if <(x position) > [239]> then\n        broadcast (__Screen Wipe v)\n        broadcast (Next Level v) and wait\n        change [scene v] by (1)\n    end\n    if <<touching (lava v)?> or <<touching (spikes v)?> or <touching (saws v)?>>> then\n        if <(Actions \(love/fave\)) = [0]> then\n            broadcast (die v)\n            start sound [Wood Tap v]\n            change [health v] by (-1)\n            hide\n            wait (1) seconds\n            show\n            reset\n        end\n    end\n    if <touching (trampoline v)?> then\n        start sound [jump1 v]\n        set [yvel v] to [20]\n    end\nend\n\ndefine left and right controls\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [xvel v] by ((speed) - ((speed) * (2)))\n    set [direction v] to [-90]\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xvel v] by (speed)\n    set [direction v] to [90]\nend\nset [xvel v] to ((xvel) * (0.9))\nchange x by (xvel)\n\ndefine walljumping/sensing\nif <<touching (ground v)?> or <touching (movin platformer v)?>> then\n    change y by (-4)\n    change x by ((xvel) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(xvel) > ((gravity) + ((gravity) - ((gravity) * (2))))> then\n            set [xvel v] to (round ((gravity) - ((gravity) * (2))))\n        else\n            set [xvel v] to (round (gravity))\n        end\n        set [yvel v] to ((gravity) + ((gravity) - ((gravity) / (2))))\n    else\n        set [xvel v] to ((gravity) + ((gravity) - ((gravity) * (2))))\n    end\nend\n\ndefine wall sensing\nchange [yvel v] by ((((gravity) + ((gravity) - ((gravity) * (2)))) + (1)) * (-1))\nchange y by (yvel)\nif <<touching (ground v)?> or <touching (movin platformer v)?>> then\n    change y by ((yvel) - ((yvel) * (2)))\n    set [yvel v] to ((gravity) + ((gravity) - ((gravity) * (2))))\nend\nchange y by (-1)\n\ndefine jumping\nif <<<touching (ground v)?> or <touching (movin platformer v)?>> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    start sound [jump1 v]\n    set [yvel v] to (jump force)\nend\nchange y by (1)\n\nwhen I receive [\[intro\] over v]\nshow\nforever\n    broadcast (forever loop v)\nend\n\nwhen I receive [forever loop v]\npoint in direction (direction)\nset [x v] to (round (x position))\nset [y v] to (round (y position))\n\ndefine Show Health (health) of (max) offset y (y)\nadd (x position) to [healths v]\nadd ((y position) + (y)) to [healths v]\nadd ((health) / (max)) to [healths v]\ncreate clone of (health bar v)\n\nwhen flag clicked\nswitch costume to (red v)\n\nforever\n\nbroadcast (run v)\n\nwhen flag clicked\nhide\n\nwait until <(Actions \(love/fave\)) = [2]>\n\nset [health v] to [7]\nset [gravity v] to [10]\nset [jump force v] to [20]\nset [speed v] to [3]\nset [scene v] to [1]\n\nwhen flag clicked\nwait until <(Actions \(love/fave\)) = [2]>\nswitch costume to (blue v)\n\nwhen flag clicked\n\nwait until <(Actions \(love/fave\)) = [2]>\nset [health v] to [7]\nset [gravity v] to [10]\nset [jump force v] to [20]\nset [speed v] to [3]\nset [scene v] to [1]\nsetup platformer\n\nwhen flag clicked\nset [actions \(love/fave\) v] to [0]\n\nif <(username) = [-Ekdaukin]> then\n    set [health v] to [900000000000000000000000000]\nend\n\nset [gravity v] to [10]\nset [jump force v] to [15]\nset [speed v] to [1]\nset [scene v] to [1]\nif <[] = [50]> then\n\n@health bar\n\nwhen flag clicked\nhide\ndelete all of [healths v]\n\nwhen I start as a clone\nset x to (item (1) of [healths v])\nset y to (item (2) of [healths v])\nswitch costume to ((10) * (item (3) of [healths v]))\ndelete (1) of [healths v]\ndelete (1) of [healths v]\ndelete (1) of [healths v]\nif <not <touching (_edge_ v)?>> then\n    go to [front v] layer\n    show\n    wait (0) seconds\nend\ndelete this clone\n\ndefine show health bar (health) of (max) offset y (y)\nadd (x position) to [healths v]\nadd ((y position) + (y)) to [healths v]\nadd ((health) / (max)) to [healths v]\ncreate clone of (health bar v)\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [die]> then\n        go to [front v] layer\n        hide\n        wait (0) seconds\n        delete this clone\n    else\n        show\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\n@Mobile\n\nwhen I receive [\[intro\] over v]\nhide\nforever\n    if <mouse down?> then\n        set [ghost v] effect to (50)\n        go to (mouse-pointer v)\n        show\n        wait until <not <mouse down?>>\n        hide\n    end\nend\n\nset [joystickx v] to (x position)\nset [joysticky v] to (y position)\n\n@Mobile2\n\ndefine block name\nif <(mouse x) > (x position)> then\n    repeat until <<(round (x position)) = (round (mouse x))> or <(round (x position)) > (([x position v] of [mobile v]) + (19))>>\n        change x by (1)\n    end\nelse\n    if <(x position) > (mouse x)> then\n        repeat until <<(round (x position)) = (round (mouse x))> or <(([x position v] of [mobile v]) + (-19)) > (round (x position))>>\n            change x by (-1)\n        end\n    end\nend\nif <(mouse y) > (y position)> then\n    repeat until <<(round (y position)) = (round (mouse y))> or <(round (y position)) > (([y position v] of [mobile v]) + (19))>>\n        change y by (1)\n    end\nelse\n    if <(y position) > (mouse y)> then\n        repeat until <<(round (y position)) = (round (mouse y))> or <(([y position v] of [mobile v]) + (-19)) > (round (y position))>>\n            change y by (-1)\n        end\n    end\nend\n\nwhen I receive [\[intro\] over v]\npoint in direction (90)\nhide\nforever\n    if <mouse down?> then\n        set [ghost v] effect to (50)\n        go to (mobile v)\n        show\n        repeat until <not <mouse down?>>\n            block name\n        end\n        hide\n    end\nend\n\nforever\n    \n        say [Hello!]\n    else\n        say []\n    end\nend\n\n\n    move (1) steps\nend\n\nwhen flag clicked\n\nbroadcast (Play v)\n\n@Love and fave reminder2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (2.5) seconds\ngo to [front v] layer\n\nwhen flag clicked\n\nwhen I receive [\[intro\] over v]\nshow\ngo to x: (0) y: (0)\nforever\n    if <(Actions \(love/fave\)) < [2]> then\n        switch costume to (costume1 v)\n        go to x: (-80) y: (120)\n        show\n        go to [front v] layer\n        repeat (11)\n            change y by (-6)\n        end\n        repeat (7)\n            change y by (3)\n        end\n        repeat (6)\n            change y by (-2)\n        end\n        wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n        repeat (17)\n            change y by (7)\n        end\n        hide\n        stop [this script v]\n    else\n        stop [this script v]\n    end\nend\n\n@Transition\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [transition v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nset [ghost v] effect to (0)\nwait (0.3) seconds\ngo to [front v] layer\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [\[intro\] over v]\nhide\n\n@Saws\n\nwhen I receive [\[intro\] over v]\ngo to [back v] layer\nforever\n    hide\n    if <(SCENE) = [6]> then\n        go to x: (-120) y: (-104)\n        show\n        repeat (50)\n            turn right (8) degrees\n        end\n        repeat (50)\n            turn left (8) degrees\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\n@thumb\n\nwhen flag clicked\nhide\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\nwhen I receive [\[intro\] over v]\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n
PART 1: https://scratch.mit.edu/projects/788205966/\nPART 3: https://scratch.mit.edu/projects/791847708/\n\nIntro Contest: https://scratch.mit.edu/projects/795386630/\n\n✦✦✦Instructions✦✦✦\n➜ Use arrows to move the cube\n➜ Don't touch spikes.\n➜ Don't fall on lava.\n\n#23 on #All????\n#4 on #Animations???\n#3 on #Art????\n#10 on #Games???\n#2 on #Music????\n#1 on Stories???\n\n✦✦✦Credits✦✦✦\n➡️@-Ekdaukin, @--AwesomeCode--, @RadarX, @Quimexus\n\n\n\n\n\n\n\n\n\n\n#All #Animations #Art #Games #Music #Stories #Tutorials #Platformers