Happy birthday scratch  ~~A platformer~~
@Stage\n\n@Sprite1\n\ndefine Respawn\nhide\nset [ghost v] effect to (100)\ngo to x: (-210) y: (0)\nshow\npoint in direction (90)\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\n\nwhen I receive [c. v]\nsay [Another one?? Wath do this mean?] for (2) seconds\nswitch backdrop to (next backdrop v)\nbroadcast (message1 v)\nswitch backdrop to (arrière-plan5 v)\ngo to x: (-211) y: (-96)\n\nwhen I receive [s. v]\nsay [What's this? A letter?Just don't care about it, and continue.] for (2) seconds\nwait (1) seconds\nswitch backdrop to (next backdrop v)\nbroadcast (message1 v)\nRespawn\n\nwhen flag clicked\nforever\n    if <touching (lutin5 v)?> then\n        hide\n        set [ghost v] effect to (100)\n        go to x: (-217) y: (-97)\n        show\n        point in direction (90)\n        repeat (5)\n            change [ghost v] effect by (-20)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (lutin6 v)?> or <touching (lutin7 v)?>> then\n        Respawn\n    end\nend\n\nwhen I receive [a. v]\nbroadcast (message1 v)\nswitch backdrop to (next backdrop v)\nRespawn\nsay [I'm starting to remember the date of scratch birthday...I think it was in aprtil or maybe in  mai...] for (3.5) seconds\n\nwhen flag clicked\nforever\n    if <<<(x position) < [-210]> and <(y position) > [160]>> and <(backdrop [name v]) = [arrière-plan8]>> then\n        go to x: (-200) y: (100)\n        switch backdrop to (next backdrop v)\n        broadcast (message1 v) and wait\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(backdrop [name v]) = [arrière-plan7]> and <touching (_edge_ v)?>> and <(x position) > [220]>> then\n        switch backdrop to (next backdrop v)\n        broadcast (message1 v)\n        go to x: (-222) y: (-33)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (_edge_ v)?> and <(y position) < [-170]>> then\n        Respawn\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (lutin8 v)?> or <touching (lutin9 v)?>> then\n        change [ghost v] effect by (100)\n        hide\n        go to x: (-207) y: (120)\n        show\n        repeat (5)\n            change [ghost v] effect by (-20)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<(x position) < [-220]> and <(y position) > [140]>> and <touching (_edge_ v)?>> and <(backdrop [name v]) = [arrière-plan8]>> then\n        set [ghost v] effect to (100)\n        hide\n        go to x: (-210) y: (120)\n        switch backdrop to (next backdrop v)\n        broadcast (message1 v)\n        show\n        repeat (4)\n            change [ghost v] effect by (-20)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [arrière-plan7]> then\n        if <<(x position) > [60]> and <(x position) < [170]>> then\n            broadcast (prout v) and wait\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [arrière-plan13]> then\n        if <<(x position) > [110]> and <(x position) < [180]>> then\n            broadcast (prout2 v) and wait\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <<touching (lutin4 v)?> and <(y position) < [-70]>>> then\n        change [ghost v] effect by (100)\n        hide\n        go to x: (-212) y: (57)\n        show\n        repeat (5)\n            change [ghost v] effect by (-20)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <<(y position) < [30]> and <touching (lutin14 v)?>>> then\n        set [ghost v] effect to (100)\n        hide\n        go to x: (-25) y: (78)\n        show\n        repeat (5)\n            change [ghost v] effect by (-20)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lutin13 v)?> then\n        Respawn\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (s-glow v)?> then\n        broadcast (s v) and wait\n    end\n    if <touching (lutin3 v)?> then\n        broadcast (c v) and wait\n    end\n    if <touching (a-glow v)?> then\n        broadcast (a v) and wait\n    end\n    if <touching (lutin10 v)?> then\n        broadcast (at v) and wait\n    end\n    if <touching (lutin15 v)?> then\n        broadcast (ch v)\n    end\nend\n\nwhen I receive [ch. v]\nsay [ Oh! My bad scratch birthday is today So HAPPY BIRTHDAY SCRATCH!!!] for (6) seconds\n\nwhen I receive [at. v]\ngo to x: (-210) y: (57)\nbroadcast (message1 v)\nswitch backdrop to (arrière-plan10 v)\nsay [Yes it was in may I'm sure now I just need a litlle thing to completly remember ,continue!] for (4) seconds\n\ndefine sol toucher <up?>\nchange [tomber v] by (1)\nrepeat until <not <touching (lutin1 v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [tomber v] to [0]\n    end\n    set [vitesse y v] to [0]\nend\n\ndefine marcher (direction) (vitesse)\npoint in direction (direction)\nchange x by (vitesse)\nset [inclinaison v] to [0]\nrepeat until <<(inclinaison) = [8]> or <not <touching (lutin1 v)?>>>\n    change y by (1)\n    change [inclinaison v] by (1)\nend\nif <(inclinaison) = [8]> then\n    change x by ((0) - (vitesse))\n    change y by ((0) - (inclinaison))\n    if <<key (up arrow v) pressed?> and <([abs v] of (vitesse) ) > [3]>> then\n        if <(walljump) = [0]> then\n            set [vitesse horizonthale v] to ((-1.2) * (vitesse))\n            set [vitesse y v] to [11]\n            set [tomber v] to [6]\n            set [walljump v] to [15]\n        end\n    else\n        set [vitesse horizonthale v] to [0]\n    end\nend\nif <(vitesse) < [0]> then\n    change [frame v] by ((vitesse) / (-8))\nelse\n    change [frame v] by ((vitesse) / (8))\nend\n\ndefine mettre costume\nif <(tomber) < [6]> then\n    if <(frame) = [0]> then\n        switch costume to (stand_1 v)\n    else\n        switch costume to ([floor v] of ((4) + ((frame) mod (8))) )\n    end\nelse\n    if <(vitesse y) > [0]> then\n        switch costume to (jump_1 v)\n    else\n        switch costume to (fall_1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(x position) > [230]> and <touching (_edge_ v)?>> and <<not <(backdrop [name v]) = [arrière-plan2]>> and <<not <(backdrop [name v]) = [arrière-plan4]>> and <<not <(backdrop [name v]) = [arrière-plan6]>> and <<not <(backdrop [name v]) = [arrière-plan8]>> and <<not <(backdrop [name v]) = [arrière-plan7]>> and <<not <(backdrop [name v]) = [arrière-plan9]>> and <not <(backdrop [name v]) = [arrière-plan15]>>>>>>>>> then\n        go to x: (-200) y: (0)\n        switch backdrop to (next backdrop v)\n        broadcast (message1 v) and wait\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (images v)?> or <<touching (lutin12 v)?> or <touching (lutin11 v)?>>> then\n        Respawn\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [arrière-plan6]> then\n        if <<(x position) > [-165]> and <(x position) < [-80]>> then\n            broadcast (prout v) and wait\n        end\n    end\nend\n\nwhen I receive [go v]\nset [frame v] to [0]\nset rotation style [left-right v]\nset [vitesse y v] to [0]\nset [tomber v] to [10]\nforever\n    switch costume to (hitbox v)\n    change [vitesse y v] by (-1)\n    change y by (vitesse y)\n    sol toucher <(vitesse y) > [0]>\n    if <(walljump) > [0]> then\n        change [walljump v] by (-1)\n    else\n        set [vitesse horizonthale v] to ((vitesse horizonthale) * (0.7))\n        if <key (left arrow v) pressed?> then\n            change [vitesse horizonthale v] by (-1.5)\n            if <key (a v) pressed?> then\n                change [vitesse horizonthale v] by (-0.5)\n            end\n        end\n        if <key (right arrow v) pressed?> then\n            change [vitesse horizonthale v] by (1.5)\n            if <key (d v) pressed?> then\n                change [vitesse horizonthale v] by (0.5)\n            end\n        end\n    end\n    if <(vitesse horizonthale) < [-0.5]> then\n        marcher (-90) (vitesse horizonthale)\n    else\n        if <(vitesse horizonthale) > [0.5]> then\n            marcher (90) (vitesse horizonthale)\n        else\n            set [frame v] to [0]\n        end\n    end\n    if <key (up arrow v) pressed?> then\n        if <<(jumpkey) = [0]> and <(tomber) < [3]>> then\n            set [vitesse y v] to [14]\n            set [tomber v] to [6]\n            set [jumpkey v] to [1]\n        end\n    else\n        set [jumpkey v] to [0]\n    end\n    mettre costume\nend\n\nwhen flag clicked\nshow\npoint in direction (90)\nswitch costume to (stand_1 v)\ngo to x: (-180) y: (-90)\nswitch backdrop to (arrière-plan1 v)\nthink [Hmm...] for (1) seconds\nsay [Hey! You!] for (1.5) seconds\nsay [Yes you!] for (1.5) seconds\nask [I have a problem,I don't remember the date of scratch birthday can you help me find it?] and wait\nsay [It's a joke you don't have the choice.] for (1) seconds\nbroadcast (go v)\n\n@Lutin1\n\nwhen flag clicked\ngo to x: (31) y: (12)\nswitch costume to (costume1 v)\n\nwhen I receive [message1 v]\nnext costume\n\n@S-Glow\n\nwhen flag clicked\nhide\nset size to (70) %\ngo to x: (222) y: (-83)\nwait until <(backdrop [name v]) = [arrière-plan2]>\nshow\n\nwhen I receive [s v]\ngo to x: (-24) y: (119)\nplay sound [Musique - Wind Waker - Obtention de l'objet.mp3 v] until done\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (s. v)\n\n@images\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    switch costume to (hitbox v)\n    switch costume to (images v)\nend\n\nwhen flag clicked\ngo to x: (130) y: (-99)\nhide\nwait until <(backdrop [name v]) = [arrière-plan3]>\nshow\nrepeat until <(backdrop [name v]) = [arrière-plan4]>\n    point in direction (90)\n    glide (1.2) secs to x: (-65) y: (-98)\n    point in direction (-90)\n    glide (1.2) secs to x: (130) y: (-98)\nend\nhide\ngo to x: (-100) y: (-74.5)\ngo to [front v] layer\nwait until <(backdrop [name v]) = [arrière-plan8]>\nshow\nrepeat until <(backdrop [name v]) = [arrière-plan9]>\n    show\n    point in direction (-90)\n    glide (1.7) secs to x: (173) y: (-74.5)\n    point in direction (90)\n    glide (1.7) secs to x: (-100) y: (-74.5)\nend\nhide\ngo to x: (61) y: (-110)\nwait until <(backdrop [name v]) = [arrière-plan11]>\nshow\nrepeat until <(backdrop [name v]) = [arrière-plan12]>\n    point in direction (90)\n    glide (0.9) secs to x: (-50) y: (-110)\n    point in direction (-90)\n    glide (0.9) secs to x: (61) y: (-110)\nend\nhide\ngo to [front v] layer\ngo to x: (110) y: (-107)\nwait until <(backdrop [name v]) = [arrière-plan13]>\nshow\nrepeat until <(backdrop [name v]) = [arrière-plan14]>\n    point in direction (90)\n    glide (1.2) secs to x: (-14.28) y: (-107.5)\n    point in direction (-90)\n    glide (1.2) secs to x: (110) y: (-107.5)\nend\nhide\ngo to x: (213) y: (-109)\nshow\nrepeat until <(backdrop [name v]) = [arrière-plan15]>\n    point in direction (90)\n    glide (0.9) secs to x: (-7) y: (-109)\n    point in direction (-90)\n    glide (1) secs to x: (213) y: (-109)\nend\nhide\n\nwhen backdrop switches to [arrière-plan15 v]\nhide\n\nwhen backdrop switches to [arrière-plan14 v]\nhide\n\nwhen backdrop switches to [arrière-plan12 v]\nhide\n\nwhen backdrop switches to [arrière-plan9 v]\nhide\n\nwhen backdrop switches to [arrière-plan4 v]\nhide\n\n@Lutin2\n\nwhen flag clicked\nclear graphic effects\nhide\nwait until <(backdrop [name v]) = [arrière-plan3]>\nshow\nwait (2) seconds\nrepeat (4)\n    change [ghost v] effect by (20)\nend\nhide\n\n@Lutin3\n\nwhen flag clicked\ngo to x: (194) y: (141)\nhide\nwait until <(backdrop [name v]) = [arrière-plan4]>\nshow\n\nwhen I receive [c v]\ngo to x: (31) y: (125)\nplay sound [Musique - Wind Waker - Obtention de l'objet.mp3 v] until done\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (c. v)\n\n@Lutin4\n\nwhen flag clicked\ngo to x: (-85) y: (-41)\nswitch costume to (costume1 v)\nhide\nwait until <(backdrop [name v]) = [arrière-plan5]>\nshow\nwait until <(backdrop [name v]) = [arrière-plan6]>\nhide\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        switch costume to (costume2 v)\n        wait until <not <touching (sprite1 v)?>>\n        switch costume to (costume1 v)\n    end\nend\n\n@Lutin5\n\nwhen flag clicked\ngo to x: (82) y: (-90)\nhide\nwait until <(backdrop [name v]) = [arrière-plan5]>\nshow\nwait until <(backdrop [name v]) = [arrière-plan6]>\nhide\n\n@Lutin6\n\nwhen I receive [go v]\nswitch costume to (pic v)\ngo to x: (9) y: (-79)\nhide\nwait until <(backdrop [name v]) = [arrière-plan6]>\nshow\nwait until <not <(backdrop [name v]) = [arrière-plan6]>>\nhide\n\nwhen flag clicked\nhide\n\n@Lutin7\n\nwhen flag clicked\ngo to x: (-107) y: (116)\nhide\nwait until <(backdrop [name v]) = [arrière-plan6]>\nshow\nwait until <(backdrop [name v]) = [arrière-plan7]>\nhide\nwait until <(backdrop [name v]) = [arrière-plan13]>\ngo to x: (168) y: (120)\nshow\nwait until <(backdrop [name v]) = [arrière-plan14]>\nhide\n\nwhen I receive [prout v]\nglide (0.9) secs to x: (-107) y: (-65)\nglide (1.5) secs to x: (-107) y: (116)\n\nwhen I receive [prout2 v]\nglide (1.1) secs to x: (168) y: (-80)\nglide (1.6) secs to x: (168) y: (120)\n\n@A-Glow\n\nwhen I receive [a v]\ngo to x: (31) y: (125)\nplay sound [Musique - Wind Waker - Obtention de l'objet.mp3 v] until done\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (a. v)\n\nwhen flag clicked\ngo to x: (215) y: (-83)\nhide\nwait until <(backdrop [name v]) = [arrière-plan6]>\nshow\n\n@Lutin8\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [arrière-plan9]>\nshow\nwait until <(backdrop [name v]) = [arrière-plan10]>\nhide\n\n@Lutin9\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [arrière-plan9]>\nshow\nwait until <(backdrop [name v]) = [arrière-plan10]>\nhide\n\n@Lutin10\n\nwhen I receive [at v]\ngo to x: (26) y: (138)\nplay sound [Musique - Wind Waker - Obtention de l'objet.mp3 v] until done\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (at. v)\n\nwhen flag clicked\nhide\ngo to x: (210) y: (48)\nwait until <(backdrop [name v]) = [arrière-plan9]>\nshow\n\n@Lutin11\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [arrière-plan12]>\nshow\nwait until <(backdrop [name v]) = [arrière-plan13]>\nhide\n\n@Lutin12\n\nwhen flag clicked\nhide\nset rotation style [all around v]\ngo to x: (90) y: (-172)\nwait until <(backdrop [name v]) = [arrière-plan12]>\nshow\nrepeat until <(backdrop [name v]) = [arrière-plan13]>\n    point in direction (90)\n    glide (0.8) secs to x: (90) y: (50)\n    point in direction (-90)\n    glide (0.8) secs to x: (90) y: (-172)\n    if <touching (lutin11 v)?> then\n        hide\n        wait (1) seconds\n        show\n    end\nend\nhide\n\nwhen backdrop switches to [arrière-plan13 v]\nhide\n\nwhen flag clicked\nforever\n    play sound [musique-11-musique-de-film-daventure.mp3 v] until done\nend\n\n@Lutin13\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [arrière-plan14]>\nshow\nwait until <not <(backdrop [name v]) = [arrière-plan14]>>\nhide\n\n@Lutin14\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [arrière-plan14]>\nshow\nwait until <not <(backdrop [name v]) = [arrière-plan14]>>\nhide\n\n@Lutin15\n\nwhen flag clicked\ngo to x: (169) y: (-95)\nhide\nwait until <(backdrop [name v]) = [arrière-plan15]>\nshow\n\nwhen I receive [ch v]\ngo to x: (26) y: (138)\nplay sound [Musique - Wind Waker - Obtention de l'objet.mp3 v] until done\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (ch. v)\n\n@Lutin16\n\nwhen flag clicked\nchange [ghost v] effect by (100)\nhide\n\nwhen I receive [ch. v]\nshow\nwait (5) seconds\nrepeat (20)\n    change [ghost v] effect by (-4)\nend\n\n
Up Left and right arrow to play. Everything else  is explaind in the game!\nProject upload the 12 of may2018 (date of the scratch birthday)\n\n