Speed Run - Platformer #games #fun #all #platformer

Instructions: Race to the finish in my new platformer game!\nUse WASD or Arrow Keys to move!\nGet to the star!

@Stage\n\nwhen I receive [death v]\nstop all sounds\n\nwhen I receive [death v]\nwait (1) seconds\nplay sound [I Write Sins Not Tragedies \(8 Bit Remix\) \[Tribute To Panic! At The Disco\] v] until done\n\nwhen flag clicked\nwait (0.7) seconds\nplay sound [I Write Sins Not Tragedies \(8 Bit Remix\) \[Tribute To Panic! At The Disco\] v] until done\n\n@screenshot\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\ngo to (random position v)\n\n@download\n\nwhen flag clicked\nhide\nswitch costume to (download v)\nset [clone# v] to [2]\nrepeat (7)\n    change [clone# v] by (1)\n    create clone of (_myself_ v)\n    next costume\nend\nswitch costume to (sizer v)\n\nset [size v] to [200]\n\nwhen I receive [position v]\nif <(costume [number v]) = [1]> then\n\nwhen I receive [win v]\nstamp\ndelete this clone\n\n@Map Hitbox\n\nwhen flag clicked\nset [brightness v] effect to (-100)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nforever\n    set [ghost v] effect to (ghost)\n    switch costume to (COSTUME-FOR-MAP)\nend\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nshow\n\n@hitbox\n\nset [y v] to [0]\n\nwhen flag clicked\nbroadcast (life v)\nforever\n    wait until <touching (map-bad v)?>\n    stop [other scripts in sprite v]\n    broadcast (death v)\n    wait (1) seconds\n    broadcast (life v)\nend\n\nwhen I receive [life v]\nset [y v] to [0]\ngo to x: (-200) y: (-14)\nnot-touch\nset size to (50) %\nset [y v] to [0]\nforever\n    set [ghost v] effect to (ghost)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [x v] by (2)\n    else\n        if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n            change [x v] by (-2)\n        end\n    end\n    change y by (-5)\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <touching (map hitbox v)?> then\n            start sound [jump v]\n            set [y v] to [11]\n            broadcast (particles v)\n        else\n            change [y v] by (-1)\n        end\n    else\n        change [y v] by (-1)\n    end\n    change y by (5)\n    set [x v] to ((x) * (0.7))\n    change x by (x)\n    if <touching (map hitbox v)?> then\n        change x by ((x) * (-1))\n        set [x v] to [0]\n    end\n    change y by (y)\n    if <touching (map hitbox v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <(x position) > [239]> then\n        set x to (-239)\n        change [costume-for-map v] by (1)\n    else\n        if <[-239] > (x position)> then\n            set x to (239)\n            change [costume-for-map v] by (-1)\n        end\n    end\n    change y by (-10)\n    if <touching (map hitbox v)?> then\n        change y by (10)\n        if <(y) < [-2]> then\n            start sound [recording1 v]\n            broadcast (particles v)\n        end\n    else\n        change y by (10)\n    end\n    set [scrollx v] to (x position)\n    set [scrolly v] to (y position)\n    broadcast (position v)\nend\n\nwhen flag clicked\nset [costume-for-map v] to [1]\n\ndefine not-touch\nrepeat until <not <touching (map hitbox v)?>>\n    change y by (1)\nend\n\nset [size v] to [200]\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\n@hitbox2\n\nset [y v] to [0]\n\nwhen flag clicked\nforever\n    if <[1] < ([abs v] of (x) )> then\n        next costume\n        wait (0.01) seconds\n    else\n        switch costume to (character v)\n    end\nend\n\nwhen I receive [position v]\nset rotation style [left-right v]\ngo to x: (X-offset) y: (Y-Offset)\nset size to ((SIZE) * (2)) %\nif <[0] < (x)> then\n    point in direction (90)\nelse\n    point in direction (-90)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n    end\nend\n\nwhen I receive [death v]\ncreate clone of (_myself_ v)\nhide\n\nwhen I receive [life v]\npoint in direction (90)\nshow\n\nwhen flag clicked\nshow\nset [x-offset v] to [0]\nset [y-offset v] to [0]\n\nwhen I start as a clone\nset volume to (100) %\nstart sound [Death v]\nset rotation style [all around v]\nset [y-vel-clone v] to [3]\nswitch costume to (character v)\nrepeat (20)\n    change y by (y-vel-clone)\n    change [y-vel-clone v] by (-1)\n    turn right (15) degrees\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [rumble v]\nrepeat (15)\n    set [x-offset v] to (pick random (-3) to (3))\n    set [y-offset v] to (pick random (-3) to (3))\nend\nset [x-offset v] to [0]\nset [y-offset v] to [0]\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nhide\n\n@Particles\n\nwhen I receive [particles v]\nif <(costume [name v]) = [sprite]> then\n    fast\nend\n\nwhen I start as a clone\nset rotation style [don't rotate v]\nswitch costume to (clone v)\nset [particle-vel v] to (pick random (3) to (7))\nset [particle-y-vel v] to [0]\nset [ghost v] effect to (0)\nset size to (25) %\nrepeat (10)\n    move (particle-vel) steps\n    change y by (particle-y-vel)\n    point in direction ((direction) * (0.99))\n    set [particle-vel v] to ((particle-vel) * (0.8))\n    change [particle-y-vel v] by (-0.6)\n    change [ghost v] effect by ((100) / (10))\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (sprite v)\n\ndefine fast\nrepeat (4)\n    go to (hitbox2 v)\n    change y by (-17)\n    point in direction (pick random (-90) to (90))\n    move (pick random (-10) to (10)) steps\n    create clone of (_myself_ v)\nend\n\nwhen I receive [death v]\ndelete this clone\n\n@Map-Bad\n\nwhen flag clicked\nset [brightness v] effect to (0)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nforever\n    set [ghost v] effect to (ghost)\n    switch costume to (COSTUME-FOR-MAP)\nend\n\n@GO\n\nwhen flag clicked\nset size to (800) %\nforever\n    point in direction ((direction) * (0.7))\nend\n\nwhen I receive [life v]\nif <(costume [name v]) = [3]> then\n\nwhen flag clicked\nset [scrollx v] to [-200]\nstart sound [Blip v]\nswitch costume to (3 v)\ngo to x: (0) y: (101)\nset [ghost v] effect to (70)\npoint in direction (-45)\nset [scrollx v] to [-200]\nwait (0.25) seconds\nset [scrollx v] to [-200]\npoint in direction (45)\nstart sound [Blip v]\nswitch costume to (2 v)\nwait (0.25) seconds\npoint in direction (-45)\nstart sound [Blip v]\nswitch costume to (1 v)\nwait (0.25) seconds\npoint in direction (45)\nstart sound [Go v]\nswitch costume to (go v)\nwait (0.25) seconds\nbroadcast (timer v)\nrepeat (10)\n    change [ghost v] effect by (3)\n    change y by (-5)\nend\n\nstart sound [Blip v]\n\n@Star\n\nwhen I receive [position v]\nswitch costume to (mover v)\ngo to x: (((SCROLLX) * (-2)) + (385)) y: (((SCROLLY) * (-2)) + (-50))\nswitch costume to (star v)\nset size to (400) %\nif <(COSTUME-FOR-MAP) = [7]> then\n    show\nelse\n    hide\nend\nif <touching (hitbox2 v)?> then\n    start sound [Connect v]\n    broadcast (win v)\nend\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nstamp\nhide\n\n@Sprite1\n\nwhen I receive [timer v]\nreset timer\nforever\n    erase all\n    go to x: (-231) y: (161)\n    set size to (100) %\n    set [brightness v] effect to (0)\n    print (timer)\nend\n\ndefine print (time)\nset [ghost v] effect to (0)\nset [#1 v] to [1]\nrepeat (length of (time))\n    switch costume to (letter (#1) of (time))\n    if <[230] < (x position)> then\n        stop [this script v]\n    end\n    stamp\n    change x by (((size) / (100)) * (15))\n    change [#1 v] by (1)\nend\n\nwhen flag clicked\nset [time v] to [99999]\nhide\nerase all\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nset [time v] to (timer)\nif <(TIME) < (☁ HighScore)> then\n    set [☁ highscore v] to (TIME)\nend\nwait (0.01) seconds\nswitch costume to (blank v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (10)\nstamp\nset [brightness v] effect to (0)\ngo to x: (-100) y: (55)\nset [brightness v] effect to (100)\nswitch costume to (1 v)\nset size to (200) %\nprint (TIME)\ngo to x: (25) y: (-50)\nset [brightness v] effect to (100)\nswitch costume to (1 v)\nset size to (200) %\nprint (☁ HighScore)\n\n@DILLYD\n\nwhen flag clicked\nset size to (100) %\nclear graphic effects\nswitch costume to (dillyd v)\ngo to x: (0) y: (100)\ngo to [front v] layer\nset [ghost v] effect to (0)\nset [mouse-vel v] to [0]\nset [mouse-y-vel v] to [0]\nrepeat (20)\n    change [mouse-y-vel v] by (((0) - (y position)) * (0.4))\n    set [mouse-y-vel v] to ((mouse-y-vel) * (0.3))\n    change y by (mouse-y-vel)\nend\nset [mouse-vel v] to [0]\nset [mouse-y-vel v] to [0]\nwait (0.3) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (mouse v)\nset size to (50) %\ngo to [front v] layer\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nrepeat (15)\n    change [mouse-vel v] by (((170) - (x position)) * (0.4))\n    set [mouse-vel v] to ((mouse-vel) * (0.3))\n    change x by (mouse-vel)\n    change [mouse-y-vel v] by (((150) - (y position)) * (0.4))\n    set [mouse-y-vel v] to ((mouse-y-vel) * (0.3))\n    change y by (mouse-y-vel)\nend\nwait (0.5) seconds\nstart sound [413310__tieswijnen__select v]\nbroadcast (dillyd2 v)\nwait (0.5) seconds\nrepeat (15)\n    change [mouse-vel v] by (((240) - (x position)) * (0.4))\n    set [mouse-vel v] to ((mouse-vel) * (0.3))\n    change x by (mouse-vel)\n    change [mouse-y-vel v] by (((0) - (y position)) * (0.4))\n    set [mouse-y-vel v] to ((mouse-y-vel) * (0.3))\n    change y by (mouse-y-vel)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [dillyd2 v]\nif <(costume [number v]) = [1]> then\n    switch costume to (dillyd2 v)\n    wait (1) seconds\n    repeat (20)\n        change [mouse-y-vel v] by (((100) - (y position)) * (0.4))\n        set [mouse-y-vel v] to ((mouse-y-vel) * (0.2))\n        change y by (mouse-y-vel)\n        change [ghost v] effect by (10)\n    end\nend\n\n