Jump! - A mobile platformer Hacked!

Instructions: Press r to restart the project if you get stuck\nFollow me for a CHANCE TO GET A FREE SHOUTOUT on this project, I will be picking a random person.\n\nHi! Welcome to Jump! - A mobile platformer!\nTurn your volume up! This is a music game!\nNormal controls

@Stage\n\nwhen flag clicked\nset [music v] to []\nset [level max v] to [17]\n\n@Sprite1\n\n@Player\n\ndefine platform (jump height) (friction) (running speed)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (90)\n    change [x velocity v] by (running speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    point in direction (-90)\n    change [x velocity v] by ((running speed) * (-1))\nend\nset [x velocity v] to ((X velocity) * (friction))\nchange x by (X velocity)\nif <touching (level v)?> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching (level v)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (X velocity) ) )\n            if <touching (level v)?> then\n                change x by ((([abs v] of (X velocity) ) / (X velocity)) * (-1))\n            end\n        end\n        set [x velocity v] to [0]\n    end\nend\nchange y by (Y velocity)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (Y velocity) ) )\n        if <touching (level v)?> then\n            change y by ((([abs v] of (Y velocity) ) / (Y velocity)) * (-1))\n        end\n    end\n    if <<(([abs v] of (Y velocity) ) / (Y velocity)) = [-1]> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y velocity v] to [4]\n    else\n        set [y velocity v] to [0]\n    end\nelse\n    change [y velocity v] by (-1)\nend\nif <(x position) > [230]> then\n    if <not <(Level) = (Level MAX)>> then\n        broadcast (Next v)\n        change [level v] by (1)\n        Reset\n    end\nend\nif <touching (trampoline v)?> then\n    if <(Level) = [16]> then\n        set [y velocity v] to [25]\n    else\n        set [y velocity v] to [20]\n    end\nend\nif <touching (boost v)?> then\n    set [x velocity v] to [30]\nend\nif <touching (inverted boost v)?> then\n    set [x velocity v] to [-30]\nend\nif <touching (portal1 v)?> then\n    start sound [Teleport2 v]\n    Reset\n    go to (portal2 v)\nend\n\nwhen flag clicked\nwait (0.001) seconds\nset size to (200) %\ngo to [front v] layer\ngo to x: (-213) y: (-82)\nhide\n\nwhen I receive [play v]\nshow\nforever\n    platform [13] [.9] [1]\nend\n\ndefine Reset\ngo to x: (-213) y: (-82)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\nwhen I receive [skip v]\ngo to x: (-213) y: (-82)\n\nwhen I receive [animation finished v]\nswitch costume to (costume1 v)\n\nwhen I receive [skip v]\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nswitch costume to (costume1 v)\n\nwhen I receive [venom v]\nswitch costume to (costume2 v)\n\nwhen I receive [fail v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [y velocity v] to [4]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-213) y: (-82)\n    end\nend\n\n@Level\n\nwhen flag clicked\nwait (0.001) seconds\nhide\nset [level v] to [1]\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [animation finished v]\nshow\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nwhen I receive [animation finished v]\ngo to [back v] layer\n\n@Shadow\n\nwhen flag clicked\nset [ghost v] effect to (50)\nset rotation style [left-right v]\npoint in direction (90)\nhide\n\nwhen I receive [play v]\nshow\nforever\n    go to (player v)\n    go to [back v] layer\nend\n\n@Intro\n\nwhen flag clicked\nset volume to (100) %\npoint in direction (90)\nswitch backdrop to (backdrop1 v)\nshow\nclear graphic effects\nset size to (100) %\ngo to x: (0) y: (0)\nstart sound [Gioni - Trigger \[Bass Boosted\].mp3 v]\nswitch costume to (25582564_170x100 v)\nrepeat (42)\n    next costume\nend\nset size to (100000) %\nrepeat (20)\n    set [bounce v] to (((Bounce) * (0.7)) + (((100) - (size)) / (1.5)))\n    change size by (Bounce)\nend\nrepeat (50)\n    point in direction ((100) + ((20) * ([cos v] of ((timer) * (1200)) )))\nend\npoint in direction (90)\nset size to (100000) %\nrepeat (20)\n    set [bounce v] to (((Bounce) * (0.7)) + (((100) - (size)) / (1.5)))\n    change size by (Bounce)\nend\nbroadcast (Message1 v)\nrepeat (15)\n    change y by (intro)\n    set [intro v] to ((intro) * (1.5))\nend\nset size to (100) %\ngo to x: (0) y: (-180)\ngo to [front v] layer\nshow\nset [intro v] to [20]\nrepeat (35)\n    change y by (intro)\n    set [intro v] to ((intro) * (0.9))\nend\nwait (.2) seconds\nset size to (100000) %\nrepeat (20)\n    set [bounce v] to (((Bounce) * (0.7)) + (((100) - (size)) / (1.5)))\n    change size by (Bounce)\n    change [brightness v] effect by (15)\n    change volume by (-10)\nend\nhide\nswitch backdrop to (backdrop2 v)\nbroadcast (Animation finished v)\n\nwhen I receive [message1 v]\nrepeat until <(costume [number v]) = [83]>\n    next costume\nend\n\n@thx\n\nwhen I receive [outro v]\nshow\npoint in direction (90)\nset size to (100) %\nforever\n    go to [front v] layer\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set y to ((-70) + (([sin v] of ((timer) * (275)) ) * (7)))\n    set x to ((0) + (([sin v] of ((timer) * (275)) ) * (7)))\nend\n\nwhen flag clicked\nwait (0.001) seconds\nhide\n\n@title\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (500)\nhide\n\nwhen I receive [animation finished v]\nshow\nglide (0.5) secs to x: (0) y: (100)\nforever\n    set y to ((75) - (([sin v] of ((timer) * (275)) ) * (7)))\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [play v]\nhide\n\n@Play button\n\nwhen flag clicked\nwait (0.001) seconds\nhide\nclear graphic effects\ngo to x: (270) y: (-10)\n\nwhen I receive [animation finished v]\nshow\nglide (.5) secs to x: (-18) y: (-10)\nforever\n    set [brightness v] effect to (0)\n    set x to ((-20) + (([sin v] of ((timer) * (275)) ) * (7)))\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen this sprite clicked\nbroadcast (Play v)\nstart sound [menu001 v]\nhide\n\n@Music select\n\nwhen flag clicked\nwait (0.001) seconds\nhide\nset volume to (100) %\ngo to x: (-270) y: (-85)\n\nwhen I receive [animation finished v]\nshow\nglide (.5) secs to x: (-18) y: (-85)\nforever\n    set [brightness v] effect to (0)\n    set x to ((-20) + (([sin v] of ((timer) * (275)) ) * (7)))\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Music v)\nhide\n\nwhen I receive [back v]\nshow\n\nwhen [u v] key pressed\nset volume to (100) %\n\nwhen [m v] key pressed\nset volume to (0) %\n\nwhen I receive [play v]\nhide\n\nwhen I receive [play v]\nif <(MUSIC) = []> then\n    forever\n        play sound (pick random (1) to (4)) until done\n    end\nelse\n    if <(MUSIC) = [1]> then\n        forever\n            play sound [Vexento - Pegasus v] until done\n        end\n    else\n        if <(MUSIC) = [2]> then\n            forever\n                play sound [Vexento - Masked Heroes \(128  kbps\) v] until done\n            end\n        else\n            if <(MUSIC) = [3]> then\n                forever\n                    play sound [Lights \[Dream Trance\] v] until done\n                end\n            else\n                if <(MUSIC) = [4]> then\n                    forever\n                        play sound [Vexento - Empty v] until done\n                    end\n                else\n                    forever\n                        play sound (pick random (1) to (4)) until done\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [animation finished v]\ngo to [front v] layer\n\n@Gui\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\n    Sense\nend\n\ndefine Sense\nswitch costume to (sense v)\nshow\nset [ghost v] effect to (20)\ngo to [front v] layer\nif <touching (play button v)?> then\n    switch costume to (play v)\nelse\n    if <touching (vexento - pegasus v)?> then\n        switch costume to (vexento - pegasus v)\n    else\n        if <touching (vexento - empty v)?> then\n            switch costume to (vexento - empty v)\n        else\n            if <touching (lights \[tream trance\] v)?> then\n                switch costume to (lights \[tream trance\] v)\n            else\n                if <touching (vexento - masked heroes v)?> then\n                    switch costume to (vexento - masked heroes v)\n                else\n                    if <touching (random v)?> then\n                        switch costume to (random v)\n                    else\n                        if <touching (back button v)?> then\n                            switch costume to (back v)\n                        else\n                            if <touching (music select v)?> then\n                                switch costume to (music select v)\n                            else\n                                if <touching (skip v)?> then\n                                    switch costume to (skip v)\n                                else\n                                    hide\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Grunge\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nswitch costume to (grunge2 v)\ngo to [back v] layer\nset [ghost v] effect to (50)\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen I receive [play v]\nset [ghost v] effect to (96)\ngo to [back v] layer\nswitch costume to (grunge v)\nshow\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\nend\n\n@Vexento - Pegasus\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-190) y: (31)\nhide\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nbroadcast (Back v)\nset [music v] to [1]\nstart sound [menu001 v]\n\n@Vexento - Empty\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-21) y: (-51)\nhide\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nbroadcast (Back v)\nset [music v] to [4]\nstart sound [menu001 v]\n\n@Vexento - Masked Heroes\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (-190) y: (-128)\nhide\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nbroadcast (Back v)\nset [music v] to [2]\nstart sound [menu001 v]\n\n@Lights [Tream Trance]\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (134) y: (-128)\nhide\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nbroadcast (Back v)\nset [music v] to [3]\nstart sound [menu001 v]\n\n@Random\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (134) y: (31)\nhide\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nbroadcast (Back v)\nset [music v] to [5]\nstart sound [menu001 v]\n\n@Back button\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (139) y: (139)\nhide\n\nwhen this sprite clicked\nstart sound [menu001 v]\nbroadcast (Back v)\n\nwhen I receive [music v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\n@Particle Effects\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (80)\nset size to (pick random (80) to (150)) %\ngo to x: (240) y: (pick random (-180) to (180))\npoint in direction (pick random (-60) to (-105))\nset [speed v] to (pick random (5) to (10))\nrepeat until <<(x position) < [-235]> or <(y position) > [170]>>\n    move (Speed) steps\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go to [back v] layer\nend\n\nwhen I receive [play v]\nforever\n    create clone of (_myself_ v)\nend\n\n@Spikes\n\nwhen flag clicked\nwait (0.001) seconds\nhide\n\nwhen I receive [play v]\nforever\n    go to [back v] layer\n    show\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Trampoline\n\nwhen flag clicked\nwait (0.001) seconds\ngo to [back v] layer\nforever\n    hide\n    if <(Level) = [2]> then\n        go to x: (-24) y: (-101)\n        Trampoline\n    else\n        if <(Level) = [3]> then\n            set [level v] to [3]\n            go to x: (0) y: (-101)\n            create clone of (_myself_ v)\n            go to x: (120) y: (-101)\n            create clone of (_myself_ v)\n            go to x: (-120) y: (-101)\n            wait until <not <(Level) = (LeVeL)>>\n        else\n            if <(Level) = [4]> then\n                go to x: (50) y: (-101)\n                Trampoline\n            else\n                if <(Level) = [9]> then\n                    go to x: (-150) y: (-101)\n                    Trampoline\n                else\n                    if <(Level) = [13]> then\n                        go to x: (-65) y: (-101)\n                        Trampoline\n                    else\n                        if <(Level) = [16]> then\n                            set [level v] to [16]\n                            go to x: (0) y: (-170)\n                            create clone of (_myself_ v)\n                            go to x: (120) y: (-170)\n                            create clone of (_myself_ v)\n                            go to x: (-120) y: (-170)\n                            wait until <not <(Level) = (LeVeL)>>\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Trampoline\nshow\ngo to [back v] layer\nif <touching (player v)?> then\n    switch costume to (costume1 v)\n    repeat (3)\n        next costume\n        wait (0.001) seconds\n    end\n    repeat (3)\n        switch costume to ((costume [number v]) - (1))\n        wait (0.001) seconds\n    end\nend\n\nwhen I start as a clone\nrepeat until <not <(Level) = (LeVeL)>>\n    Trampoline\nend\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        Trampoline\n    else\n        if <(Level) = [16]> then\n            Trampoline\n        end\n    end\nend\n\n@Fake spikes\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    go to [back v] layer\n    set [ghost v] effect to (0)\n    if <touching (player v)?> then\n        change [ghost v] effect by (50)\n    end\nend\n\n@Boost\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Inverted boost\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Portal1\n\nwhen flag clicked\ngo to x: (-107) y: (-130)\nset [whirl v] effect to (500)\nhide\nforever\n    turn right (10) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        go to x: (-210) y: (30)\n        show\n    else\n        if <(Level) = [9]> then\n            go to x: (35) y: (132)\n            show\n        else\n            if <(Level) = [14]> then\n                go to x: (31) y: (-70)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Portal2\n\nwhen flag clicked\ngo to x: (11) y: (-54)\nset [whirl v] effect to (500)\nhide\nforever\n    turn right (10) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        go to x: (165) y: (85)\n        show\n    else\n        if <(Level) = [9]> then\n            go to x: (35) y: (0)\n            show\n        else\n            if <(Level) = [14]> then\n                go to x: (-192) y: (150)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Skip\n\nwhen flag clicked\nwait (0.001) seconds\nhide\n\nwhen I receive [play v]\nshow\nforever\n    go to x: (0) y: (0)\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n    end\nend\n\nwhen this sprite clicked\nif <not <(Level) = (Level MAX)>> then\n    start sound [Collect v]\n    broadcast (Skip v)\n    change [level v] by (1)\n    wait (.3) seconds\nend\n\n@Venom\n\nwhen flag clicked\nwait (0.001) seconds\nset size to (70) %\nhide\nforever\n    if <touching (player v)?> then\n        hide\n        broadcast (Venom v)\n    end\nend\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\nend\n\nwhen I receive [next v]\nif <(Level) = [10]> then\n    show\n    go to x: (-16) y: (-76)\nelse\n    if <(Level) = [11]> then\n        show\n        go to x: (-50) y: (0)\n    else\n        if <(Level) = [14]> then\n            show\n            go to x: (-197) y: (102)\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [skip v]\nif <(Level) = [10]> then\n    show\n    go to x: (-16) y: (-76)\nelse\n    if <(Level) = [11]> then\n        show\n        go to x: (-50) y: (0)\n    else\n        if <(Level) = [14]> then\n            show\n            go to x: (-197) y: (102)\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [fail v]\nif <(Level) = [10]> then\n    show\n    go to x: (-16) y: (-76)\nelse\n    if <(Level) = [11]> then\n        show\n        go to x: (-50) y: (0)\n    else\n        if <(Level) = [14]> then\n            show\n            go to x: (-197) y: (102)\n        else\n            hide\n        end\n    end\nend\n\n@text engine\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    go to [front v] layer\n    set size to (200) %\n    go to x: (((digits) * (17)) - (20)) y: (132)\n    if <(length of (venom)) < (digits)> then\n        hide\n    else\n        show\n        switch costume to (letter (digits) of (venom))\n    end\nend\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [next v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [venom v]\nstop [other scripts in sprite v]\nbroadcast (Message2 v)\nset [venom v] to [5]\nrepeat (5)\n    wait (1) seconds\n    change [venom v] by (-1)\nend\nbroadcast (Fail v)\n\nwhen I receive [fail v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [message2 v]\nset [digits v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [digits v] by (1)\n    wait (0) seconds\nend\nhide\n\n@Trap\n\nwhen flag clicked\nwait (0.001) seconds\nswitch costume to (costume1 v)\nhide\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [back v] layer\n    if <(Level) = [12]> then\n        show\n        go to x: (0) y: (-100)\n    else\n        if <(Level) = [14]> then\n            show\n            go to x: (120) y: (-100)\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [cloneid v] to (pick random (1) to (2))\n        create clone of (_myself_ v)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nif <(CloneID) = [1]> then\n    switch costume to (costume2 v)\n    go to x: (200) y: (-30)\n    repeat (30)\n        change x by (-20)\n    end\n    delete this clone\nelse\n    switch costume to (costume3 v)\n    set size to (120) %\n    go to x: (x position) y: (200)\n    repeat (13)\n        change y by (-20)\n    end\n    change y by (-10)\n    wait (.2) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I receive [fail v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        start sound [Crunch v]\n        broadcast (Fail v)\n    end\nend\n\nwhen I receive [skip v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@TB\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Love/Fav Detector\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nclear graphic effects\npoint in direction (pick random (-180) to (180))\nrepeat (50)\n    switch costume to (pick random (2) to (3))\n    move (5) steps\n    change y by (-0.5)\n    if <(direction) > [180]> then\n        turn left (2.5) degrees\n    end\n    if <(direction) < [180]> then\n        turn right (2.5) degrees\n    end\n    change [brightness v] effect by (1.5)\n    change [ghost v] effect by (1.5)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nwait (.5) seconds\nforever\n    if <(touching) = [Love]> then\n        wait (.2) seconds\n        if <(touching) = [Love]> then\n            change [love/favorite v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nset [love/favorite v] to [0]\nforever\n    if <(Love/Favorite) = [2]> then\n        stop [other scripts in sprite v]\n        show\n        go to x: (0) y: (50)\n        switch costume to (thank you! v)\n        set [brightness v] effect to (100)\n        set size to (500) %\n        set [ghost v] effect to (100)\n        repeat (20)\n            change [ghost v] effect by (-5)\n            change [brightness v] effect by (-5)\n            change size by (((185) - (size)) / (8))\n        end\n        repeat (5)\n            create clone of (_myself_ v)\n        end\n        wait (1) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (5)\n            change size by (((385) - (size)) / (8))\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (.5) seconds\nforever\n    if <(touching) = [Fav]> then\n        wait (.2) seconds\n        if <(touching) = [Fav]> then\n            change [love/favorite v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nset drag mode [not draggable v]\nshow\nset [ghost v] effect to (100)\nforever\n    set [touching v] to [none]\n    Detect [Love] at [-201] [-220]\n    Detect [Fav] at [-201] [-220]\nend\n\n