₵ᴜʙɪ₵ - Platformer Contest

Instructions:                               ✦✦✦₵ᴜʙɪ₵✦✦✦\n➜Welcome to my -NEW- generic platformer. \n➜#56 on trending LESSS GOOO\n➜Difficulty (7/10)\n\n                           ✦✦✦ʜᴏᴡ ᴛᴏ ᴘʟᴀʏ✦✦✦\n➜Use [arrow keys] or [WASD]\n➜Avoid Spikes and Lava\n➜[R] to restart\n➜[TAP] for mobile\n➜Heart and Star for invincibility!!\n\nP.S you can move its eyeball with your mouse pointer\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n:)

@Stage\n\nwhen flag clicked\nset [music volume v] to [100]\nforever\n    set volume to (music volume) %\nend\n\nwhen flag clicked\nhide variable [music volume v]\nforever\n    if <(sO) = [1]> then\n        show variable [music volume v]\n    else\n        if <(sO) = [0]> then\n            hide variable [music volume v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        switch backdrop to (backdrop1 v)\n    else\n        if <(level) = [15]> then\n            switch backdrop to (game3 v)\n        else\n            if <(level) = [20]> then\n                switch backdrop to (game4 v)\n            else\n                switch backdrop to (game v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        play sound [temple-cave-myts-storm-6363 v] until done\n    else\n        play sound [music_zapsplat_easy_cheesy v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        wait (0.01) seconds\n        stop all sounds\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        play sound [dripping-water-nature-sounds-8050 v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        switch backdrop to (game2 v)\n    end\nend\n\n\n\n\n\nswitch backdrop to (game3 v)\n\n@Sprite1\n\ndefine platformer physics (speed) (friction) (jump height)\nchange [y vel v] by (-1)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [10]>>> then\n    change [x vel v] by (speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-10]>>> then\n    change [x vel v] by ((speed) * (-1))\nend\nset [x vel v] to ((x vel) * (friction))\nchange x by (x vel)\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                                if <touching (level v)?> then\n                                    change y by (-8)\n                                    repeat until <not <touching (level v)?>>\n                                        change x by ((([abs v] of (x vel) ) / (x vel)) * (-1))\n                                    end\n                                    set [x vel v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y vel)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (y vel) ) / (y vel)) * (-1))\n    end\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (level v)?>> then\n    set [y vel v] to (jump height)\n    start sound [Low Whoosh v]\nelse\n    if <touching (tramp v)?> then\n        set [y vel v] to [17]\n        start sound [Low Whoosh v]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\nbroadcast (eye v)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (100)\nset [speed v] to [0.8]\nset [friction v] to [0.9]\nset [jump h v] to [13]\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nforever\n    if <(d) = [0]> then\n        platformer physics (speed) (friction) (jump h)\n        set [x2 v] to (x position)\n        set [y2 v] to (y position)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nswitch costume to (costume2 v)\nforever\n    go to x: (x2) y: (y2)\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <[235] < (x position)> then\n        go to x: (-240) y: (y position)\n        change [level v] by (1)\n    end\nend\n\nwhen I start as a clone\nset [d v] to [0]\nforever\n    if <<<<<touching (enemy v)?> or <key (r v) pressed?>> or <(rO) = [1]>> or <(d) = [1]>> and <(Love and Fav) = [0]>> then\n        set [d v] to [1]\n        switch costume to (costume2 v)\n        repeat (10)\n            change [brightness v] effect by (5)\n            turn right (10) degrees\n            next costume\n            change [ghost v] effect by (5)\n        end\n        switch costume to (costume)\n        hide\n        set [d v] to [0]\n        point in direction (90)\n        clear graphic effects\n        show\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<<touching (enemy v)?> or <key (r v) pressed?>> or <(rO) = [1]>> or <(d) = [1]>> and <(Love and Fav) = [0]>> then\n        set [d v] to [1]\n        start sound [Crunch v]\n        wait until <(d) = [0]>\n        go to x: (-240) y: (-50)\n    end\nend\n\nset [level v] to [15]\n\nwhen flag clicked\nset [sfx volume v] to [100]\nforever\n    set volume to (SFX volume) %\nend\n\nwhen flag clicked\nhide variable [sfx volume v]\nforever\n    if <(sO) = [1]> then\n        show variable [sfx volume v]\n    else\n        if <(sO) = [0]> then\n            hide variable [sfx volume v]\n        end\n    end\nend\n\nwhen flag clicked\nset [s v] to [100]\nforever\n    if <(TRAITOR) = [1]> then\n        set [s v] to [100]\n        set [speed v] to [0.3]\n        set [friction v] to [0.95]\n        set [jump h v] to [8]\n        set [eye movement amount v] to [0.01]\n    else\n        if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n            set [s v] to [50]\n            set [speed v] to [0.6]\n            set [friction v] to [0.85]\n            set [jump h v] to [8]\n            set [eye movement amount v] to [0.01]\n            set size to (s) %\n        else\n            set [speed v] to [0.8]\n            set [friction v] to [0.9]\n            set [jump h v] to [13]\n            set [s v] to [100]\n            set [eye movement amount v] to [0.02]\n            set size to (100) %\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        set size to (s) %\n    else\n        set size to (100) %\n    end\nend\n\n\n\ngo to x: (-240) y: (-50)\n\nforever\n\nswitch costume to (costume1 v)\n\nwhen I start as a clone\nforever\n    if <(Love and Fav) = [1]> then\n        if <touching (enemy v)?> then\n            set [ghost v] effect to (80)\n            set [brightness v] effect to (10)\n        else\n            set [brightness v] effect to (0)\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\n\n\nwhen I start as a clone\nforever\n    if <(Love and Fav) = [1]> then\n        set [costume v] to [13]\n        switch costume to (costume13 v)\n        change [color v] effect by (5)\n    else\n        if <<(Love and Fav) = [0]> and <(TRAITOR) = [1]>> then\n            set [costume v] to [14]\n            switch costume to (costume14 v)\n            clear graphic effects\n        else\n            if <not <<<<<touching (enemy v)?> or <key (r v) pressed?>> or <(rO) = [1]>> or <(d) = [1]>> and <(Love and Fav) = [0]>>> then\n                switch costume to (costume2 v)\n                set [costume v] to [2]\n            end\n        end\n    end\nend\n\nforever\nend\n\nforever\nend\n\n\n\nset [traitor v] to [1]\n\nchange [color v] effect by (25)\n\nif <(Love and Fav) = [1]> then\n    set [costume v] to [13]\nend\n\nset [level v] to [0]\n\n@level\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nset [level v] to [14]\n\n@enemy\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\ngo [backward v] (1) layers\n\n@Sprite2\n\ngo to (sprite1 v)\n\nwhen I receive [eye v]\ngo to (sprite1 v)\npoint in direction (90)\nforever\n    set [x v] to (mouse x)\n    set [y v] to (mouse y)\n    set x to ((x) * (eye movement amount))\n    set y to ((y) * (eye movement amount))\n    change x by (x2)\n    change y by (y2)\nend\n\nwhen flag clicked\nset [eye movement amount v] to [0.02]\nforever\n    if <(d) = [0]> then\n        show\n    else\n        if <(d) = [1]> then\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        set size to (s) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Love and Fav) = [1]> or <(TRAITOR) = [1]>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [thanks v]\nforever\n    change [color v] effect by (5)\nend\n\nwhen flag clicked\nforever\n    if <(Love and Fav) = [1]> then\n        if <touching (enemy v)?> then\n            set [ghost v] effect to (70)\n            set [brightness v] effect to (10)\n        else\n            set [brightness v] effect to (0)\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\n@settings\n\nwhen flag clicked\ngo to x: (205) y: (150)\nforever\n    set y to ((145) + (([sin v] of ((timer) * (300)) ) * (3)))\n    point in direction ((90) + (([sin v] of ((timer) * (100)) ) * (10)))\n    if <touching (mouse-pointer v)?> then\n        set size to (((350) - (size)) / (2)) %\n    else\n        set size to (((300) - (size)) / (2)) %\n    end\nend\n\nwhen flag clicked\nset [so v] to [0]\ngo to x: (205) y: (150)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [so v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(sO) = [1]> or <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>>> then\n        hide\n    else\n        if <(sO) = [0]> then\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\nend\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nforever\n    if <(sO) = [1]> then\n        show\n    else\n        if <(sO) = [0]> then\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nforever\n    if <(sO) = [1]> then\n        show\n    else\n        if <(sO) = [0]> then\n            hide\n        end\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (170) y: (0)\nforever\n    set y to ((105) + (([sin v] of ((timer) * (300)) ) * (3)))\n    if <touching (mouse-pointer v)?> then\n        set size to (((350) - (size)) / (2)) %\n    else\n        set size to (((300) - (size)) / (2)) %\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [so v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(sO) = [1]> then\n        show\n    else\n        if <(sO) = [0]> then\n            hide\n        end\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nset [to v] to [1]\ngo to [back v] layer\nhide\nforever\n    if <(tO) = [1]> then\n        if <(Love and Fav) = [1]> then\n            switch costume to (costume2 v)\n            create clone of (_myself_ v)\n            wait (0.01) seconds\n        else\n            if <(TRAITOR) = [1]> then\n                switch costume to (costume3 v)\n                create clone of (_myself_ v)\n                wait (0.01) seconds\n            else\n                switch costume to (costume1 v)\n                create clone of (_myself_ v)\n                wait (0.05) seconds\n            end\n        end\n    else\n        if <(tO) = [0]> then\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\ngo to (sprite1 v)\nset size to (s) %\nset [ghost v] effect to (0)\nshow\nwait (0.1) seconds\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(d) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I receive [thanks v]\nforever\n    change [color v] effect by (5)\nend\n\nwhen I start as a clone\nforever\n    if <(Love and Fav) = [1]> then\n        if <touching (enemy v)?> then\n            set [ghost v] effect to (80)\n        else\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (-115) y: (40)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((350) - (size)) / (2)) %\n    else\n        set size to (((300) - (size)) / (2)) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <(sO) = [1]> then\n        show\n    else\n        if <(sO) = [0]> then\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(tO) = [1]>> then\n        wait (0.1) seconds\n        set [to v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(tO) = [0]>> then\n        wait (0.1) seconds\n        set [to v] to [1]\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\nset [ghost v] effect to (100)\nset [mo v] to [0]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [ro v] to [1]\n        wait (0.01) seconds\n        set [ro v] to [0]\n        wait (0.2) seconds\n    end\n    if <touching (mouse-pointer v)?> then\n        set [mo v] to [1]\n    else\n        set [mo v] to [0]\n    end\nend\n\nwhen I start as a clone\ngo to x: (150) y: (150)\nforever\n    set y to ((145) + (([sin v] of ((timer) * (300)) ) * (3)))\n    point in direction ((90) + (([sin v] of ((timer) * (100)) ) * (10)))\n    if <(mO) = [1]> then\n        set size to (((350) - (size)) / (2)) %\n    else\n        if <(mO) = [0]> then\n            set size to (((300) - (size)) / (2)) %\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(sO) = [1]> or <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>>> then\n        hide\n    else\n        if <(sO) = [0]> then\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(sO) = [1]> or <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>>> then\n        hide\n    else\n        if <(sO) = [0]> then\n            show\n        end\n    end\nend\n\n@Sprite8\n\nwhen I start as a clone\nforever\n    if <<(cO) = [1]> or <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>>> then\n        wait (0.01) seconds\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(cO) = [1]> or <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(clone ID) = [0]> then\n    turn right (pick random (-3) to (3)) degrees\n    switch costume to (pick random (1) to (7))\n    show\n    go to x: (330) y: (pick random (145) to (160))\n    repeat until <(x position) < [-330]>\n        change x by (-3)\n    end\n    delete this clone\nelse\n    if <(clone ID) = [1]> then\n        turn right (pick random (-3) to (3)) degrees\n        set size to (80) %\n        set [brightness v] effect to (-3)\n        set [ghost v] effect to (10)\n        go to [back v] layer\n        go [forward v] (1) layers\n        switch costume to (pick random (1) to (7))\n        show\n        go to x: (330) y: (pick random (100) to (110))\n        repeat until <(x position) < [-330]>\n            change x by (-2.5)\n        end\n        delete this clone\n    else\n        if <(clone ID) = [2]> then\n            turn right (pick random (-3) to (3)) degrees\n            set size to (50) %\n            set [brightness v] effect to (-4)\n            set [ghost v] effect to (30)\n            go to [back v] layer\n            switch costume to (pick random (1) to (7))\n            show\n            go to x: (330) y: (pick random (60) to (70))\n            repeat until <(x position) < [-330]>\n                change x by (-1.5)\n            end\n            delete this clone\n        end\n    end\nend\n\nwhen I start as a clone\n\n\n\n\nwhen flag clicked\ngo to [back v] layer\nhide\nset [ghost v] effect to (5)\nforever\n    set [clone id v] to [0]\n    create clone of (_myself_ v)\n    wait (pick random (2.3) to (2.5)) seconds\nend\n\nrepeat until <touching (_edge_ v)?>\n    change x by (-5)\nend\n\nwhen flag clicked\nforever\n    set [clone id v] to [1]\n    create clone of (_myself_ v)\n    wait (pick random (2) to (2.3)) seconds\nend\n\nwhen flag clicked\nset [co v] to [0]\nforever\n    set [clone id v] to [2]\n    create clone of (_myself_ v)\n    wait (pick random (2.3) to (2.7)) seconds\nend\n\nwhen I start as a clone\nif <(backdrop [number v]) = [3]> then\n    delete this clone\nend\n\ndelete this clone\n\n@Sprite9\n\nwhen flag clicked\ngo to x: (-115) y: (10)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((350) - (size)) / (2)) %\n    else\n        set size to (((300) - (size)) / (2)) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <(sO) = [1]> then\n        show\n    else\n        if <(sO) = [0]> then\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(cO) = [1]>> then\n        wait (0.1) seconds\n        set [co v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(cO) = [0]>> then\n        wait (0.1) seconds\n        set [co v] to [1]\n    end\nend\n\n@Sprite10\n\n@Sprite11\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nhide\n\n@Sprite12\n\n@Sprite13\n\nwhen flag clicked\nset [ghost v] effect to (2)\nforever\n    if <<<(level) = [14]> or <(level) = [13]>> or <(level) = [12]>> then\n        go to [front v] layer\n        set [ghost v] effect to (1)\n    else\n        set [ghost v] effect to (100)\n    end\nend\n\nshow\n\nwhen I receive [eye v]\nforever\n    go to (sprite1 v)\n    switch costume to (costume2 v)\n    set size to (250) %\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\nforever\n\nif <(sO) = [1]> then\n    hide\nelse\n    if <(sO) = [0]> then\n        show\n    end\nend\n\n@          \n\nwhen flag clicked\nhide\nforever\n    wait (0.3) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset size to (150) %\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nset [color v] effect to (0)\ngo to x: (230) y: (pick random (-200) to (200))\npoint in direction (pick random (-105) to (-75))\nset [ghost v] effect to (70)\nrepeat until <<[-230] > (x position)> or <[-170] > (y position)>>\n    move (10) steps\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\n\n@sign\n\nwhen flag clicked\ngo to [back v] layer\ncreate clone of (_myself_ v)\nforever\n    set [clone xx v] to (x position)\n    set [clone yy v] to (y position)\n    switch costume to (costume1 v)\n    if <(level) = [11]> then\n        go to x: (-100) y: (-100)\n        show\n    else\n        if <(level) = [2]> then\n            go to x: (-100) y: (-100)\n            show\n        else\n            if <(level) = [4]> then\n                go to x: (-100) y: (-100)\n                show\n            else\n                if <(level) = [1]> then\n                    go to x: (50) y: (-100)\n                    show\n                else\n                    if <(level) = [15]> then\n                        go to x: (0) y: (-100)\n                        show\n                    else\n                        if <(level) = [16]> then\n                            go to x: (-100) y: (-100)\n                            show\n                        else\n                            if <(level) = [17]> then\n                                go to x: (-160) y: (-100)\n                                show\n                            else\n                                if <(level) = [19]> then\n                                    go to x: (-180) y: (-100)\n                                    show\n                                else\n                                    hide\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        set [show or n v] to [1]\n    else\n        set [show or n v] to [0]\n    end\n    point in direction ((90) + (([sin v] of ((timer) * (100)) ) * (5)))\nend\n\nwhen I start as a clone\npoint in direction (90)\nset [ghost v] effect to (100)\nforever\n    go to x: (clone xx) y: (clone yy)\n    show\n    if <(show or n) = [1]> then\n        repeat (8)\n            change [ghost v] effect by (-10)\n        end\n        set [ghost v] effect to (0)\n    else\n        repeat (8)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (100)\n    end\nend\n\ngo to [back v] layer\n\nhide\n\nwhen I start as a clone\nforever\n    if <(level) = [2]> then\n        switch costume to (costume3 v)\n    else\n        if <(level) = [11]> then\n            switch costume to (costume2 v)\n        else\n            if <(level) = [4]> then\n                switch costume to (costume4 v)\n            else\n                if <(level) = [1]> then\n                    switch costume to (costume5 v)\n                else\n                    if <(level) = [15]> then\n                        switch costume to (costume6 v)\n                    else\n                        if <(level) = [16]> then\n                            switch costume to (costume7 v)\n                        else\n                            if <(level) = [17]> then\n                                switch costume to (costume8 v)\n                            else\n                                if <(level) = [19]> then\n                                    switch costume to (costume9 v)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nset [ghost v] effect to (100)\n\n@Sprite14\n\n@tramp\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\nforever\n    if <touching (sprite1 v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\ngo [forward v] (1) layers\n\nforever\n\nwhen flag clicked\nforever\n    if <(level) = [17]> then\n        show\n        go to x: (-17) y: (-77)\n    else\n        if <(level) = [18]> then\n            show\n            go to x: (50) y: (-77)\n        else\n            if <(level) = [19]> then\n                show\n                go to x: (-90) y: (-77)\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I start as a clone\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\nbroadcast (Thanks v)\nset [traitor v] to [0]\n\ngo to x: (0) y: (0)\nshow\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@Thanks\n\nwhen I receive [thanks v]\nset [love and fav v] to [1]\nswitch costume to (costume2 v)\ngo to x: (-210) y: (50)\nshow\ngo to [front v] layer\nstart sound [pop v]\nrepeat (9)\n    change y by (-6)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-3)\nend\nwait (1) seconds\nrepeat (10)\n    change y by (6)\nend\nhide\n\nwhen I start as a clone\ngo to x: (0) y: (-50)\nshow\ngo to [front v] layer\nrepeat (12)\n    change y by (-9)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-1)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (50)\n        if <(costume [number v]) = [2]> then\n            if <mouse down?> then\n                set [costume v] to [2]\n                repeat (25)\n                    change y by (10)\n                end\n                hide\n                delete this clone\n            end\n        else\n            if <(costume [number v]) = [3]> then\n                if <mouse down?> then\n                    set [costume v] to [1]\n                    repeat (25)\n                        change y by (15)\n                    end\n                    hide\n                    delete this clone\n                end\n            end\n        end\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(Costume) > [0.99]> then\n        repeat (25)\n            change y by (15)\n        end\n        hide\n        delete this clone\n    end\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\nset [costume v] to [0.9]\nset [love and fav v] to [0]\n\nwhen I receive [begin v]\nset [costume v] to [0.9]\nwait (0.1) seconds\nset [costume v] to [0.9]\nwait (0.2) seconds\nset [costume v] to [0.9]\n\n@love and fav\n\nwhen I receive [show v]\nhide\nforever\n    wait (pick random (5) to (15)) seconds\n    play sound [pop v] until done\n    go to x: (-100) y: (250)\n    show\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    repeat (1)\n        change y by (-5)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\nwhen flag clicked\nforever\n    go [forward v] (100) layers\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [hide v] to [1]\nforever\n    if <key (h v) pressed?> then\n        change [hide v] by (1)\n        if <(hide) > [2]> then\n            set [hide v] to [1]\n        end\n        if <(hide) = [2]> then\n            hide\n            stop [other scripts in sprite v]\n        end\n        if <(hide) = [1]> then\n            broadcast (show v)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (10) to (20)) seconds\n    play sound [pop v] until done\n    go to x: (-100) y: (209)\n    show\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    repeat (1)\n        change y by (-5)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\nwhen I receive [thanks v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\n@Detector2\n\nwhen flag clicked\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 I receive [thanks v]\nhide\nwait (6) seconds\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]>>\nset [traitor v] to [1]\nstop [all v]\n\nwait until <not <touching (mouse-pointer v)?>>\n\n@Sprite15\n\nwhen flag clicked\nforever\n    if <(username) = [hcdyug]> then\n        show\n    else\n        hide\n    end\nend\n\n