Classic Chaos  (non-generic platformer)
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Notes/Text\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [end v]\ngo to x: (0) y: (213)\nswitch costume to (4 v)\nnext costume\nclear graphic effects\nset [ghost v] effect to (30)\nshow\nrepeat until <(round (y position)) = [0]>\n    change y by (join [-] ([abs v] of ((round (y position)) / (5)) ))\nend\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nrepeat (10)\n    change [ghost v] effect by (7)\nend\nhide\n\nwhen I receive [click? v]\nif <not <([costume # v] of [level v]) = [6]>> then\n    stop [other scripts in sprite v]\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    hide\nend\n\nwhen I receive [delete clones/end of intro v]\nhide\nif <not <[1] = <[1] = [1]>>> then\n    go to x: (0) y: (213)\n    switch costume to (4 v)\n    clear graphic effects\n    set [ghost v] effect to (30)\n    show\n    repeat until <(round (y position)) = [0]>\n        change y by (join [-] ([abs v] of ((round (y position)) / (5)) ))\n    end\n    wait until <mouse down?>\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    wait (0.1) seconds\nend\nif <not <(username) = []>> then\n    go to x: (0) y: (213)\n    switch costume to (1 v)\n    clear graphic effects\n    set [ghost v] effect to (30)\n    show\n    repeat until <(round (y position)) = [0]>\n        change y by (join [-] ([abs v] of ((round (y position)) / (5)) ))\n    end\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    wait (0.1) seconds\n    hide\n    go to x: (0) y: (213)\n    switch costume to (2 v)\n    clear graphic effects\n    set [ghost v] effect to (30)\n    show\n    repeat until <(round (y position)) = [0]>\n        change y by (join [-] ([abs v] of ((round (y position)) / (5)) ))\n    end\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    hide\n    wait (0.1) seconds\n    hide\n    go to x: (0) y: (213)\n    switch costume to (3 v)\n    clear graphic effects\n    set [ghost v] effect to (30)\n    show\n    repeat until <(round (y position)) = [0]>\n        change y by (join [-] ([abs v] of ((round (y position)) / (5)) ))\n    end\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    hide\n    wait until <([costume # v] of [level v]) = [6]>\n    go to x: (0) y: (213)\n    switch costume to (3 v)\n    clear graphic effects\n    set [ghost v] effect to (30)\n    show\n    repeat until <(round (y position)) = [0]>\n        change y by (join [-] ([abs v] of ((round (y position)) / (5)) ))\n    end\n    broadcast (click? v)\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    hide\nend\n\nwhen I receive [delete clones/end of intro v]\nforever\n    if <key (s v) pressed?> then\n        go to [back v] layer\n        hide\n    end\nend\n\n@backdrop35\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan2 v]\ngo to x: (-322) y: (-38)\nshow\nswitch costume to (backdrop35 v)\nforever\n    if <touching (sprite1 v)?> then\n        say [Be careful, lava is very dangerous!]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan1 v]\nshow\nswitch costume to (backdrop2 v)\ngo to x: (-319) y: (-40)\nforever\n    if <touching (sprite1 v)?> then\n        say [You can wall jump to avoid some obstacles.]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan3 v]\ngo to x: (-405) y: (-33)\nshow\nswitch costume to (backdrop3 v)\nforever\n    if <touching (sprite1 v)?> then\n        say [You must avoid the saws.]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan4 v]\ngo to x: (-495) y: (-33)\nshow\nswitch costume to (backdrop4 v)\nforever\n    if <touching (sprite1 v)?> then\n        say [The trampoline can get you out of dangerous places.]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan5 v]\ngo to x: (10) y: (30)\nshow\nswitch costume to (backdrop5 v)\nforever\n    if <touching (sprite1 v)?> then\n        say [ Wait for the right moment to pass.]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan6 v]\nhide\n\nwhen backdrop switches to [arrière plan9 v]\ngo to x: (-77) y: (-31)\nshow\nswitch costume to (backdrop7 v)\nforever\n    if <touching (sprite1 v)?> then\n        say [The walls are sometimes prickly.]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan10 v]\ngo to x: (33) y: (-30)\nshow\nswitch costume to (backdrop8 v)\nforever\n    if <touching (sprite1 v)?> then\n        say [ You almost got there!]\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan11 v]\ngo to x: (-180) y: (-31)\nshow\nswitch costume to (backdrop9 v)\nforever\n    if <touching (sprite1 v)?> then\n        say (join (join [ Well done! You made it!Your time is: ] (timeee)) (join [           The world record his: ] (☁ aworldddrecorddd)))\n    else\n        if <not <touching (sprite1 v)?>> then\n            say []\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan7 v]\ngo to x: (-120) y: (-12)\nforever\n    show\n    switch costume to (backdrop6 v)\n    forever\n        if <touching (sprite1 v)?> then\n            say [ Four spikes to pass, take your time.]\n        else\n            if <not <touching (sprite1 v)?>> then\n                say []\n            end\n        end\n    end\nend\n\nwhen backdrop switches to [arrière plan8 v]\nhide\n\nwhen I receive [delete clones/end of intro v]\nset [name v] to (username)\nreset timer\nrepeat until <([backdrop name v] of [_stage_ v]) = [arrière plan11]>\n    set [timeee v] to (timer)\nend\n\nwhen backdrop switches to [arrière plan11 v]\nif <(timeee) < (☁ aworldddrecorddd)> then\n    set [☁ aworldddrecorddd v] to (timeee)\n    set [☁ atimeeerecord v] to (nameee)\n    set [☁ names v] to (name)\nelse\nend\n\n@detector\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\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: (20)\nreset timer\nswitch costume to (4 v)\nset [ghost v] effect to (100)\nrepeat (33)\n    change y by ((y position) / (15))\n    change [ghost v] effect by (-3)\nend\nrepeat (10)\n    change y by (((y position) - (-100)) / (15))\n    change [ghost v] effect by (10)\nend\n\n@Sprite10\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (100) layers\nrepeat (10)\n    change [ghost v] effect by (500)\nend\n\n@Remember\n\nwhen I receive [delete clones/end of intro v]\nhide\nwait (14) seconds\nstart sound [Ding - Sound Effect \[HD\] v]\ngo to x: (0) y: (85)\nshow\nglide (1) secs to x: (0) y: (0)\nwait (1) seconds\nglide (1) secs to x: (0) y: (85)\nhide\n\nwhen I receive [delete clones/end of intro v]\nwait (14) seconds\nforever\n    wait (20) seconds\n    go to x: (0) y: (85)\n    show\n    glide (1) secs to x: (0) y: (0)\n    wait (1) seconds\n    glide (1) secs to x: (0) y: (85)\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Saws3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan5 v]\ngo to x: (196) y: (-64)\nshow\nbroadcast (tourne v)\nforever\n    repeat (38)\n        change y by (5)\n    end\n    repeat (38)\n        change y by (-5)\n    end\nend\n\nwhen backdrop switches to [arrière plan4 v]\nhide\n\nwhen I receive [tourne v]\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nwhen backdrop switches to [arrière plan6 v]\nhide\n\n@Sprite8\n\nwhen backdrop switches to [arrière plan10 v]\nswitch costume to (costume1 v)\ngo to x: (90) y: (25)\nshow\nforever\n    repeat (25)\n        change y by (-0.5)\n    end\n    repeat (25)\n        change y by (0.5)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan10 v]\n\nhide\n\nwhen backdrop switches to [arrière plan11 v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan11 v]\nshow\n\n@Sprite7\n\nwhen backdrop switches to [arrière plan10 v]\nswitch costume to (costume1 v)\ngo to x: (-100) y: (25)\nshow\nforever\n    repeat (25)\n        change y by (-0.5)\n    end\n    repeat (25)\n        change y by (0.5)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan11 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan7 v]\nswitch costume to (costume1 v)\nshow\n\nwhen backdrop switches to [arrière plan8 v]\nswitch costume to (costume2 v)\nshow\n\nwhen backdrop switches to [arrière plan9 v]\nswitch costume to (costume3 v)\nshow\n\nwhen backdrop switches to [arrière plan10 v]\nswitch costume to (costume4 v)\nshow\n\nwhen backdrop switches to [arrière plan11 v]\nhide\n\n@Saws5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan6 v]\ngo to x: (-60) y: (-110)\nshow\nbroadcast (tourne v)\n\nwhen I receive [tourne v]\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\nwhen backdrop switches to [arrière plan7 v]\nhide\n\n@Saws4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan6 v]\ngo to x: (90) y: (-110)\nshow\nbroadcast (tourne v)\n\nwhen I receive [tourne v]\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\nwhen backdrop switches to [arrière plan7 v]\nhide\n\n@Sprite5\n\nwhen backdrop switches to [arrière plan5 v]\nswitch costume to (costume1 v)\ngo to x: (-55) y: (28)\nshow\nforever\n    repeat (25)\n        change y by (-0.5)\n    end\n    repeat (25)\n        change y by (0.5)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan6 v]\nhide\n\n@Sprite3\n\nwhen backdrop switches to [arrière plan4 v]\ngo to [back v] layer\nswitch costume to (costume1 v)\ngo to x: (9) y: (28)\nshow\nforever\n    repeat (25)\n        change y by (-0.5)\n    end\n    repeat (25)\n        change y by (0.5)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan5 v]\nhide\n\nwhen flag clicked\n\n@Sprite4\n\nwhen I receive [intro3 v]\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (45) to (90))\nset size to (pick random (40) to (70)) %\ngo to x: (240) y: (pick random (-180) to (180))\nglide (pick random (1) to (3)) secs to x: (-240) y: (pick random (-180) to (180))\ndelete this clone\n\nwhen I receive [delete clones/end of intro v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\n@Bounce\n\ndefine Clone at x: (x) y: (y)\n\ndefine Position (x) (y)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan4 v]\nshow\ngo to x: (240) y: (0)\n\nwhen backdrop switches to [arrière plan5 v]\nshow\ngo to x: (190) y: (0)\n\nwhen backdrop switches to [arrière plan6 v]\nhide\n\nwhen backdrop switches to [arrière plan8 v]\nshow\ngo to x: (210) y: (0)\n\nwhen backdrop switches to [arrière plan9 v]\nshow\ngo to x: (165) y: (-2)\n\nwhen backdrop switches to [arrière plan10 v]\nhide\n\n@Sprite11\n\nwhen flag clicked\nset [introstage v] to [1]\ngo to x: (0) y: (0)\nswitch costume to (costume4 v)\nhide\nset size to (100) %\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\nend\nswitch costume to (costume7 v)\nrepeat (50)\n    create clone of (_myself_ v)\nend\nwait until <(timer) > [2.1]>\nbroadcast (Explosion v)\nswitch costume to (costume8 v)\ncreate clone of (_myself_ v)\nset [introstage v] to [2]\nswitch costume to (costume7 v)\nrepeat (50)\n    create clone of (_myself_ v)\nend\nwait until <(timer) > [3.5]>\nbroadcast (Explosion v)\nswitch costume to (costume7 v)\nrepeat (50)\n    create clone of (_myself_ v)\nend\nwait until <(timer) > [6]>\nbroadcast (Explosion v)\nswitch costume to (costume8 v)\ncreate clone of (_myself_ v)\nwait until <(timer) > [8.5]>\nset [introstage v] to [3]\nswitch costume to (costume9 v)\nwait (0) seconds\nrepeat (5)\n    wait (0.2) seconds\n    create clone of (_myself_ v)\nend\nwait (1) seconds\nbroadcast (Delete Clones/End of Intro v)\n\nwhen I start as a clone\n\nshow\nif <(costume [number v]) = [3]> then\n    go to [front v] layer\n    reset timer\n    forever\n        point in direction ((([sin v] of ([tan v] of ((timer) * (200)) ) ) * (200)) + (90))\n    end\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [2]> then\n    repeat (10)\n        hide\n        hide\n    end\n    wait (1) seconds\n    show\n    go to x: (0) y: (-300)\n    point in direction (-90)\n    repeat (30)\n        go to [front v] layer\n        change y by (((0) - (y position)) / (5))\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    forever\n        point in direction ((([sin v] of ([tan v] of ((timer) * (100)) ) ) * (150)) + (90))\n    end\nend\n\nreset timer\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [4]> then\n    reset timer\n    go to x: (-300) y: (-300)\n    set [x44 v] to [10]\n    set [y44 v] to [30]\n    set [t44 v] to [20]\n    repeat until <<([ln v] of (x position) ) = [0]> or <(x position) > [-1]>>\n        change y by (Y44)\n        change x by (X44)\n        turn right (T44) degrees\n        change [y44 v] by (-1.53)\n        change [t44 v] by (-0.3)\n    end\n    repeat (15)\n        change x by (((0) - (x position)) / (3))\n        change y by (((0) - (y position)) / (3))\n        turn right (((90) - (direction)) / (3)) degrees\n    end\n    set size to (100) %\n    repeat until <(IntroStage) = [2]>\n        point in direction ((([sin v] of ([tan v] of ((timer) * (200)) ) ) * (300)) + (90))\n    end\n    repeat (15)\n        point in direction ((([sin v] of ([tan v] of ((timer) * (200)) ) ) * (300)) + (90))\n    end\n    repeat (10)\n        repeat (15)\n            change x by (((10) - (x position)) / (3))\n            point in direction ((x position) + (90))\n        end\n        repeat (15)\n            change x by (((-10) - (x position)) / (3))\n            point in direction ((x position) + (90))\n        end\n    end\n    repeat (20)\n        change x by (((0) - (x position)) / (4))\n        point in direction ((x position) + (90))\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    go to [front v] layer\n    set rotation style [all around v]\n    reset timer\n    go to x: (300) y: (-300)\n    set [x43 v] to [-10]\n    set [y43 v] to [30]\n    set [t43 v] to [-20]\n    repeat until <<([ln v] of (x position) ) = [0]> or <[-1] > (x position)>>\n        change y by (Y43)\n        change x by (X43)\n        turn right (T43) degrees\n        change [y43 v] by (-1.53)\n        change [t43 v] by (0.3)\n    end\n    repeat (15)\n        change x by (((0) - (x position)) / (3))\n        change y by (((0) - (y position)) / (3))\n        turn right (((90) - (direction)) / (3)) degrees\n    end\n    set size to (100) %\n    repeat until <(IntroStage) = [2]>\n        point in direction ((([sin v] of ([tan v] of ((timer) * (200)) ) ) * (300)) + (90))\n    end\n    repeat (15)\n        point in direction ((([sin v] of ([tan v] of ((timer) * (200)) ) ) * (300)) + (90))\n    end\n    repeat (10)\n        repeat (15)\n            change x by (((-10) - (x position)) / (3))\n            point in direction ((x position) + (90))\n        end\n        repeat (15)\n            change x by (((10) - (x position)) / (3))\n            point in direction ((x position) + (90))\n        end\n    end\n    repeat (20)\n        change x by (((0) - (x position)) / (4))\n        point in direction ((x position) + (90))\n    end\nend\n\nwhen flag clicked\nstart sound [Intro Music Vexento - New Colours \(edited by leo889\) v]\n\nwhen I start as a clone\nif <(costume [number v]) = [5]> then\n    hide\n    switch costume to (costume4 v)\n    set size to (200) %\n    switch costume to (screen shot 2020-08-04 at 18 v)\n    go to [back v] layer\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (0)\n    go to x: (0) y: (0)\n    point in direction (90)\n    \n        show\n        repeat (49)\n            change [ghost v] effect by (-5)\n            change x by (-2)\n            change y by (2)\n        end\n        go to x: (0) y: (0)\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [6]> then\n    show\nend\n\nwhen I receive [explosion v]\nif <(costume [number v]) = [9]> then\n    show\n    go to x: (0) y: (0)\n    set [xvelo49 v] to (pick random (-10) to (10))\n    set [yvelo49 v] to (pick random (5) to (15))\n    set size to (pick random (20) to (100)) %\n    set [brightness v] effect to (pick random (-50) to (20))\n    repeat until <touching (_edge_ v)?>\n        change x by (XVelo49)\n        change y by (YVelo49)\n        change [yvelo49 v] by (-1)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [9]> then\n    hide\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [10]> then\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set size to (100) %\n    clear graphic effects\n    repeat (10)\n        go to [front v] layer\n        change [ghost v] effect by (10)\n    end\nend\n\nshow\n\nforever\n\nforever\n    point in direction ((([sin v] of ([tan v] of ((timer) * (150)) ) ) * (150)) + (90))\nend\n\nrepeat until <[90] > (direction)>\n\nwhen I start as a clone\nif <(costume [number v]) = [11]> then\n    clear graphic effects\n    set size to (100) %\n    set x to (-600)\n    set y to (600)\n    repeat (30)\n        go to [front v] layer\n        change x by (((0) - (x position)) / (5))\n        change y by (((0) - (y position)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) > [1]> and <(costume [number v]) < [5]>> then\n    forever\n        if <(IntroStage) = [3]> then\n            repeat (20)\n                change size by (((0) - (size)) / (4))\n            end\n        end\n    end\nend\n\nwhen I receive [delete clones/end of intro v]\ndelete this clone\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan3 v]\nshow\ngo to [front v] layer\n\nwhen backdrop switches to [arrière plan4 v]\nhide\n\nwhen backdrop switches to [arrière plan6 v]\nshow\ngo to [front v] layer\n\nwhen backdrop switches to [arrière plan7 v]\nhide\n\n@Saws2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan3 v]\ngo to x: (76) y: (-110)\nshow\nbroadcast (tourne v)\n\nwhen I receive [tourne v]\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nwhen backdrop switches to [arrière plan4 v]\nhide\n\n@Saws\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan3 v]\ngo to x: (-17) y: (-110)\nshow\nbroadcast (tourne v)\n\nwhen I receive [tourne v]\ngo to [back v] layer\ngo [backward v] (-5) layers\ngo [forward v] (1) layers\nforever\n    turn right (3) degrees\nend\n\nwhen backdrop switches to [arrière plan4 v]\nhide\n\n@lava\n\nwhen backdrop switches to [arrière plan2 v]\ngo to [back v] layer\nswitch costume to (costume1 v)\ngo to x: (9) y: (28)\nshow\nforever\n    repeat (30)\n        change y by (-0.5)\n    end\n    repeat (30)\n        change y by (0.5)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [arrière plan3 v]\nhide\n\n@Sprite1\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-6)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen I receive [start v]\nset size to (100) %\nshow\nglide (0.25) secs to x: (-200) y: (0)\nset [ma variable v] to [0]\nset [yv v] to [0]\nset [jump v] to [0]\nset [left v] to [0]\nset [right v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <(right) = [1]>>> then\n        set [right v] to [0]\n        change [ma variable v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <(left) = [1]>>> then\n        set [left v] to [0]\n        change [ma variable v] by (-1)\n    end\n    set [ma variable v] to ((ma variable) * (0.9))\n    change x by (ma variable)\n    if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n        change y by (1)\n        if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n            change y by (1)\n            if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n                change y by (1)\n                if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n                    change y by (1)\n                    if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n                        change y by (1)\n                        if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n                            change x by ((ma variable) * (-1))\n                            change y by (-5)\n                        end\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <(Jump) = [1]>>> then\n                            set [jump v] to [0]\n                            if <(ma variable) > [0]> then\n                                set [ma variable v] to [-5]\n                            else\n                                set [ma variable v] to [5]\n                            end\n                            set [yv v] to [10]\n                        else\n                            set [yv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#5c5353)?> or <touching color (#195200)?>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <(Jump) = [1]>>> then\n            set [jump v] to [0]\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <[-160] > (y position)> then\n        set [ma variable v] to [0]\n        set [yv v] to [0]\n        start sound [Oops v]\n        repeat (20)\n            change [ghost v] effect by (5)\n            change size by (.2)\n            change [pixelate v] effect by (50)\n        end\n        set size to (15) %\n        clear graphic effects\n        go to x: (-200) y: (0)\n        go to x: (-200) y: (0)\n        set size to (100) %\n    end\n    if <<touching (sprite7 v)?> or <<<<<touching (saws4 v)?> or <touching (saws5 v)?>> or <<<<<<touching (lava v)?> or <touching (saws v)?>> or <touching (saws2 v)?>> or <touching (sprite3 v)?>> or <touching (sprite5 v)?>> or <touching (saws3 v)?>>> or <touching (sprite6 v)?>> or <touching (sprite8 v)?>>> then\n        set [ma variable v] to [0]\n        set [yv v] to [0]\n        repeat (20)\n            change [ghost v] effect by (5)\n            change size by (.2)\n        end\n        set size to (15) %\n        clear graphic effects\n        go to x: (-200) y: (0)\n        set size to (100) %\n    end\n    if <touching (danger v)?> then\n        set [ma variable v] to [0]\n        set [yv v] to [0]\n        start sound [Oops v]\n        repeat (20)\n            change [ghost v] effect by (5)\n            change size by (.2)\n            change [pixelate v] effect by (50)\n        end\n        set size to (15) %\n        clear graphic effects\n        go to x: (-200) y: (0)\n        set size to (100) %\n    end\nend\n\nwhen backdrop switches to [arrière plan1 v]\nforever\n    if <(x position) > [220]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-211) y: (-90)\n    end\nend\n\nwhen backdrop switches to [arrière plan4 v]\nforever\n    if <touching (bounce v)?> then\n        set [yv v] to [18]\n    end\nend\n\nrepeat (22)\n    set [yv v] to [-1]\nend\n\nwhen I receive [delete clones/end of intro v]\ngo to [front v] layer\nbroadcast (start v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [delete clones/end of intro v]\nswitch backdrop to (arrière plan1 v)\ngo to x: (-211) y: (-90)\nshow\n\nwhen flag clicked\nhide\n\n@Sounds\n\nwhen flag clicked\nhide\n\nwhen I receive [delete clones/end of intro v]\nwait (0.5) seconds\nset [music v] to [0]\ncreate clone of (_myself_ v)\nshow\nforever\n    if <(Music) = [0]> then\n        switch costume to (music v)\n    else\n        switch costume to (mute v)\n    end\nend\n\nwhen I receive [delete clones/end of intro v]\nswitch costume to (music v)\nset volume to (100) %\nshow\nforever\n    go to x: (215) y: (161)\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [95]>\n            change size by (2)\n        end\n        if <mouse down?> then\n            if <(Music) = [0]> then\n                switch costume to (mute v)\n                set [music v] to [2]\n                set volume to (0) %\n                wait until <not <mouse down?>>\n            else\n                if <(Music) = [2]> then\n                    switch costume to (music v)\n                    set [music v] to [0]\n                    set volume to (100) %\n                    wait until <not <mouse down?>>\n                end\n            end\n        end\n    else\n        repeat until <(size) < [92]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [delete clones/end of intro v]\nforever\n    play sound [DEAF KEV - Invincible \[NCS Release\] \[Mpgun v] until done\nend\n\n
-------------------------CONTROLS------------------------\n>WASD for Orange\n>Arrows keys for Blue\n>Space to use lever/switch\n\n-----------------------INSTRUCTIONS---------------------\n>Blue can only use blue platforms, and orange can only use orange ones.\n>Dark grey ones are usable by either.\n>Grey ones change colors to whichever player touch it.\n\n\n\n\n\n#All #Games #Music #Platformer #Multiplayer