-Rain- A Platformer #Games #All
@Stage\n\nwhen I receive [win v]\nswitch backdrop to (164553 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [rain v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [music v] until done\nend\n\nwhen backdrop switches to [164553 v]\n\n@Player\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Movement Speed: (side movement speed) Friction: (friction) Slopes: (slope)\nchange [y velocity v] by (gravity)\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to (<<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jump height))\nend\nset [x velocity v] to (((X Velocity) + ((<<key (a v) pressed?> or <key (left arrow v) pressed?>> * ((side movement speed) * (-1))) + (<<key (d v) pressed?> or <key (right arrow v) pressed?>> * (side movement speed)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n    end\nend\n\nwhen flag clicked\ngo to x: (-201) y: (-70)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [x v] to [1]\nforever\n    Platform Gravity: [-1] Jump Height: [12.5] Movement Speed: [3] Friction: [.7] Slopes: [8]\nend\n\nwhen flag clicked\nforever\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        switch costume to (player v)\n    else\n        if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n            switch costume to (left v)\n        end\n    end\nend\n\nwhen flag clicked\nset [lives v] to [3]\nforever\n    if <(lives) = [0]> then\n        broadcast (DOne v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (player v)\n\nwhen flag clicked\nforever\n    if <<touching (spikes v)?> or <<touching (lava v)?> or <<touching (lava2 v)?> or <<touching (saw v)?> or <touching (saw2 v)?>>>>> then\n        broadcast (Oouch v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-201) y: (-70)\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (flag v)?> then\n        go to x: (-201) y: (-70)\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bouncepad v)?> then\n        set [y velocity v] to [20]\n    end\nend\n\nbroadcast (Next Level v)\n\nset [x velocity v] to [-80]\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        broadcast (Saw v)\n    else\n        broadcast (No saw v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (Saw 2 v)\n    else\n        broadcast (No saw 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Lava!! v)\n    else\n        broadcast (Sorry No Lava!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (Win v) and wait\n    end\nend\n\n@Flag\n\nwhen flag clicked\nset [brightness v] effect to (-30)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Saw\n\nwhen flag clicked\nset [brightness v] effect to (-20)\ngo to [back v] layer\nrepeat until <color (#a66e90) is touching (#0fb21b)?>\n    turn right (8) degrees\nend\n\nwhen I receive [saw v]\nset [saw v] to [1]\n\nwhen I receive [no saw v]\nset [saw v] to [0]\n\nwhen flag clicked\nforever\n    if <(SaW) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nstop [this script v]\n\n@Lava\n\nwhen I receive [saw v]\nset [saw v] to [1]\n\nwhen I receive [next level v]\nset [saw v] to [0]\n\nwhen flag clicked\nhide\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(SaW) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    wait (.07) seconds\n    next costume\nend\n\n@Saw2\n\nwhen flag clicked\nset [brightness v] effect to (-20)\ngo to [back v] layer\nrepeat until <color (#a66e90) is touching (#0fb21b)?>\n    turn right (8) degrees\nend\n\nwhen I receive [saw 2 v]\nset [saw 2 v] to [1]\n\nwhen I receive [no saw 2 v]\nset [saw 2 v] to [0]\n\nwhen flag clicked\nforever\n    if <(Saw 2) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nstop [this script v]\n\n@BouncePad\n\nwhen flag clicked\nset [brightness v] effect to (-20)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@detector\n\nwhen flag clicked\nhide\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]>>\nbroadcast (King v)\nwait (0.5) seconds\nshow\ngo to x: (0) y: (-100)\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            wait (0.2) seconds\n            if <touching (mouse-pointer v)?> then\n                set [loved__ v] to [1]\n            end\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            wait (0.2) seconds\n            if <touching (mouse-pointer v)?> then\n                set [faved___ v] to [1]\n            end\n        end\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [win v]\nshow\n\n@Lava2\n\nwhen flag clicked\nforever\n    wait (.07) seconds\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(Visible) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nstop [this script v]\n\nwhen I receive [lava!! v]\nset [visible v] to [1]\n\nwhen I receive [next level v]\nset [visible v] to [0]\n\n@Sprite1\n\nwhen flag clicked\nset [wind v] to [0]\nhide\ngo to [back v] layer\nrepeat (40)\n    go to x: (pick random (-230) to (230)) y: (180)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Wind) = [0]> then\n    point in direction (90)\n    show\n    go to [back v] layer\n    go to x: (pick random (-230) to (230)) y: (180)\n    forever\n        repeat until <touching (sprite2 v)?>\n            change y by (-10)\n        end\n        create clone of (_myself_ v)\n        delete this clone\n    end\nend\nif <(Wind) = [1]> then\n    point in direction (-135)\n    show\n    go to [back v] layer\n    go to x: (pick random (-230) to (230)) y: (180)\n    forever\n        repeat until <<touching (sprite2 v)?> or <touching (_edge_ v)?>>\n            change y by (-10)\n        end\n        create clone of (_myself_ v)\n        delete this clone\n    end\nend\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [snow v]\nset [wind v] to [1]\n\n@Sprite2\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@download (3)\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Sprite3\n\nwhen flag clicked\nshow\n\nwhen I receive [message1 v]\n\nwhen I receive [message2 v]\n\nwhen I receive [messagem v]\nshow\n\nwhen I receive [messagenom v]\nhide\n\n@M\n\nwhen flag clicked\ngo to [front v] layer\nset [mxv v] to [0]\nshow\nset size to (100) %\ngo to x: (0) y: (0)\nset rotation style [left-right v]\npoint in direction (-90)\nforever\n    set [my variable v] to [1]\n    wait (1) seconds\n    repeat (17)\n        change [my variable v] by (1)\n    end\n    repeat (20)\n        change size by (-.5)\n        wait (0) seconds\n    end\n    broadcast (messageM v)\n    repeat (20)\n        change size by (-.5)\n        wait (0) seconds\n    end\n    wait (2) seconds\n    broadcast (messageNoM v)\n    set size to (100) %\n    set [my variable v] to [1]\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    switch costume to (my variable)\nend\n\nwait (0) seconds\n\nchange size by (0)\nwait (0) seconds\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nswitch costume to (m16 v)\n\ngo [backward v] (1) layers\n\nwhen flag clicked\n\n\n\n\n    show\nelse\n    hide\nend\n\nwait (.5) seconds\nforever\n\nwhen I receive [messagenom v]\nhide\nstop [other scripts in sprite v]\n\ncreate clone of (_myself_ v)\n\nbroadcast (messageNoM v)\n\n@Red\n\nwhen I receive [message1 v]\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-20) y: (400)\nrepeat (5)\n    next costume\n    create clone of (_myself_ v)\nend\nswitch costume to (costume1 v)\n\nchange x by (-20)\n\nwait (1) seconds\n\nwait (1) seconds\n\nwhen I receive [messagenom v]\nwait ((costume [number v]) / (5)) seconds\nrepeat until <(y position) = [-380]>\n    change y by (-20)\nend\ngo to x: (-20) y: (400)\n\ngo to x: (-20) y: (400)\n\nwhen I receive [messagem v]\ngo to [front v] layer\nwait (0) seconds\nwait ((costume [number v]) / (5)) seconds\nrepeat until <(y position) = [0]>\n    change y by (-20)\nend\n\n