!-RAIN PLATFORMER-!
@Stage\n\nwhen flag clicked\nforever\n    play sound [\[Glitch_Hop_110BPM_-_Pegboard_Nerds_Tristam_-_Razo v] until done\nend\n\n@Ground\n\nwhen I receive [end v]\nhide\n\nhide\n\ngo to [front v] layer\n\nforever\n\nwhen flag clicked\n\nhide\n\nshow\nwait (16) seconds\n\nwhen flag clicked\nforever\n    if <(username) = [Griffpatch]> then\n        set [☁ views by griff v] to [1]\n    end\nend\n\nset [☁ views by griff v] to [0]\n\nwhen flag clicked\ngo to [front v] layer\nbroadcast (play v)\n\nwhen I receive [levelup v]\nnext costume\n\nwhen I receive [play v]\nshow\nswitch costume to (01 v)\ngo [forward v] (1) layers\n\n@Player\n\nwhen [space v] key pressed\nnext costume\n\nwhen I receive [play v]\ngo to [front v] layer\nswitch costume to (costume2 v)\nset [ghost v] effect to (0)\nshow\ngo to x: (-180) y: (-50)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.8)\n        switch costume to (costume1 v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (costume2 v)\n        change [x v] by (0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [1]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <<key (b v) pressed?> or <touching (spikes v)?>> then\n        go to x: (-180) y: (-50)\n        broadcast (dead v)\n    end\n    if <(x position) > [242]> then\n        go to x: (-180) y: (-50)\n        broadcast (levelup v)\n        change [level v] by (1)\n    end\n    if <(Level) = [15]> then\n        broadcast (end v)\n        stop [other scripts in sprite v]\n    end\nend\n\n@Spikes\n\ngo to x: (122) y: (0)\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\nend\n\nwhen I receive [levelup v]\nnext costume\n\nwhen I receive [play v]\ngo to [front v] layer\nshow\nswitch costume to (01 v)\n\n@Thumbnail2\n\nwhen flag clicked\nshow\nhide\nforever\n    go to [front v] layer\nend\n\n@Trail\n\nwhen flag clicked\nset [ghost v] effect to (50)\nswitch costume to (trail v)\nforever\n    set size to (100) %\n    hide\n    go to (player v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\nchange size by (-10)\nchange [ghost v] effect by (5)\nwait (0.01) seconds\ndelete this clone\n\nwhen I receive [fire collected v]\nswitch costume to (fire trail v)\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 (message v)\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\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (30) to (40)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nhide\nforever\n    set [timer for thumb v] to (timer)\nend\n\nwhen [timer v] > ((Timer for thumb) + (0.01))\nswitch costume to (splash v)\nshow\ngo to x: (0) y: (0)\nset [brightness v] effect to (50)\ngo to [front v] layer\nset y to (100)\nrepeat (10)\n    set y to ((y position) / (2))\nend\nrepeat (10)\n    change [brightness v] effect by (-5)\nend\nset [brightness v] effect to (5)\n\nforever\n\nshow\ngo to [front v] layer\nstop [all v]\n\nwhen [timer v] > (10)\n\n@Particle\n\nwhen flag clicked\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (pick random (20) to (50))\nshow\nset y to (10000)\nset [myx v] to (pick random ((ScrollX) - (400)) to ((ScrollX) + (400)))\nset [bubble speed v] to (pick random (-5) to (-12))\nset size to (pick random (50) to (60)) %\nrepeat (30)\n    switch costume to (costume2 v)\n    change y by (Bubble speed)\n    set x to ((MyX) - (ScrollX))\n    switch costume to (costume1 v)\n    change size by (-1)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    change size by (-1)\nend\n\n\n\nwhen flag clicked\nforever\n    if <<(Level) = [2]> or <<(Level) = [3]> or <(Level) = [4]>>> then\n        hide\n        stop [this script v]\n    else\n        show\n        switch costume to (costume1 v)\n        hide\n        go to [back v] layer\n        forever\n            create clone of (_myself_ v)\n        end\n    end\nend\n\ndelete this clone\n\n