Minecraft Platformer 4 #games #all #trending
@Stage\n\nwhen I receive [gamemusic v]\nforever\n    stop all sounds\n    play sound [fruit-ninja-original-theme-song-non-looped-version v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen I receive [levelup v]\nswitch backdrop to (Level)\n\nwhen I receive [gameover v]\nswitch backdrop to (won v)\n\n@Start End screens\n\nwhen flag clicked\nhide\nset [level v] to [1]\nbroadcast (gamemusic v)\ngo to x: (0) y: (0)\nshow\nswitch costume to (title v)\ngo to [front v] layer\nclear graphic effects\nwait (2) seconds\ngo to x: (0) y: (0)\nshow\nbroadcast (ShoeMeOptions v)\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nswitch costume to (designer v)\nrepeat (20)\n    change [brightness v] effect by (5)\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [3]> then\n    stop [this script v]\nend\nif <not <(costume [number v]) = [2]>> then\n    stop [this script v]\nend\nstop [other scripts in sprite v]\nif <<(mouse x) > [-72]> and <(mouse y) > [-125]>> then\n    stop [this script v]\nend\nif <(mouse y) > [107]> then\n    stop [this script v]\nend\nif <(mouse x) > [-71]> then\n    repeat (3)\n        switch costume to (instructions v)\n        wait (0.05) seconds\n        broadcast (ShowInstructions v)\n        go to [front v] layer\n        stop [this script v]\n    end\nend\nif <(mouse y) > [62]> then\n    if <(mouse x) > [-153]> then\n        broadcast (NextHead v)\n        stop [this script v]\n    else\n        broadcast (LastHead v)\n        stop [this script v]\n    end\nend\nif <(mouse y) > [15]> then\n    if <(mouse x) > [-153]> then\n        broadcast (NextEyes v)\n        stop [this script v]\n    else\n        broadcast (LastEyes v)\n        stop [this script v]\n    end\nend\nif <(mouse y) > [-33]> then\n    if <(mouse x) > [-153]> then\n        broadcast (NextBody v)\n        stop [this script v]\n    else\n        broadcast (LastBody v)\n        stop [this script v]\n    end\nend\nif <(mouse y) > [-78]> then\n    if <(mouse x) > [-153]> then\n        broadcast (NextFace v)\n        stop [this script v]\n    else\n        broadcast (LastFace v)\n        stop [this script v]\n    end\nend\nif <(mouse y) > [-127]> then\n    if <(mouse x) > [-153]> then\n        broadcast (LastTrail v)\n        stop [this script v]\n    else\n        broadcast (LastTrail v)\n        stop [this script v]\n    end\nend\nbroadcast (Random v)\nstop [this script v]\n\nhide\nbroadcast (Start v)\n\nwhen I receive [start v]\nhide\nplay sound [start v] until done\n\n@ControlCharacter\n\nwhen [up arrow v] key pressed\nchange y by (-1)\nif <touching (platforms v)?> then\n    set [yvelocity v] to [10]\nend\nchange y by (1)\n\nwhen I receive [start v]\nstop [other scripts in sprite v]\nset [mousetoswipe? v] to [No]\nset [yvelocity v] to [0]\nset [xvelocity v] to [0]\nset [ghost v] effect to (99)\nshow\ngo to x: (-170) y: (0)\ndelete all of [trailx v]\ndelete all of [traily v]\nrepeat (17)\n    add (x position) to [trailx v]\n    add (y position) to [traily v]\nend\nforever\n    PlotTrail\n    change [yvelocity v] by (-0.5)\n    if <[0] > (YVelocity)> then\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [0]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-1]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-2]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-3]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-4]> then\n                change y by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) < [-5]> then\n                change y by (-1)\n            end\n        end\n        if <(YVelocity) < [-6]> then\n            set [yvelocity v] to [-6]\n        end\n        if <touching (platforms v)?> then\n            set [yvelocity v] to [0]\n            change y by (1)\n        end\n    end\n    if <(YVelocity) > [0]> then\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [0]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(YVelocity) > [1]> then\n                change y by (1)\n            end\n        end\n        if <(YVelocity) < [-5]> then\n            set [yvelocity v] to [-5]\n        end\n        if <touching (platforms v)?> then\n            change y by (-1)\n            set [yvelocity v] to [0]\n        end\n    end\n    set [xvelocity v] to ((XVelocity) * (0.85))\n    if <<(XVelocity) < [1]> and <(XVelocity) > [-1]>> then\n        set [xvelocity v] to [0]\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xvelocity v] by (1.5)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xvelocity v] by (-1.5)\n    end\n    if <[0] > (XVelocity)> then\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [0]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-1]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-2]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-3]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-4]> then\n                change x by (-1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) < [-5]> then\n                change x by (-1)\n            end\n        end\n        if <touching (platforms v)?> then\n            change x by (1)\n            set [xvelocity v] to [0]\n        end\n        if <(XVelocity) < [-5]> then\n            set [xvelocity v] to [-5]\n        end\n    end\n    if <(XVelocity) > [0]> then\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [0]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [1]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [2]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [3]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [4]> then\n                change x by (1)\n            end\n        end\n        if <not <touching (platforms v)?>> then\n            if <(XVelocity) > [5]> then\n                change x by (1)\n            end\n        end\n        if <touching (platforms v)?> then\n            change x by (-1)\n            set [xvelocity v] to [0]\n        end\n        if <[5] < (XVelocity)> then\n            set [xvelocity v] to [5]\n        end\n    end\nend\n\nwhen [w v] key pressed\nchange y by (-1)\nif <touching (platforms v)?> then\n    set [yvelocity v] to [10]\nend\nchange y by (1)\n\nwhen I receive [restartlevel v]\nbroadcast (PositionControlCharacter v)\n\nwhen I receive [levelup v]\nbroadcast (PositionControlCharacter v)\n\nwhen I receive [controlleft v]\ngo to x: (-220) y: (78)\nset [xvelocity v] to [0]\n\ndefine PlotTrail\nadd (x position) to [trailx v]\nadd (y position) to [traily v]\ndelete (1) of [trailx v]\ndelete (1) of [traily v]\n\nwhen [down arrow v] key pressed\n\nchange y by (-1)\nif <(#FruitTimerSecondsLeft) > [0]> then\n    set [yvelocity v] to [-9]\nend\nchange y by (1)\n\nwhen I receive [positioncontrolcharacter v]\ngo to x: (-210) y: (-150)\n\nset [xvelocity v] to [0]\n\nclear graphic effects\n\nwhen I receive [restartlevel v]\ngo to x: (-210) y: (-100)\n\nrepeat until <(MouseToSwipe?) = [No]>\n    go to (mouse-pointer v)\n    PlotTrail\nend\n\nif <mouse down?> then\n    set [mousetoswipe? v] to [Yes]\nend\nset [mousetoswipe? v] to [No]\n\nclear graphic effects\n\nchange [level v] by (1)\nbroadcast (LevelUp v)\n\nhide\nstop [other scripts in sprite v]\ngo to x: (-400) y: (-800)\n\nwhen [space v] key pressed\nchange y by (-1)\nif <touching (platforms v)?> then\n    set [yvelocity v] to [10]\nend\nchange y by (1)\n\n@Platforms\n\nwhen I receive [levelup v]\nif <(Level) = [9]> then\n    broadcast (gameover v)\nelse\n    switch costume to (Level)\nend\n\nwhen I receive [launchfirstlevel v]\nswitch costume to (1 v)\nshow\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [freeze v]\nif <(Level) = [7]> then\n    switch costume to (level 7 iced v)\nend\n\nswitch costume to (wrtwer v)\nif <(Level) = [9]> then\n    broadcast (gameover v)\nend\n\n@Bombs\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levelup v]\nshow\nbroadcast (BombWobbleUpDown v)\nforever\n    switch costume to (Level)\n    if <touching (controlcharacter v)?> then\n        if <(BombDeflect?) = [On]> then\n            stop [other scripts in sprite v]\n            start sound [Clink v]\n            point towards (controlcharacter v)\n            turn right (180) degrees\n            repeat until <touching (_edge_ v)?>\n                move (20) steps\n            end\n            hide\n        else\n            broadcast (BombHit v)\n            broadcast (RestartLevel v)\n            start sound [boom v]\n        end\n    end\nend\n\nwhen I receive [on v]\n\nwhen I receive [off v]\nhide\n\nwhen I receive [bombwobbleupdown v]\ngo to [back v] layer\nshow\nforever\n    glide (2) secs to x: (0) y: (20)\n    glide (2) secs to x: (0) y: (0)\nend\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nset [bombdeflect? v] to [On]\n\n@Bombs2\n\nwhen I receive [gameover v]\n\nwhen I receive [levelup v]\nbroadcast (RollBombs v)\n\nwhen I receive [start v]\nhide\ngo to [back v] layer\n\nwhen flag clicked\nhide\nforever\n    if <touching (controlcharacter v)?> then\n        if <(BombDeflect?) = [On]> then\n            start sound [Clink v]\n            stop [other scripts in sprite v]\n            point towards (controlcharacter v)\n            turn right (180) degrees\n            repeat until <touching (_edge_ v)?>\n                move (20) steps\n            end\n            hide\n        else\n            broadcast (BombHit v)\n            broadcast (RestartLevel v)\n            start sound [mine v]\n        end\n    end\nend\n\nhide\nstop [other scripts in sprite v]\n\ngo to x: (-150) y: (-142)\n\nset y to (58)\n\nset [level v] to [6]\n\nwhen I receive [fruitclonewiper v]\ndelete this clone\n\nwhen I start as a clone\nshow\nforever\n    go to x: (240) y: (-142)\n    repeat (238)\n        turn right (-15) degrees\n        change x by (-2)\n        next costume\n        if <touching (controlcharacter v)?> then\n            if <(BombDeflect?) = [On]> then\n                stop [other scripts in sprite v]\n                point towards (controlcharacter v)\n                turn right (180) degrees\n                repeat until <touching (_edge_ v)?>\n                    move (20) steps\n                end\n                hide\n            else\n                broadcast (BombHit v)\n                broadcast (RestartLevel v)\n                start sound [mine v]\n            end\n        end\n    end\nend\n\nwhen I receive [restartlevel v]\ndelete this clone\n\nPositioning\n\nPositioning\n\ndefine Positioning\n\nwhen I receive [restartlevel v]\nbroadcast (RollBombs v)\n\nbroadcast (LevelUp v)\n\nwhen I receive [rollbombs v]\nbroadcast (FruitCloneWiper v)\nhide\nswitch costume to (1 v)\nhide\nif <(Level) = [2]> then\n    point in direction (90)\n    go to x: (37) y: (-75)\n    go to [front v] layer\n    show\n    forever\n        next costume\n    end\nend\nif <(Level) = [3]> then\n    point in direction (90)\n    go to [front v] layer\n    show\n    forever\n        go to x: (240) y: (-120)\n        repeat (238)\n            turn right (-15) degrees\n            change x by (-2)\n            next costume\n        end\n    end\nend\nif <(Level) = [4]> then\n    forever\n        point in direction (90)\n        go to [front v] layer\n        show\n        go to x: (240) y: (35)\n        repeat (52)\n            turn right (-15) degrees\n            change x by (-2)\n            next costume\n        end\n        repeat (59)\n            turn right (-15) degrees\n            change x by (-2)\n            change y by (-3)\n            next costume\n        end\n        repeat (120)\n            turn right (-15) degrees\n            change x by (-2)\n            next costume\n        end\n    end\nend\nif <(Level) = [5]> then\n    show\n    forever\n        go to x: (214) y: (-143)\n        point towards (controlcharacter v)\n        move ((200) - (distance to [controlcharacter v])) steps\n        point in direction (90)\n    end\nend\nif <(Level) = [6]> then\n    show\n    create clone of (_myself_ v)\n    wait (4) seconds\n    create clone of (_myself_ v)\n    forever\n        go to x: (-100) y: (100)\n        point towards (controlcharacter v)\n        move ((100) - ((distance to [controlcharacter v]) / (2))) steps\n        point in direction (90)\n    end\nend\n\n@lava\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo to x: (-193) y: (-175)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (80)\nend\n\nwhen I start as a clone\nshow\nforever\n    next costume\n    if <touching (controlcharacter v)?> then\n        start sound [Mine v]\n        broadcast (RestartLevel v)\n    end\nend\n\nplay sound [Mine v] until done\n\nwhen I receive [gameover v]\nwait (0.2) seconds\ndelete this clone\n\n@Joystick\n\nwhen I receive [start v]\nwait (0.1) seconds\ngo to x: (162) y: (-102)\nbroadcast (JoyMouseSenseDown v)\nforever\n    if <mouse down?> then\n        point towards (mouse-pointer v)\n        if <<(direction) > [-23]> and <(direction) < [23]>> then\n            switch costume to (n v)\n            if <(ControlOnGround) = [Yes]> then\n                set [yvelocity v] to [10]\n            end\n        end\n        if <<(direction) > [-68]> and <(direction) < [-23]>> then\n            switch costume to (nw v)\n            change [xvelocity v] by (-1.5)\n            if <(ControlOnGround) = [Yes]> then\n                set [yvelocity v] to [10]\n            end\n        end\n        if <<(direction) > [-125]> and <(direction) < [-68]>> then\n            switch costume to (w v)\n            change [xvelocity v] by (-1.5)\n        end\n        if <<(direction) > [23]> and <(direction) < [68]>> then\n            switch costume to (ne v)\n            change [xvelocity v] by (1.5)\n            if <(ControlOnGround) = [Yes]> then\n                set [yvelocity v] to [10]\n            end\n        end\n        if <<(direction) > [68]> and <(direction) < [125]>> then\n            change [xvelocity v] by (1.5)\n            switch costume to (e v)\n        end\n    end\nend\n\nhide\n\nwhen I receive [joymousesensedown v]\nclear graphic effects\nforever\n    if <mouse down?> then\n        show\n        go to [front v] layer\n        set [ghost v] effect to (50)\n        set [joyshowcounter v] to [0]\n    else\n        change [joyshowcounter v] by (1)\n        if <(JoyShowCounter) > [25]> then\n            switch costume to (neutral v)\n        end\n        if <(JoyShowCounter) > [50]> then\n            hide\n        end\n    end\nend\n\nwait (0.1) seconds\n\n@BombStrike\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [bombhit v]\nclear graphic effects\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nstart sound [boom v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (RestartLevel v)\nrepeat (70)\n    change [ghost v] effect by (1.5)\nend\nclear graphic effects\nhide\n\n@Head\n\nwhen I receive [nexthead v]\nnext costume\ngo to [front v] layer\n\nwhen I receive [lasthead v]\nswitch costume to ((costume [number v]) - (1))\ngo to [front v] layer\n\nwhen flag clicked\nhide\nset size to (80) %\ngo to x: (140) y: (0)\npoint in direction (90)\nswitch costume to (bandana v)\n\nwhen I receive [shoemeoptions v]\nclear graphic effects\nwait (0.5) seconds\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\nrepeat (3)\n    wait (0.1) seconds\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nset size to (20) %\nstop [other scripts in sprite v]\nshow\nforever\n    go to [front v] layer\n    go to (controlcharacter v)\n    if <(XVelocity) > [0]> then\n        point in direction (90)\n    end\n    if <(XVelocity) < [0]> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [random v]\nrepeat (pick random (5) to (15))\n    wait (0.1) seconds\n    next costume\nend\n\npoint in direction (90)\n\n@Eyes\n\nwhen I receive [random v]\nrepeat (pick random (5) to (15))\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I receive [nexteyes v]\ngo to [front v] layer\nclear graphic effects\nnext costume\n\nwhen I receive [lasteyes v]\ngo to [front v] layer\nswitch costume to ((costume [number v]) - (1))\nclear graphic effects\n\nwhen flag clicked\nhide\nset size to (80) %\ngo to x: (140) y: (0)\npoint in direction (90)\nswitch costume to (eyes3 v)\n\nwhen I receive [shoemeoptions v]\nclear graphic effects\nwait (0.6) seconds\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nset size to (20) %\nstop [other scripts in sprite v]\nshow\nforever\n    go to (controlcharacter v)\n    go to [front v] layer\n    if <(XVelocity) > [0]> then\n        point in direction (90)\n    end\n    if <(XVelocity) < [0]> then\n        point in direction (-90)\n    end\nend\n\n@Body\n\nwhen I receive [gameover v]\nbroadcast (ScoreDoubler v)\nwait (3) seconds\nforever\n    say [Hi.] for (2) seconds\n    say [If you liked the game] for (5) seconds\n    say [Please Love, Fav and Follow!] for (5) seconds\nend\n\nwhen I receive [random v]\nrepeat (pick random (5) to (15))\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I receive [nextbody v]\nnext costume\ngo to [front v] layer\ngo [backward v] (3) layers\nclear graphic effects\n\nwhen I receive [lastbody v]\nswitch costume to ((costume [number v]) - (1))\ngo to [front v] layer\ngo [backward v] (3) layers\nclear graphic effects\n\nwhen flag clicked\nhide\nset size to (80) %\npoint in direction (90)\ngo to x: (140) y: (0)\nswitch costume to (1 v)\n\nswitch costume to (7 v)\n\nwhen I receive [shoemeoptions v]\nclear graphic effects\nwait (0.5) seconds\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [start v]\nset size to (20) %\nstop [other scripts in sprite v]\nshow\nforever\n    go to [front v] layer\n    go [backward v] (3) layers\n    go to (controlcharacter v)\n    if <(XVelocity) > [0]> then\n        point in direction (90)\n    end\n    if <(XVelocity) < [0]> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [scoredoubler v]\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nset [scoreonfruitninja v] to ((ScoreOnFruitNinja) + (ScoreOnFruitNinja))\nsay [AWESOME SCORE!!!] for (2) seconds\n\n@Face\n\nwhen I receive [random v]\nrepeat (pick random (5) to (15))\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I receive [nextface v]\nnext costume\nclear graphic effects\n\nwhen I receive [lastface v]\nswitch costume to ((costume [number v]) - (1))\nclear graphic effects\n\nwhen flag clicked\nhide\nset size to (80) %\ngo to x: (140) y: (0)\npoint in direction (90)\nswitch costume to (1 v)\n\nwhen I receive [shoemeoptions v]\nclear graphic effects\nwait (0.5) seconds\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to [front v] layer\ngo [backward v] (3) layers\n\nwhen I receive [start v]\nset size to (20) %\nstop [other scripts in sprite v]\nshow\nforever\n    go to (controlcharacter v)\n    go to [front v] layer\n    go [backward v] (3) layers\n    if <(XVelocity) > [0]> then\n        point in direction (90)\n    end\n    if <(XVelocity) < [0]> then\n        point in direction (-90)\n    end\nend\n\n@Trail\n\nwhen I receive [random v]\nrepeat (pick random (5) to (15))\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I receive [nexttrail v]\nnext costume\n\nwhen I receive [lasttrail v]\nswitch costume to ((costume [number v]) - (1))\nclear graphic effects\n\nwhen flag clicked\nhide\nset size to (80) %\npoint in direction (90)\ngo to x: (3) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [shoemeoptions v]\nclear graphic effects\nwait (1.1) seconds\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to [front v] layer\ngo [backward v] (20) layers\n\nwhen I receive [start v]\nhide\nwait (0.1) seconds\nset size to (4) %\nset [ghost v] effect to (4)\nset [trailnumber v] to [1]\nrepeat (5)\n    create clone of (_myself_ v)\n    change size by (6)\n    change [trailnumber v] by (3)\nend\n\nwhen I start as a clone\nstop [other scripts in sprite v]\nshow\nforever\n    if <<([abs v] of ((x position) - ([x position v] of [controlcharacter v])) ) < [7]> and <([abs v] of ((y position) - ([y position v] of [controlcharacter v])) ) < [7]>> then\n        hide\n    else\n        show\n        point towards (controlcharacter v)\n        go to x: (item (TrailNumber) of [trailx v]) y: (item (TrailNumber) of [traily v])\n    end\nend\n\nwhen I receive [#releasethefruit v]\n\n@Fruit\n\nwhen I start as a clone\nshow\nrepeat until <touching (platforms v)?>\n    if <(YVelocityFruit) > [-6]> then\n        change [yvelocityfruit v] by (-0.2)\n    end\n    set [xvelocityfruit v] to ((XVelocityFruit) * (0.95))\n    change y by (YVelocityFruit)\n    turn right (FruitTwistLocal) degrees\n    change x by (XVelocityFruit)\n    if <(round (((costume [number v]) - (1)) / (3))) = (((costume [number v]) - (1)) / (3))> then\n        if <touching (controlcharacter v)?> then\n            next costume\n            start sound [splatter v]\n            change [comboscore v] by (1)\n            change [scoreonfruitninja v] by (1)\n            if <(Level) = [8]> then\n                change [scoreonfruitninja v] by (1)\n            end\n            set [fruittwistlocal v] to (pick random (0) to (10))\n            create clone of (_myself_ v)\n            next costume\n            set [xvelocityfruit v] to ((0) - (XVelocityFruit))\n            set [fruittwistlocal v] to (pick random (-10) to (0))\n            create clone of (_myself_ v)\n            delete this clone\n        end\n    end\n    if <([abs v] of (x position) ) > [237]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [#releasethefruit v]\nset [#fruittimersecondsleft v] to [30]\nswitch costume to (sandia v)\nif <(Level) = [1]> then\n    repeat until <(Level) = [2]>\n        go to x: (pick random (50) to (-50)) y: (200)\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (-10) to (-2))\n        set [yvelocityfruit v] to [-2]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.15) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [2]> then\n    repeat until <(Level) = [3]>\n        go to x: (-237) y: (pick random (0) to (100))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (2) to (12))\n        set [yvelocityfruit v] to [2]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [3]> then\n    repeat until <(Level) = [4]>\n        go to x: (237) y: (pick random (0) to (150))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (-10) to (-5))\n        set [yvelocityfruit v] to [4]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [4]> then\n    repeat until <(Level) = [5]>\n        go to x: (237) y: (pick random (0) to (150))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (-12) to (-8))\n        set [yvelocityfruit v] to [4]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        go to x: (-237) y: (pick random (0) to (150))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (15) to (20))\n        set [yvelocityfruit v] to [4]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [5]> then\n    repeat until <(Level) = [6]>\n        go to x: (237) y: (pick random (0) to (150))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (-4) to (-8))\n        set [yvelocityfruit v] to [4]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [6]> then\n    repeat until <(Level) = [7]>\n        go to x: (-237) y: (pick random (-100) to (-50))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (12) to (16))\n        set [yvelocityfruit v] to [10]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n        go to x: (237) y: (pick random (-80) to (30))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (-14) to (-10))\n        set [yvelocityfruit v] to [2]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [7]> then\n    repeat until <(Level) = [8]>\n        go to x: (-237) y: (pick random (-100) to (-50))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (12) to (16))\n        set [yvelocityfruit v] to [10]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n        go to x: (237) y: (pick random (60) to (150))\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (pick random (-14) to (-10))\n        set [yvelocityfruit v] to [2]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\nif <(Level) = [8]> then\n    repeat until <(Level) = [9]>\n        go to x: (pick random (-180) to (180)) y: (180)\n        set [fruittwistlocal v] to (pick random (-3) to (3))\n        set [xvelocityfruit v] to (((0) - ((x position) / (20))) * ((1) + ((pick random (-5) to (5)) / (10))))\n        set [yvelocityfruit v] to [-3]\n        switch costume to (((pick random (1) to (5)) * (3)) - (2))\n        wait (0.05) seconds\n        create clone of (_myself_ v)\n    end\n    wait (1.3) seconds\n    broadcast (gameover v)\nend\n\nhide\n\nset [level v] to [4]\n\nwait (0.2) seconds\ngo to x: (237) y: (pick random (60) to (150))\nset [fruittwistlocal v] to (pick random (-3) to (3))\nset [xvelocityfruit v] to (pick random (-14) to (-10))\nset [yvelocityfruit v] to [2]\nswitch costume to (((pick random (1) to (5)) * (3)) - (2))\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [levelup v]\ndelete this clone\n\nwait (1) seconds\n\n@Score\n\nwhen I receive [deletemyball v]\nset size to (215) %\nset [color v] effect to (-25)\nwait (1) seconds\nset size to (190) %\nclear graphic effects\n\nwhen I receive [dollarcollected v]\nset size to (215) %\nset [color v] effect to (-25)\nwait (1) seconds\nset size to (190) %\nclear graphic effects\n\nbroadcast (DollarCollected v)\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (10 v)\n    switch costume to (letter ((length of (ScoreOnFruitNinja)) - (Numeral)) of (ScoreOnFruitNinja))\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nhide\nswitch costume to (0 v)\nwait (0.5) seconds\nset [scoreonfruitninja v] to [0]\nset size to (300) %\ngo to x: (-110) y: (140)\nset [numeral v] to [0]\nrepeat (4)\n    wait (0) seconds\n    create clone of (_myself_ v)\n    change x by (-25)\n    change [numeral v] by (1)\nend\nswitch costume to (score v)\nshow\nset size to (100) %\nforever\n    wait (1) seconds\n    go to [front v] layer\nend\n\nwait (0.6) seconds\n\n@High2\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\nclear graphic effects\nset size to (150) %\ngo to x: (-130) y: (120)\nset [numeral v] to [0]\nwait (0.5) seconds\ngo to [front v] layer\nrepeat (4)\n    create clone of (_myself_ v)\n    change x by (-13)\n    change [numeral v] by (1)\nend\nswitch costume to (numbers invaders11 v)\nshow\n\nwhen I start as a clone\nshow\nswitch costume to (0 v)\nforever\n    switch costume to (10 v)\n    switch costume to (letter ((length of (☁ #BestScore)) - (Numeral)) of (☁ #BestScore))\n    wait (1) seconds\n    if <(ScoreOnFruitNinja) > (☁ #BestScore)> then\n        set [☁ #bestscore v] to (ScoreOnFruitNinja)\n    end\nend\n\n@Untitled\n\nwhen I receive [start v]\nforever\n    wait until <(ControlOnGround) = [No]>\n    set [comboscore v] to [0]\n    wait (0.1) seconds\n    wait until <(ControlOnGround) = [Yes]>\n    if <(ComboScore) > [2]> then\n        start sound [bling v]\n        if <(ComboScore) > [8]> then\n            change [scoreonfruitninja v] by (15)\n            switch costume to (10 v)\n        else\n            change [scoreonfruitninja v] by (ComboScore)\n            switch costume to (ComboScore)\n        end\n        if <(Level) = [8]> then\n            change [scoreonfruitninja v] by (ComboScore)\n        end\n        go to x: (0) y: (0)\n        point towards (controlcharacter v)\n        if <(distance to [controlcharacter v]) > [120]> then\n            move (120) steps\n        else\n            move (distance to [controlcharacter v]) steps\n        end\n        go to [front v] layer\n        show\n        wait (1) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@Timer\n\nwhen I receive [redbananashow v]\nset size to (50) %\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (10 v)\n    switch costume to (letter ((length of (#FruitTimerSecondsLeft)) - (Numeral)) of (#FruitTimerSecondsLeft))\n    go to [front v] layer\n    if <(#FruitTimerSecondsLeft) = [0]> then\n        hide\n    else\n        if <(#FruitTimerSecondsLeft) > [0]> then\n            show\n        end\n    end\nend\n\nwhen I receive [start v]\nset [#fruittimersecondsleft v] to [-1]\nhide\nswitch costume to (0 v)\nwait (0.5) seconds\nset [scoreonfruitninja v] to [0]\nset size to (300) %\ngo to x: (215) y: (140)\nset [numeral v] to [0]\nrepeat (2)\n    wait (0) seconds\n    create clone of (_myself_ v)\n    change x by (-25)\n    change [numeral v] by (1)\nend\nswitch costume to (zerothingy v)\nshow\nset size to (300) %\nforever\n    go to [front v] layer\n    change [#fruittimersecondsleft v] by (-1)\n    if <(#FruitTimerSecondsLeft) = [0]> then\n        hide\n        change [level v] by (1)\n        broadcast (LevelUp v)\n    else\n        if <(#FruitTimerSecondsLeft) > [0]> then\n            show\n            if <mouse down?> then\n                set [mousetoswipe? v] to [Yes]\n            else\n                set [mousetoswipe? v] to [No]\n            end\n        end\n    end\n    wait (1) seconds\nend\n\nbroadcast (LevelUp v)\n\nif  then\n\n@LevelText\n\nwhen I receive [start v]\ngo to x: (0) y: (20)\nset size to (80) %\nswitch costume to (1 v)\nshow\nrepeat (3)\n    repeat (20)\n        change size by (1)\n    end\n    repeat (20)\n        change size by (-1)\n    end\nend\n\nwhen I receive [gameover v]\nhide\n\nwhen I receive [levelup v]\nshow\nif <(Level) < [9]> then\n    switch costume to (level up v)\n    start sound [levelup v]\n    set size to (100) %\n    repeat (3)\n        repeat (25)\n            go to [front v] layer\n            change size by (2)\n            change [scoreonfruitninja v] by (2)\n        end\n        repeat (25)\n            go to [front v] layer\n            change size by (-2)\n            change [scoreonfruitninja v] by (2)\n        end\n    end\n    switch costume to (Level)\n    repeat (4)\n        repeat (20)\n            change size by (1)\n            go to [back v] layer\n        end\n        repeat (20)\n            change size by (-1)\n            go to [back v] layer\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nset [scoreonfruitninja v] to [0]\n\n@portal\n\nwhen flag clicked\nhide\nset size to (100) %\nbroadcast (PortalPositioning v)\nforever\n    next costume\nend\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [portalpositioning v]\nset [level v] to [1]\ngo to x: (-42) y: (76)\nshow\nset size to (50) %\nbroadcast (RedBananaShow v)\nforever\n    if <touching (controlcharacter v)?> then\n        hide\n        start sound [start v]\n        broadcast (#ReleaseTheFruit v)\n        set [levelwas v] to (Level)\n        wait until <not <(Level) = (LevelWas)>>\n        wait (0.1) seconds\n        show\n    end\nend\n\nwhen I receive [levelup v]\nif <(Level) = [2]> then\n    go to x: (-50) y: (91)\nend\nif <(Level) = [3]> then\n    go to x: (-50) y: (32)\nend\nif <(Level) = [4]> then\n    go to x: (200) y: (58)\n    set [freeze? v] to [Not Yet]\n    repeat until <(fREEZE?) = [Yes]>\n        set y to ((270) - ((distance to [controlcharacter v]) / (1)))\n    end\n    set y to (-135)\nend\nif <(Level) = [5]> then\n    go to x: (222) y: (-138)\nend\nif <(Level) = [6]> then\n    go to x: (-219) y: (95)\nend\nif <(Level) = [7]> then\n    go to x: (218) y: (-139)\nend\nif <(Level) = [87]> then\n    go to x: (218) y: (-139)\nend\n\nwhen I receive [redbananashow v]\nset size to (50) %\nforever\n    repeat (2)\n        repeat (10)\n            change size by (1)\n        end\n        repeat (10)\n            change size by (-1)\n        end\n    end\n    wait (1) seconds\nend\n\ngo to x: (177) y: (162)\n\nif <(Level) = [4]> then\n    go to x: (222) y: (-132)\nend\nif <(Level) = [6]> then\n    go to x: (112) y: (133)\nend\nif <(Level) = [7]> then\n    go to x: (148) y: (50)\nend\nif <(Level) = [8]> then\n    go to x: (142) y: (145)\nend\nif <(Level) = [9]> then\n    go to x: (220) y: (-138)\nend\nif <(Level) = [10]> then\n    go to x: (220) y: (-132)\nend\n\nset [level v] to [6]\n\n@blue flame\n\nwhen I receive [#releasethefruit v]\nrepeat until <(#FruitTimerSecondsLeft) = [0]>\n    go to x: (([x position v] of [controlcharacter v]) - (5)) y: (([y position v] of [controlcharacter v]) - (50))\n    next costume\n    show\n    change [yvelocity v] by (0.2)\nend\nhide\n\ngo to x: (-3) y: (-2)\n\nwhen flag clicked\nhide\n\nset [#fruittimersecondsleft v] to [0]\n\n@blue flame2\n\nwhen I receive [#releasethefruit v]\nrepeat until <(#FruitTimerSecondsLeft) = [0]>\n    go to x: (([x position v] of [controlcharacter v]) - (-5)) y: (([y position v] of [controlcharacter v]) - (50))\n    next costume\n    show\nend\nhide\n\ngo to x: (-3) y: (-2)\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nset [ghost v] effect to (99)\nshow\nforever\n    go to (controlcharacter v)\n    if <touching (platforms v)?> then\n        set [controlonground v] to [Yes]\n    else\n        set [controlonground v] to [No]\n    end\nend\n\n@Layercake\n\nwhen flag clicked\nhide\nrepeat (100)\n    create clone of (_myself_ v)\n    go to [front v] layer\nend\n\n@Freeze\n\nwhen flag clicked\nset size to (50) %\nhide\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levelup v]\nhide\nif <(Level) = [4]> then\n    wait (1) seconds\n    show\n    go to x: (-180) y: (58)\n    wait until <touching (controlcharacter v)?>\n    broadcast (Freeze v)\n    set [freeze? v] to [Yes]\n    hide\n    stop [this script v]\nend\nif <(Level) = [7]> then\n    wait (0.1) seconds\n    show\n    go to x: (199) y: (90)\n    wait until <touching (controlcharacter v)?>\n    broadcast (Freeze v)\n    set [freeze? v] to [Yes]\n    hide\n    stop [this script v]\nend\n\nwhen I receive [redbananashow v]\nset size to (50) %\nforever\n    repeat (2)\n        repeat (10)\n            change size by (1)\n        end\n        repeat (10)\n            change size by (-1)\n        end\n    end\n    wait (1) seconds\nend\n\nwhen I receive [#releasethefruit v]\nhide\n\nwhen I receive [freeze v]\nstart sound [Freeze v]\n\n@freeze background\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nclear graphic effects\n\nwhen I receive [freeze v]\ngo to [front v] layer\nset [ghost v] effect to (50)\nshow\n\nwhen I receive [#releasethefruit v]\nhide\n\ngo to [front v] layer\nset [ghost v] effect to (50)\nshow\n\n@Powerups Collection\n\nwhen I receive [levelup v]\nbroadcast (ShowStarfruit v)\n\nclear graphic effects\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nwait until <touching (controlcharacter v)?>\nchange [starfruitleft v] by (-1)\nif <(StarfruitLeft) = [0]> then\n    broadcast (ShowBombDefect v)\nend\ndelete this clone\n\nwhen I receive [showstarfruit v]\nif <(Level) > [0]> then\n    delete this clone\nend\nif <(Level) = [5]> then\n    set [starfruitleft v] to [9]\n    go to x: (-103) y: (-75)\n    create clone of (_myself_ v)\n    go to x: (-141) y: (-77)\n    create clone of (_myself_ v)\n    go to x: (-191) y: (-77)\n    create clone of (_myself_ v)\n    go to x: (-137) y: (10)\n    create clone of (_myself_ v)\n    go to x: (-186) y: (9)\n    create clone of (_myself_ v)\n    go to x: (-183) y: (88)\n    create clone of (_myself_ v)\n    go to x: (-7) y: (101)\n    create clone of (_myself_ v)\n    go to x: (39) y: (100)\n    create clone of (_myself_ v)\n    go to x: (84) y: (100)\n    create clone of (_myself_ v)\nend\nif <(Level) = [6]> then\n    go to x: (150) y: (-163)\n    repeat (2)\n        repeat (5)\n            change x by (20)\n            create clone of (_myself_ v)\n        end\n        go to x: (150) y: (-111)\n    end\n    set [starfruitleft v] to [10]\nend\nif <(Level) = [7]> then\n    go to x: (-81) y: (-76)\n    repeat (10)\n        create clone of (_myself_ v)\n        change x by (33)\n    end\n    set [starfruitleft v] to [10]\nend\n\nwhen I receive [restartlevel v]\nbroadcast (ShowStarfruit v)\n\n@Powerups Collection2\n\nwhen I receive [showbombdefect v]\nif <(Level) = [5]> then\n    set [bombdeflect? v] to [Off]\n    wait (0.3) seconds\n    wait until <(StarfruitLeft) < [1]>\n    go to x: (-202) y: (-138)\n    show\n    wait until <touching (controlcharacter v)?>\n    start sound [Connect v]\n    set [bombdeflect? v] to [On]\n    hide\nend\nif <(Level) = [6]> then\n    set [bombdeflect? v] to [Off]\n    go to x: (218) y: (98)\n    show\n    wait until <touching (controlcharacter v)?>\n    start sound [Connect v]\n    set [bombdeflect? v] to [On]\n    hide\nend\nif <(Level) = [7]> then\n    set [bombdeflect? v] to [Off]\n    go to x: (-177) y: (-138)\n    show\n    wait until <touching (controlcharacter v)?>\n    start sound [Connect v]\n    set [bombdeflect? v] to [On]\n    hide\nend\n\nclear graphic effects\n\nwhen flag clicked\nhide\nset [bombdeflect? v] to [Off]\nset size to (30) %\nforever\n    repeat (2)\n        repeat (10)\n            change size by (0.5)\n        end\n        repeat (10)\n            change size by (-0.5)\n        end\n    end\n    wait (1) seconds\nend\n\nwhen I receive [levelup v]\nset [bombdeflect? v] to [Off]\nhide\n\n@Body2\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset size to (20) %\nstop [other scripts in sprite v]\nshow\nforever\n    if <(BombDeflect?) = [On]> then\n        go to (controlcharacter v)\n        show\n        go to [front v] layer\n    else\n        hide\n    end\nend\n\nwhen I receive [restartlevel v]\nset [bombdeflect? v] to [Off]\n\n@Double\n\nwhen flag clicked\nset size to (50) %\nhide\n\nwhen I receive [gameover v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [levelup v]\nhide\nset size to (50) %\nif <(Level) = [8]> then\n    switch costume to (banana blue v)\n    wait (0.1) seconds\n    show\n    go to x: (152) y: (-137)\n    wait until <touching (controlcharacter v)?>\n    stop [other scripts in sprite v]\n    switch costume to (banana blue2 v)\n    repeat (20)\n        change size by (5)\n        change x by (-5)\n    end\n    repeat (20)\n        change size by (-5)\n        change x by (5)\n    end\nend\nhide\nstop [this script v]\n\nwhen I receive [redbananashow v]\nset size to (50) %\nforever\n    repeat (2)\n        repeat (10)\n            change size by (1)\n        end\n        repeat (10)\n            change size by (-1)\n        end\n    end\n    wait (1) seconds\nend\n\nwhen I receive [#releasethefruit v]\nhide\n\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [gameover v]\nclear graphic effects\ngo to x: (0) y: (2)\nset size to (0) %\nwait (1) seconds\nshow\nrepeat (95)\n    change size by (1)\nend\nforever\n    repeat (10)\n        change size by (1)\n        change [color v] effect by (5)\n    end\n    repeat (10)\n        change size by (-1)\n        change [color v] effect by (5)\n    end\nend\n\n@SetupTail\n\nwhen flag clicked\nhide\nset size to (20) %\nset [ghost v] effect to (4)\nset [trailnumber v] to [1]\ndelete all of [trailx v]\ndelete all of [traily v]\nrepeat (20)\n    create clone of (_myself_ v)\n    change size by (1)\n    change [trailnumber v] by (1)\n    add (mouse x) to [trailx v]\n    add (mouse y) to [traily v]\nend\nforever\n    delete (1) of [trailx v]\n    delete (1) of [traily v]\n    delete (2) of [trailx v]\n    delete (2) of [traily v]\n    delete (3) of [trailx v]\n    delete (3) of [traily v]\n    delete (4) of [trailx v]\n    delete (4) of [traily v]\n    add (((mouse x) * (0.25)) + ((item (16) of [trailx v]) * (0.75))) to [trailx v]\n    add (((mouse x) * (0.5)) + ((item (16) of [trailx v]) * (0.5))) to [trailx v]\n    add (((mouse x) * (0.75)) + ((item (16) of [trailx v]) * (0.25))) to [trailx v]\n    add (mouse x) to [trailx v]\n    add (((mouse y) * (0.25)) + ((item (16) of [traily v]) * (0.75))) to [traily v]\n    add (((mouse y) * (0.5)) + ((item (16) of [traily v]) * (0.5))) to [traily v]\n    add (((mouse y) * (0.75)) + ((item (16) of [traily v]) * (0.25))) to [traily v]\n    add (mouse y) to [traily v]\nend\n\nwhen I start as a clone\nwait (0.3) seconds\nforever\n    if <<([abs v] of ((x position) - (mouse x)) ) < [9]> and <([abs v] of ((y position) - (mouse y)) ) < [9]>> then\n        hide\n    else\n        go to [front v] layer\n        show\n        point towards (controlcharacter v)\n        go to x: (item (TrailNumber) of [trailx v]) y: (item (TrailNumber) of [traily v])\n    end\nend\n\nwhen I receive [start v]\nstop [other scripts in sprite v]\ndelete this clone\n\nadd [thing] to [trailx v]\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-400)\n\nwhen I receive [showinstructions v]\nshow\nset size to (100) %\nshow\nswitch costume to (use.. v)\nglide (0.8) secs to x: (0) y: (0)\nrepeat (4)\n    go to [front v] layer\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\ncreate clone of (_myself_ v)\nswitch costume to (grabfruit v)\ngo to x: (0) y: (-400)\nglide (0.8) secs to x: (0) y: (0)\nrepeat (4)\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\ncreate clone of (_myself_ v)\nswitch costume to (avoidbombs v)\ngo to x: (0) y: (-400)\nglide (0.8) secs to x: (0) y: (0)\nrepeat (4)\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\ncreate clone of (_myself_ v)\nswitch costume to (playbutton v)\ngo to x: (0) y: (-400)\nglide (0.8) secs to x: (0) y: (0)\nrepeat (4)\n    repeat (10)\n        change size by (0.5)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (Start v)\n            hide\n            stop [this script v]\n        end\n    end\n    repeat (10)\n        change size by (-0.5)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (Start v)\n            hide\n            stop [this script v]\n        end\n    end\nend\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nbroadcast (Start v)\nhide\n\ncreate clone of (_myself_ v)\n\nwhen I receive [start v]\ndelete this clone\n\n
--------------------------------Adventure---------------------------\n\n-Controls: WASD/Arrow Keys/Mobile\n-20 levels!\n-Avoid Spikes\n-Jump higher on trampolines\n-Wall Jump\n-Moving Platformers\n-Fullscreen is laggy :/\n-All levels are possible\n