Back and Forth-A Mobile Platformer #games #platformer

Instructions:                                   Biomes\n                    Multiplayer Scrolling Platformer\n                                                             \nHow to play\n➡ Use Arrow keys, WASD, or tap to use (Mobile)\n ➡ Watch out for spikes, lava, and saws\n ➡ Press the chat button to open the chat and press space to close it\n \nOther info\n➡ There are four levels\n➡ Collect coins to buy skins and powerups from the shop\n➡ Took roughly 30+ hours to make which was spread over about two weeks

@Stage\n\nwhen I receive [hideee v]\nswitch backdrop to (arrière plan2 v)\n\nwhen I receive [clicker game v]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nswitch backdrop to (arrière plan2 v)\n\nwhen I receive [menu v]\nswitch backdrop to (arrière plan2 v)\n\nset [ghost v] effect to (10)\n\n@Bonhomme sp art\n\nwhen flag clicked\nset [game v] to [no]\ngo to x: (-150) y: (-1)\nset size to (50) %\nswitch costume to (animation1 v)\nshow\nchange y by (0.5)\nset [xvelocity v] to ((xvelocity) * (0.9))\nchange x by (xvelocity)\nif <touching (p v)?> then\n    change y by (1)\n    if <touching (p v)?> then\n        change y by (1)\n        if <touching (p v)?> then\n            change y by (1)\n            if <touching (p v)?> then\n                change y by (1)\n                if <touching (p v)?> then\n                    change y by (1)\n                    if <touching (p v)?> then\n                        change y by (1)\n                        if <touching (p v)?> then\n                            change y by (-6)\n                            change x by ((xvelocity) * (-1))\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (yvelocity)\nif <touching (p v)?> then\n    change y by ((yvelocity) * (-1))\n    set [yvelocity v] to <<(x position) = [200]> or <(x position) > [200]>>\nend\nchange y by (-0.5)\n\nwhen flag clicked\nswitch costume to (animation1 v)\nrepeat until <(game) = [yes]>\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nset [animation v] to [1]\nswitch costume to (animation1 v)\nrepeat until <(costume [number v]) = [paravoile]>\n    repeat until <(animation) = [1]>\n        next costume\n        change [animation v] by (1)\n    end\nend\n\nwhen flag clicked\nrepeat until <(game) = [yes]>\n    change x by (10)\nend\n\nwhen flag clicked\nforever\n    jump\nend\n\nwhen flag clicked\nforever\n    if <(x position) = [240]> then\n        go to x: (-133) y: (-1)\n    end\nend\n\ngo to x: (-113) y: (-102)\n\nwhen I receive [clicker game v]\nhide\n\nwhen I receive [menu v]\ngo to x: (-133) y: (9)\nshow\n\nwhen I receive [game p v]\nbroadcast (initiialiser v)\nset [game v] to [yes]\n\nwhen I receive [re v]\nrepeat until <(game) = [no]>\n    change x by (10)\nend\n\nwhen I receive [re v]\nswitch costume to (animation1 v)\nrepeat until <(game) = [no]>\n    next costume\n    wait (0.05) seconds\nend\n\nwhen I receive [initiialiser v]\nmove (10) steps\nhide\n\nwhen flag clicked\nforever\n    jump\nend\n\ndefine jump\nforever\n\nwhen flag clicked\nforever\n    play sound [nepal-rien-dspecial-instrumental \(1\) v] until done\nend\n\nerase all\n\nwhen I receive [hideee v]\nset [game v] to [no]\nshow\n\nwhen I receive [hideee v]\nswitch costume to (animation1 v)\nrepeat until <(game) = [yes]>\n    next costume\n    wait (0.05) seconds\nend\n\nwhen I receive [hideee v]\nrepeat until <(game) = [yes]>\n    change x by (10)\nend\n\n@shop\n\nwhen flag clicked\nhide\n\nwhen I receive [clicker game v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (shop v)\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [hideee v]\nhide\n\n@Shop\n\nwhen flag clicked\nset [hard mode v] to []\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <<[100] < (score)> or <(score) = [100]>> then\n    change [score v] by (-100)\n    broadcast (map 1 unlocked ! v)\n    say [Mad 1 unlocked !] for (2) seconds\n    set [hard mode v] to [yes]\nelse\n    say [Not enough coins] for (2) seconds\n    set [hard mode v] to []\nend\nbroadcast (démontrer v)\n\nwhen I receive [démontrer v]\nhide\n\nset [score v] to [100]\n\nwhen I receive [menu v]\nhide\n\n@SHOP1\n\nwhen flag clicked\nset [3 levels v] to []\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [démontrer v]\nhide\n\nwhen I receive [démontrer v]\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen this sprite clicked\nif <<<[50] < (score)> or <(score) = [50]>> and <(LOVED__) = [1]>> then\n    change [score v] by (-50)\n    broadcast (map 1 unlocked ! v)\n    say [Mad 1 unlocked !] for (2) seconds\n    set [3 levels v] to [yes]\nelse\n    if <<(score) < [50]> and <not <(LOVED__) = [1]>>> then\n        say [Not enough coins and love that project !] for (3) seconds\n        set [3 levels v] to []\n    end\n    if <(score) < [50]> then\n        say [Not enough coins] for (2) seconds\n        set [3 levels v] to []\n    else\n        think [To unlock that, love that project !] for (2) seconds\n        set [3 levels v] to []\n    end\nend\nbroadcast (démontrer v)\n\n@menu button\n\nwhen flag clicked\nhide\n\nwhen I receive [clicker game v]\nshow\n\nwhen I receive [menu v]\nhide\n\nwhen I start as a clone\n\nwhen this sprite clicked\nbroadcast (menu v)\n\nwhen I receive [hideee v]\nhide\n\n@P\n\nwhen I receive [clicker game v]\nhide\n\nwhen flag clicked\nswitch costume to (affiche v)\ngo to [back v] layer\nshow\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [game p v]\nset [m0v v] to []\ngo to x: (22) y: (-144)\nswitch costume to (level 1 v)\nforever\n    if <(level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (level 4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(level) = [8]> then\n        if <(3 levels) = []> then\n            broadcast (mssage v)\n        else\n            if <(level) = [8]> then\n                switch costume to (costume3 v)\n            end\n            if <(level) = [9]> then\n                switch costume to (costume3 v)\n            end\n        end\n        if <(hard mode) = []> then\n            broadcast (mssage v)\n        end\n    end\nend\n\nerase all\n\nset [level v] to [6]\n\nwhen flag clicked\nset [level v] to [0]\n\nchange y by (10)\n\nwhen flag clicked\ngo to x: (22) y: (-144)\n\nset [m0v v] to [no]\n\nwhen I receive [hideee v]\nswitch costume to (affiche v)\n\nbroadcast (mssage v)\n\nwhen I receive [hideee v]\nshow\nerase all\n\nforever\n    switch costume to (costume3 v)\nend\n\n@menu\n\nforever\n\nthink [Hmm...] for (2) seconds\n\nwhen flag clicked\ngo to x: (0) y: (-3)\nswitch costume to (titre v)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (30)\n    end\nend\n\ncreate clone of (_myself_ v)\nswitch costume to (titre v)\n\nset [ghost v] effect to (0)\n\nwhen I receive [clicker game v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [game p v]\nforever\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [game p v]\nhide\n\nwhen I receive [hideee v]\nshow\n\n@menu 1\n\nwhen flag clicked\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (-3)\n\nwhen I start as a clone\nshow\nswitch costume to (costume3 v)\ngo to x: (0) y: (-3)\n\nwhen I receive [clicker game v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [game p v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [hideee v]\nshow\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (-3)\n\n@Play button\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [clicker game v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [menu v]\nshow\n\nwhen this sprite clicked\nbroadcast (game p v)\n\nwhen I receive [game p v]\nhide\n\nwhen I receive [hideee v]\nshow\n\n@Clicker game2\n\nwhen I receive [clicker game v]\nshow\nforever\n    if <(distance to [mouse-pointer v]) < [75]> then\n        change size by (((400) - (size)) / (7))\n    else\n        change size by (((250) - (size)) / (7))\n    end\nend\n\nwhen flag clicked\nset [score v] to [0]\nhide\n\nwhen I receive [clicker game v]\ngo to x: (-123) y: (-60)\nforever\n    point in direction (([sin v] of ((timer) * (500)) ) + (90))\nend\n\nwhen this sprite clicked\nchange [score v] by (1)\n\nwhen I receive [menu v]\nhide\n\nwhen flag clicked\nforever\n\nif <(username) = [Paul2448]> then\n    set [score v] to [300]\nend\n\nwhen I receive [hideee v]\nhide\n\n@buy\n\nforever\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\ngo to x: (5) y: (0)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen I receive [clicker game v]\nhide\n\nwhen this sprite clicked\nif <mouse down?> then\n    broadcast (Clicker game v)\nend\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [game p v]\nforever\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [game p v]\nhide\n\nwhen I receive [hideee v]\nshow\n\n@text\n\ndefine Print (text) at X (x) Y (y) Size of (size )\nerase all\nset [place in text v] to [0]\ngo to x: (x) y: (y)\nset size to ((size ) * (100)) %\nrepeat (length of (text))\n    change [place in text v] by (1)\n    switch costume to (letter (place in text) of (text))\n    stamp\n    change x by ((17) * (size ))\nend\n\nwhen I receive [clicker game v]\nset [clicker game v] to [yes]\nhide\nrepeat until <(clicker game) = [no]>\n    Print (score) at X (50) Y (125) Size of (2)\nend\n\nwhen flag clicked\nerase all\n\nwhen I receive [menu v]\nset [clicker game v] to [no]\nhide\nerase all\n\nwhen I receive [game p v]\nreset timer\nforever\n    set [time v] to (timer)\nend\n\n@Bonhomme sp art2\n\nwhen I receive [game p v]\nset [level v] to [01]\ngo to x: (-226) y: (24)\nset size to (50) %\nswitch costume to (-> v)\nshow\nwait until <<key (space v) pressed?> or <mouse down?>>\nbroadcast (start* v)\nset [k v] to [k]\nforever\n    change [yvelocity v] by (-0.5)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>>> then\n        set [yvelocity v] to [9]\n    end\n    change y by (0.5)\n    set [xvelocity v] to ((xvelocity) * (0.9))\n    change x by (xvelocity)\n    if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n        change y by (1)\n        if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n            change y by (1)\n            if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n                change y by (1)\n                if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n                    change y by (1)\n                    if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n                        change y by (1)\n                        if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n                            change y by (1)\n                            if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n                                change y by (-6)\n                                change x by ((xvelocity) * (-1))\n                            end\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                set [yvelocity v] to [8]\n                                if <(xvelocity) > [0]> then\n                                    set [xvelocity v] to [-8]\n                                else\n                                    set [xvelocity v] to [8]\n                                end\n                            else\n                                set [xvelocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (yvelocity)\n    if <<<<touching (p v)?> or <touching color (#097aa8)?>> or <touching (m0v + p v)?>> or <touching (-> k v)?>> then\n        change y by ((yvelocity) * (-1))\n        set [yvelocity v] to <<(x position) = [200]> or <(x position) > [200]>>\n    end\n    change y by (-0.5)\n    if <(x position) = [240]> then\n        broadcast (yas queen v)\n        go to x: (-227) y: (8)\n        change [level v] by (1)\n        erase all\n        if <(level) = [2]> then\n            go to x: (-87) y: (135)\n        end\n    end\n    if <<<(y position) = [-198]> or <<(y position) = [-204]> or <<(y position) = [-203]> or <<(y position) = [-202]> or <(y position) = [-200]>>>>> and <(level) = [1]>> then\n        broadcast (diee v)\n        erase all\n        go to x: (-83) y: (131)\n    end\n    if <<<(y position) = [-198]> or <<(y position) = [-161]> or <<(y position) = [-167]> or <<(y position) = [-206]> or <(y position) = [-162]>>>>> and <<(level) = [2]> or <(level) = [3]>>> then\n        broadcast (diee v)\n        erase all\n        go to x: (-83) y: (131)\n    end\n    if <<<(y position) = [-198]> or <<(y position) = [-161]> or <<(y position) = [-207]> or <<(y position) = [-206]> or <(y position) = [-162]>>>>> and <(level) = [4]>> then\n        broadcast (diee v)\n        erase all\n        go to x: (-83) y: (131)\n    end\n    if <<<(y position) = [-198]> or <<(y position) = [-161]> or <<(y position) = [-207]> or <<(y position) = [-206]> or <(y position) = [-162]>>>>> and <(level) = [5]>> then\n        broadcast (diee v)\n        erase all\n        go to x: (-220) y: (-36)\n    end\n    if <<<<(y position) = [-126]> or <<(y position) = [-161]> or <<(y position) = [-207]> or <<(y position) = [-151]> or <(y position) = [-162]>>>>> or <<<(y position) = [-181]> or <(y position) = [-185]>> or <(y position) = [-198]>>> and <(level) = [6]>> then\n        broadcast (diee v)\n        erase all\n        go to x: (-220) y: (-36)\n    end\n    if <<(x position) = [240]> and <(level) = [2]>> then\n        go to x: (-87) y: (135)\n    end\n    if <touching color (#737373)?> then\n        set [xvelocity v] to [20]\n    end\n    if <touching color (#00c35a)?> then\n        set [yvelocity v] to [16]\n    end\n    if <touching color (#705c7b)?> then\n        erase all\n        set [xvelocity v] to [-20]\n    end\n    if <touching color (#8904bc)?> then\n        if <(level) = [1]> then\n            broadcast (diee v)\n            erase all\n            go to x: (-226) y: (-8)\n        end\n        if <<(level) = [2]> or <(level) = [3]>> then\n            erase all\n            go to x: (-83) y: (131)\n        end\n    end\nend\n\nwhen flag clicked\nset [k v] to [0]\nhide\n\nwhen I receive [game p v]\nwait (0.5) seconds\nwait until <<key (space v) pressed?> or <mouse down?>>\nrepeat until <(level) = [2]>\n    next costume\n    wait (0.05) seconds\nend\nif <(level) = [1]> then\n    repeat until <(level) = [2]>\n        set [xvelocity v] to [7]\n    end\nend\n\nwhen I receive [game p v]\nwait (0.5) seconds\nwait until <<key (space v) pressed?> or <mouse down?>>\nif <(level) = [01]> then\n    repeat until <(level) = [2]>\n        set [xvelocity v] to [7]\n    end\nend\n\nset [level v] to [7]\n\nset [xvelocity v] to [20]\n\nwhen I receive [hideee v]\nhide\n\nwhen I receive [hideee v]\nhide\n\n@pen cursor\n\nwhen I receive [start* v]\nshow\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\nend\n\nwhen flag clicked\nset [level v] to [1]\nset pen size to (15)\nforever\n    if <<<<mouse down?> and <(k) = [k]>> and <(pen color) = [blue]>> and <<(level) = [1]> or <(level) = [2]>>> then\n        set pen color to (#097ba9)\n        pen down\n    else\n        pen up\n    end\n    if <<(level) = [3]> or <<(level) = [4]> or <<(level) = [5]> or <(level) = [6]>>>> then\n        say [You can't use the blue pen at the moment :/] for (2) seconds\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [pen color v] to [blue]\nforever\n    if <key (1 v) pressed?> then\n        set [pen color v] to [blue]\n    end\n    if <key (2 v) pressed?> then\n        set [pen color v] to [grey]\n    end\n    if <key (3 v) pressed?> then\n        set [pen color v] to [green]\n    end\n    if <key (4 v) pressed?> then\n        set [pen color v] to [purple]\n    end\n    if <key (5 v) pressed?> then\n        set [pen color v] to [grey 2]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<mouse down?> and <(k) = [k]>> and <(pen color) = [grey]>> then\n        set pen color to (#737373)\n        pen down\n    else\n        pen up\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<mouse down?> and <(k) = [k]>> and <(pen color) = [green]>> then\n        set pen color to (#00c35b)\n        pen down\n    else\n        pen up\n    end\nend\n\npen up\n\nwhen flag clicked\nforever\n    if <<<mouse down?> and <(k) = [k]>> and <(pen color) = [purple]>> then\n        set pen color to (#9200c3)\n        pen down\n    else\n        pen up\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<mouse down?> and <(k) = [k]>> and <(pen color) = [grey 2]>> then\n        set pen color to (#715c7b)\n        pen down\n    else\n        pen up\n    end\nend\n\nset pen color to (#737373)\n\npen down\n\nset pen color to (#9200c3)\n\nset pen color to (#715c7b)\n\nforever\n    if <<<mouse down?> and <(k) = [k]>> and <(pen color) = [grey]>> then\n        set pen color to (#737373)\n        pen down\n    else\n        pen up\n    end\nend\n\n@decors\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\nend\n\nwhen I receive [game p v]\ngo to x: (35) y: (33)\nshow\nforever\n    if <(level) = [1]> then\n        switch costume to (costume8 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (costume4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (costume5 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (costume6 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (costume7 v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (35) y: (33)\nend\n\nwhen flag clicked\nshow\nswitch costume to (aff v)\n\nwhen I receive [clicker game v]\nhide\n\nwhen I receive [hideee v]\nswitch costume to (aff v)\n\nset [level v] to [7]\n\n@Truc qui brille\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.6) seconds\nend\n\nwhen I start as a clone\ngo to (random position v)\nshow\nset size to (pick random (80) to (200)) %\nturn right (pick random (10) to (50)) degrees\nrepeat (25)\n    change size by (pick random (-1) to (-10))\nend\ndelete this clone\n\n@notif.\n\nwhen I receive [game p v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [notification v]\nset [ghost v] effect to (0)\nforever\n    switch costume to (notifications2 v)\n    wait (5) seconds\n    repeat (15)\n        change [ghost v] effect by (15)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (notifications2 v)\n    wait (3) seconds\n    repeat (15)\n        change [ghost v] effect by (15)\n    end\nend\n\n@tn\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nshow\n\nswitch backdrop to (backdrop1 v)\n\n@reglages\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nwhen I receive [game p v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen this sprite clicked\nask [Color ? \(Answer = 1, 2,3,4 or 5\)] and wait\nif <(answer) = [1]> then\n    set pen color to (#097ba9)\n    set [pen color v] to [blue]\nend\nif <(answer) = [2]> then\n    set pen color to (#737373)\n    set [pen color v] to [grey]\nend\nif <(answer) = [3]> then\n    set pen color to (#00c35b)\n    set [pen color v] to [green]\nend\nif <(answer) = [4]> then\n    set pen color to (#9200c3)\n    set [pen color v] to [purple]\nend\nif <(answer) = [5]> then\n    set pen color to (#715c7b)\n    set [pen color v] to [grey 2]\nend\n\nbroadcast (Notification v)\n\nset [3 levels v] to [0]\n\n@Home\n\nwhen I receive [game p v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (40)\n    else\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (hideee v)\nset [clicker game v] to [no]\nset [level v] to [0]\nrepeat (10)\n    erase all\nend\n\nwhen I receive [hideee v]\nhide\n\nwhen I receive [hideee v]\nshow\n\nwhen I receive [mssage v]\ngo to [front v] layer\nshow\n\n@m0v + p\n\ndefine Moving platforms (v)\nshow\nset [m0v v] to [yes]\nrepeat until <(m0v) = [no]>\n    repeat ((7) * (v))\n        change x by (v)\n    end\n    repeat ((7) * (v))\n        change x by (() - (v))\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (-37) y: (-156)\nhide\nforever\n    if <(level) = [6]> then\n        show\n        switch costume to (m0v v)\n        set [m0v v] to [yes]\n        Moving platforms [4]\n    end\n    if <(level) = [7]> then\n        switch costume to (costume1 v)\n        set [m0v v] to [no]\n        hide\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        switch costume to (costume1 v)\n        set [ghost v] effect to (100)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\n@clign\n\ndefine clign (t)\nset [clign v] to [y]\nshow\nrepeat until <(clign) = [n]>\n    show\n    wait ((t) / (5)) seconds\n    hide\n    wait ((t) / (3)) seconds\nend\n\n@key\n\nwhen I receive [game p v]\nswitch costume to (k v)\nforever\n    if <(level) = [7]> then\n        show\n        if <touching (bonhomme sp art2 v)?> then\n            hide\n            set [key v] to [1]\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (124) y: (-30)\nset [key v] to []\nforever\n    set size to (100) %\n    change [sine v] by (2)\n    point in direction ((([sin v] of (sine) ) * (30)) + (90))\n    set size to ((([sin v] of ((sine) * (1)) ) * (0.1)) + (size)) %\nend\n\nset [level v] to [7]\n\n@-> k\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <<(level) = [7]> and <(key) = []>> then\n        show\n    else\n    end\nend\n\nwhen flag clicked\nforever\n    if <(key) = [1]> then\n        wait (2) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [hideee v]\nhide\n\n@hp\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <(level) = [6]> then\n        switch costume to (costume1 v)\n        show\n    end\n    if <(level) = [7]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to (m0v + p v)\nend\n\n@grottes\n\n@message\n\nwhen I receive [mssage v]\nif <(3 levels) = []> then\n    show\nend\n\nwhen I receive [notification v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [hideee v]\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\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 (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