Christmas Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Figur1\n\nwhen flag clicked\nshow variable [deaths v]\nset [deaths v] to [0]\ngo to x: (-208) y: (-100)\nset [laufen v] to [0]\nset [springen v] to [0]\nforever\n    if <touching color (#ff00bf)?> then\n        set [springen v] to [20]\n    end\n    if <touching color (#ff0000)?> then\n        change [deaths v] by (1)\n        go to x: (-208) y: (-117)\n    end\n    if <touching color (#009933)?> then\n        change [deaths v] by (1)\n        go to x: (-208) y: (-117)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <(right) = [1]>> then\n        change [laufen v] by (0.95)\n        switch costume to (kostüm1 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <(left) = [1]>> then\n        change [laufen v] by (-0.95)\n        switch costume to (kostüm2 v)\n    end\n    set [laufen v] to ((laufen) * (0.9))\n    change x by (laufen)\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change x by ((laufen) * (-1))\n        change y by (-5)\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(jump) = [1]>> then\n            if <(laufen) > [0]> then\n                set [laufen v] to [-5]\n            else\n                set [laufen v] to [5]\n            end\n            set [springen v] to [10]\n        else\n            set [laufen v] to [0]\n        end\n    end\n    change [springen v] by (-1)\n    change y by (Springen)\n    if <touching color (#ffffff)?> then\n        change y by ((Springen) * (-1))\n        set [springen v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffffff)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(jump) = [1]>> then\n            set [springen v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nrepeat until <(backdrop [number v]) = [12]>\n    if <(x position) > [220]> then\n        go to x: (-208) y: (-100)\n        next backdrop\n    end\nend\nif <(backdrop [number v]) > [11]> then\n    repeat until <(backdrop [number v]) = [16]>\n        if <(Geschenke) = [3]> then\n            broadcast (next level1 v)\n            if <(x position) > [220]> then\n                go to x: (-208) y: (-100)\n                next backdrop\n            end\n        end\n    end\nend\n\nwhen [any v] key pressed\nbroadcast (HIDE v)\n\n@schnee\n\nwhen flag clicked\nhide\nforever\n    create clone of (schnee v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-240) to (240)) y: (170)\nrepeat until <touching (_edge_ v)?>\n    change y by (-10)\nend\nhide\ndelete this clone\n\n@Figur2\n\nwhen flag clicked\nshow variable [deaths v]\nhide\n\n@Geschenk_\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\nset [geschenke v] to [0]\nshow\ngo to x: (-162) y: (-31)\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop11 v]\nset [geschenke v] to [0]\nshow\ngo to x: (81) y: (-142)\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop12 v]\nset [geschenke v] to [0]\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop13 v]\nset [geschenke v] to [0]\nshow\ngo to x: (-206) y: (-23)\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\n@Geschenk_2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-109) y: (122)\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-33) y: (-49)\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (-113) y: (102)\nset [geschenke v] to [0]\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop13 v]\nset [geschenke v] to [0]\nshow\ngo to x: (-211) y: (63)\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\n@Geschenk_3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (107) y: (122)\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-101) y: (81)\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop12 v]\nset [geschenke v] to [0]\ngo to x: (-152) y: (-14)\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\nwhen backdrop switches to [backdrop13 v]\nset [geschenke v] to [0]\ngo to x: (148) y: (18)\nshow\nforever\n    if <touching (figur1 v)?> then\n        hide\n        change [geschenke v] by (1)\n    end\nend\n\n@Wall\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\nshow\ngo to x: (124) y: (-51)\n\nwhen I receive [next level1 v]\nhide\n\nwhen backdrop switches to [backdrop11 v]\nshow\ngo to x: (124) y: (-51)\n\nwhen backdrop switches to [backdrop12 v]\nshow\ngo to x: (124) y: (-51)\n\nwhen backdrop switches to [backdrop13 v]\nshow\ngo to x: (173) y: (-52)\n\n@Figur3\n\nwhen flag clicked\nshow\nset [ghost v] effect to (35)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [right v] to [1]\n    else\n        set [right v] to [0]\n    end\nend\n\nwhen I receive [hide v]\nhide\n\n@Figur4\n\nwhen flag clicked\nshow\nset [ghost v] effect to (35)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [left v] to [1]\n    else\n        set [left v] to [0]\n    end\nend\n\nwhen I receive [hide v]\nhide\n\n@Figur5\n\nwhen flag clicked\nshow\nset [ghost v] effect to (35)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [jump v] to [1]\n    else\n        set [jump v] to [0]\n    end\nend\n\nwhen I receive [hide v]\nhide\n\n
Move the Santa with the arrow keys, but don't fall into the lava!\n\ncontrol:\n\nmove: right and left arrow key\njump: up arrow key\n\n(just letting you know that I first shared this in December)