Dash || A Platformer
@Stage\n\n@Player\n\nwhen this sprite clicked\nhide\nstop [all v]\n\nwhen flag clicked\nforever\n    wait (1) seconds\nend\n\nwhen flag clicked\nhide variable [minute timer v]\n\nwhen I receive [start game v]\nshow variable [minute timer v]\n\nwhen I receive [start game v]\nset [timer v] to [0]\nforever\n    if <(timer) = [60]> then\n        set [timer v] to [0]\n        change [minute timer v] by (1)\n    end\nend\n\nwhen flag clicked\nset [minute timer v] to [0]\nhide\nchange [timer v] by (1)\n\nwhen flag clicked\npoint in direction (90)\n\nwhen flag clicked\nhide\n\nhide\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\nclear graphic effects\nset [deaths v] to [0]\nshow\ngo to [back v] layer\nswitch backdrop to (backdrop1 v)\nset [level v] to [1]\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nshow\ngo to x: (-215) y: (20)\nswitch costume to (costume6 v)\nglide (1) secs to x: (-215) y: (-61)\nswitch costume to (costume1 v)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        switch costume to (costume3 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching color (#00ff0c)?> then\n        switch costume to (costume5 v)\n        change y by (1)\n        if <touching color (#00ff0c)?> then\n            change y by (1)\n            if <touching color (#00ff0c)?> then\n                change y by (1)\n                if <touching color (#00ff0c)?> then\n                    change y by (1)\n                    if <touching color (#00ff0c)?> then\n                        change x by ((X) * (-1))\n                        change y by (-4)\n                        if <key (up arrow v) pressed?> then\n                            if <(X) > [0]> then\n                                set [x v] to [-5]\n                            else\n                                set [x v] to [5]\n                            end\n                            set [y v] to [10]\n                        else\n                            set [y v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching color (#00ff0c)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#00ff0c)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            switch costume to (costume4 v)\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-215) y: (20)\n        switch costume to (costume6 v)\n        glide (1) secs to x: (-215) y: (-61)\n        switch costume to (costume1 v)\n        change [deaths v] by (1)\n    end\n    if <(x position) > [238]> then\n        next backdrop\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        change [level v] by (1)\n        go to x: (-215) y: (20)\n        switch costume to (costume6 v)\n        glide (1) secs to x: (-215) y: (-61)\n        switch costume to (costume1 v)\n        switch costume to (costume1 v)\n    end\n    if <(y position) < [-178]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-215) y: (20)\n        switch costume to (costume6 v)\n        glide (1) secs to x: (-215) y: (-61)\n        switch costume to (costume1 v)\n        change [deaths v] by (1)\n    end\n    if <touching color (#0083ff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [5]\n        else\n            set [y v] to [-1]\n        end\n        if <key (down arrow v) pressed?> then\n            set [y v] to [-5]\n        end\n    end\n    if <touching color (#e9ff00)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nset size to (75) %\n\nwhen I receive [intro done v]\nbroadcast (Start game v)\n\nwhen I receive [pressed see inside v]\nhide\n\nwhen I receive [start game v]\nwait until <(backdrop [number v]) = [20]>\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [start game v]\nshow variable [deaths v]\nshow variable [level v]\nshow variable [minute timer v]\nshow variable [timer v]\nset size to (100) %\nforever\n    if <key (r v) pressed?> then\n        go to x: (-215) y: (20)\n        switch costume to (costume6 v)\n        glide (1) secs to x: (-215) y: (-61)\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [s v] key pressed\nnext backdrop\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (0)\n\nwhen I receive [start game v]\nwait until <(backdrop [number v]) = [43]>\nbroadcast (Outro v) and wait\n\nwhen I receive [outro v]\nhide\n\n@thumnail\n\nwhen flag clicked\nhide variable [timer v]\nhide variable [minute timer v]\nhide variable [deaths v]\nhide variable [level v]\n\ndefine Smooth Glide (x) (y) (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change [ghost v] effect by (-15)\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen [timer v] > (Timer2)\nSmooth Glide [0] [0] [6]\n\nwhen flag clicked\ngo to x: (-467) y: (0)\nset [ghost v] effect to (100)\nforever\n    set [timer2 v] to (timer)\nend\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Music\n\nwhen I receive [start game v]\nforever\n    play sound [Treenan v] until done\nend\n\n@Intro\n\nwhen I start as a clone\nif <(Clone ID) = [5]> then\n    point in direction (pick random (0) to (360))\n    switch costume to (particles v)\n    go to x: (Intro2: X) y: (Intro2: Y)\n    go to [front v] layer\n    show\n    repeat (Speed)\n        change [y velocity v] by (-1)\n        move ((Speed) / (2)) steps\n        change y by (Y Velocity)\n    end\n    repeat (15)\n        change [ghost v] effect by (5)\n        change [y velocity v] by (-1)\n        move ((Speed) / (4)) steps\n        change y by (Y Velocity)\n    end\n    delete this clone\nend\n\ndefine Smoothly Size: (size) Smoothness: (speed)\nrepeat until <(round (size)) = (round (size))>\n    change size by (((round (size)) - (round (size))) / (round (speed)))\nend\nset size to (size) %\n\ndefine Smoothly Glide To X: (x) Y: (y) Slowness: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (round (speed)))\n    change y by (((round (y)) - (round (y position))) / (round (speed)))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    switch costume to (my logo v)\n    go to x: (0) y: (0)\n    show\n    forever\n        go to [front v] layer\n        if <touching (mouse-pointer v)?> then\n            repeat (5)\n                change [ghost v] effect by (10)\n            end\n            switch costume to (my logo #2 v)\n            repeat (10)\n                change [ghost v] effect by (-10)\n            end\n            wait until <not <touching (mouse-pointer v)?>>\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            switch costume to (my logo v)\n            repeat (5)\n                change [ghost v] effect by (-10)\n            end\n        else\n            switch costume to (my logo v)\n            set [ghost v] effect to (50)\n        end\n    end\nend\nif <(Clone ID) = [2]> then\n    switch costume to (skip button v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    reset timer\n    show\n    repeat until <(timer) > [4.5]>\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            broadcast (Intro Done v)\n            go to [front v] layer\n            stop all sounds\n        end\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    delete this clone\nend\n\ndefine Clone (id)\nset [clone id v] to (id)\ncreate clone of (_myself_ v)\nwait () seconds\n\nwhen flag clicked\nswitch costume to (scarycake v)\nset rotation style [all around v]\ngo to x: (-335) y: (150)\nstart sound [Music v]\npoint in direction (90)\nset size to (100) %\nshow\nClone [0]\nClone [1]\nClone [2]\nSmoothly Glide To X: [0] Y: [0] Slowness: [5]\nParticles X: [0] Y: [0] Speed: [15] Amount [50]\nClone [3]\nClone [4]\npoint in direction (75)\nSmoothly Size: [150] Smoothness: [1.5]\nSmoothly Size: [100] Smoothness: [2]\npoint in direction (105)\nSmoothly Size: [150] Smoothness: [1.5]\nSmoothly Size: [100] Smoothness: [2]\nrepeat (3)\n    turn left (5) degrees\nend\nrepeat (15)\n    go to x: (pick random (-5) to (5)) y: (0)\nend\ngo to x: (0) y: (0)\nwait (.3) seconds\nParticles X: [0] Y: [0] Speed: [15] Amount [5]\npoint in direction (75)\nSmoothly Size: [150] Smoothness: [1.5]\nSmoothly Size: [100] Smoothness: [2]\npoint in direction (105)\nSmoothly Size: [150] Smoothness: [1.5]\nSmoothly Size: [100] Smoothness: [2]\nrepeat (3)\n    turn left (5) degrees\nend\nParticles X: [0] Y: [0] Speed: [15] Amount [20]\nwait (.1) seconds\nParticles X: [0] Y: [0] Speed: [20] Amount [20]\nwait (.2) seconds\nParticles X: [0] Y: [0] Speed: [15] Amount [20]\nwait (.3) seconds\nSmoothly Size: [25] Smoothness: [5]\nwait (.3) seconds\nSmoothly Size: [105] Smoothness: [3]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Intro Done v)\n\nwhen I start as a clone\nif <(Clone ID) = [0]> then\n    switch costume to (background v)\n    go to x: (0) y: (0)\n    show\n    forever\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (.03)\nend\n\nwhen I receive [intro done v]\nhide\ndelete this clone\n\nwhen I receive [intro done v]\nwait (.0005) seconds\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nif <(Clone ID) = [3]> then\n    switch costume to (spikes v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    Smoothly Glide To X: [0] Y: [110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [-15] Slowness: [2]\n    Smoothly Glide To X: [0] Y: [110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [-15] Slowness: [2]\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\n    wait (.13) seconds\n    Smoothly Glide To X: [0] Y: [110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [-15] Slowness: [2]\n    Smoothly Glide To X: [0] Y: [110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [-15] Slowness: [2]\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [4]> then\n    switch costume to (spikes v)\n    go to x: (0) y: (0)\n    point in direction (-90)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    Smoothly Glide To X: [0] Y: [-110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [15] Slowness: [2]\n    Smoothly Glide To X: [0] Y: [-110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [15] Slowness: [2]\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\n    wait (.13) seconds\n    Smoothly Glide To X: [0] Y: [-110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [15] Slowness: [2]\n    Smoothly Glide To X: [0] Y: [-110] Slowness: [1.5]\n    Smoothly Glide To X: [0] Y: [15] Slowness: [2]\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\nend\n\ndefine Particles X: (x) Y: (y) Speed: (speed) Amount (amount)\nset [speed v] to (speed)\nset [y velocity v] to [10]\nset [intro2: x v] to (x)\nset [intro2: y v] to (y)\nrepeat (amount)\n    set [clone id v] to [5]\n    create clone of (_myself_ v)\nend\n\n@Outro\n\nwhen I start as a clone\nif <(Clone ID) = [3]> then\n    point in direction (pick random (0) to (360))\n    set size to (pick random (90) to (110)) %\n    switch costume to (dot-blue v)\n    set [y velocity v] to [10]\n    go to x: (Outro: X) y: (Outro: Y)\n    go to [front v] layer\n    show\n    repeat ((Speed) / (2))\n        change [y velocity v] by (-1)\n        move ((Speed) / (4)) steps\n        change y by (Y Velocity)\n    end\n    repeat ((Speed) / (2))\n        change [ghost v] effect by (5)\n        change [y velocity v] by (-1)\n        move ((Speed) / (4)) steps\n        change y by (Y Velocity)\n    end\n    delete this clone\nend\n\ndefine Particles X: (x) Y: (y) Speed: (speed) Amount (amount)\nset [speed v] to (speed)\nset [outro: y v] to (y)\nset [outro: x v] to (x)\nrepeat (amount)\n    Clone [3]\nend\n\ndefine Smoothly Turn to (direction) Smoothness: (speed)\nrepeat until <(round (direction)) = (round (direction))>\n    turn right (((round (direction)) - (round (direction))) / (round (speed))) degrees\nend\npoint in direction (direction)\n\ndefine Smoothly Size: (size) Smoothness: (speed)\nrepeat until <(round (size)) = (round (size))>\n    change size by (((round (size)) - (round (size))) / (round (speed)))\nend\nset size to (size) %\n\ndefine Smoothly Glide To X: (x) Y: (y) Slowness: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (round (speed)))\n    change y by (((round (y)) - (round (y position))) / (round (speed)))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    switch costume to (my logo v)\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    show\n    forever\n        go to [front v] layer\n        if <touching (mouse-pointer v)?> then\n            repeat (5)\n                change [ghost v] effect by (10)\n            end\n            switch costume to (my logo #2 v)\n            repeat (10)\n                change [ghost v] effect by (-10)\n            end\n            wait until <not <touching (mouse-pointer v)?>>\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            switch costume to (my logo v)\n            repeat (5)\n                change [ghost v] effect by (-10)\n            end\n        else\n            switch costume to (my logo v)\n            set [ghost v] effect to (50)\n        end\n    end\nend\n\ndefine Clone (id)\nset [clone id v] to (id)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [0]> then\n    switch costume to (background v)\n    go to x: (0) y: (0)\n    set size to (100) %\n    show\n    forever\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [2]> then\n    switch costume to (dot v)\n    go to x: (Outro: X) y: (Outro: Y)\n    set size to (100) %\n    show\n    forever\n        set x to ((Outro: X) + ((10) * ([sin v] of ((timer) * (150)) )))\n    end\nend\n\ndefine Make Lines\nrepeat (20)\n    change [outro: y v] by (20)\n    Clone [2]\nend\nset [outro: y v] to [-200]\nset [outro: x v] to [-200]\nrepeat (20)\n    change [outro: y v] by (20)\n    Clone [4]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [4]> then\n    switch costume to (dot v)\n    go to x: (Outro: X) y: (Outro: Y)\n    set size to (100) %\n    show\n    forever\n        set x to ((Outro: X) + ((10) * (() - ([sin v] of ((timer) * (150)) ))))\n    end\nend\n\nwhen I receive [outro v]\nshow\nswitch costume to (scarycake v)\nset [speed v] to [1]\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (5) %\nshow\nSmoothly Size: [100] Smoothness: [5]\npoint in direction (15)\nSmoothly Turn to [90] Smoothness: [3]\nClone [5]\nset [timer v] to [0]\nforever\n    set y to ((10) * ([sin v] of ((Timer) * (150)) ))\nend\n\nwhen I receive [outro v]\nset [outro: y v] to [-200]\nset [outro: x v] to [200]\npoint in direction (90)\nClone [0]\nClone [1]\nClone [2]\nClone [7]\nMake Lines\nforever\n    play sound [Hyperrealistic v] until done\nend\n\nwhen I receive [outro v]\nset [timer v] to [0]\nforever\n    change [timer v] by (.03)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [5]> then\n    switch costume to (star v)\n    go to x: (-105) y: (-105)\n    go to [front v] layer\n    set size to (0) %\n    show\n    Smoothly Size: [100] Smoothness: [5]\n    wait (.1) seconds\n    point in direction (15)\n    Smoothly Turn to [90] Smoothness: [3]\n    Clone [6]\n    wait (3) seconds\n    forever\n        point in direction ((90) + ((10) * ([tan v] of ((timer) * (50)) )))\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [6]> then\n    switch costume to (heart v)\n    go to x: (105) y: (-105)\n    go to [front v] layer\n    set size to (0) %\n    show\n    Smoothly Size: [100] Smoothness: [5]\n    wait (.2) seconds\n    point in direction (15)\n    Smoothly Turn to [90] Smoothness: [3]\n    wait (2) seconds\n    forever\n        point in direction ((90) + ((10) * ([tan v] of ((timer) * (50)) )))\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [6]> then\n    switch costume to (heart v)\n    go to x: (105) y: (-105)\n    go to [front v] layer\n    set size to (0) %\n    show\n    Smoothly Size: [100] Smoothness: [5]\n    wait (.2) seconds\n    point in direction (15)\n    Smoothly Turn to [90] Smoothness: [3]\n    wait (2) seconds\n    forever\n        point in direction ((90) + ((10) * ([tan v] of ((timer) * (50)) )))\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [7]> then\n    switch costume to (follow v)\n    go to x: (0) y: (-150)\n    go to [front v] layer\n    set size to (0) %\n    show\n    Smoothly Size: [100] Smoothness: [5]\n    reset timer\n    forever\n        point in direction ((90) + ((10) * ([sin v] of ((timer) * (150)) )))\n        if <mouse down?> then\n            Particles X: (x position) Y: (y position) Speed: [25] Amount [2]\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\n
Arrow keys as always and hope you enjoy\n\nLast modified 10/1/2020\n\nPress the green flag 3 times\n\nFinally done 44 levels of fun most are easy some are hard\n\nIf you are stuck in the ground press "r"\n\nAll levels are possible I played it for any glitches and bugs. It's playable\n\nCHALLENGE: Try and complete the platformer with no deaths or in 5 minutes\n\nThere is a grey heart and a grey star.  Currently somebody hasn't takin' care of it so smash it so they feel better\n\nGo ahead and drag it to make it easier ;)\n\nThere is a timer for how long it takes you to complete it\n\nThere is a death counter to count how many deaths you had \n\nRemix please it to make your own levels\n\n Advertising not Allowed it will be reported