Element Platformer 

Instructions: Deutsch: Bewege dich mit den Pfeiltasten und laufe durch die Elemente möglichst ohne zu Sterben.\n\nEnglish: Move with the arrow keys or WASD and run through the elements without dying.\n\n\nMy new Platformer!!!\n\nhttps://scratch.mit.edu/projects/543856409

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\nforever\n    play sound [Odesong v] until done\nend\n\nwhen flag clicked\nwait until <(Level) = [11]>\nswitch backdrop to (2 v)\nwait until <(Level) = [16]>\nswitch backdrop to (2 v)\nwait until <(Level) = [19]>\nswitch backdrop to (1 v)\n\n@Spieler\n\ndefine laufsteuerung\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change x by (lauftempo)\n    if <touching (plattformen v)?> then\n        change x by ((0) - (lauftempo))\n    end\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change x by ((0) - (lauftempo))\n    if <touching (plattformen v)?> then\n        change x by (lauftempo)\n    end\nend\n\nwhen flag clicked\nset [starttempo v] to [12]\nset [lauftempo v] to [5]\nset [schwerkraft v] to [-1]\nset [falltempo v] to [0]\nforever\n    laufsteuerung\n    Sprungsteuerung\n    Simulation\nend\n\ndefine Simulation\nchange y by (Falltempo)\nif <touching (plattformen v)?> then\n    change y by ((0) - (Falltempo))\n    set [falltempo v] to [0]\nelse\n    change [falltempo v] by (Schwerkraft)\nend\n\ndefine Sprungsteuerung\nif <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n    change y by (-1)\n    if <touching (plattformen v)?> then\n        set [falltempo v] to (Starttempo)\n    end\n    change y by (1)\nend\n\nwhen flag clicked\ngo to x: (-190) y: (-17)\nswitch backdrop to (2 v)\n\nwhen I receive [nächstes level v]\ngo to x: (-190) y: (20)\n\nwhen flag clicked\nswitch costume to (groß rechts v)\nforever\n    wait until <<key (down arrow v) pressed?> or <key (s v) pressed?>>\n    switch costume to (klein rechts v)\n    broadcast (Klein v)\n    wait until <<not <key (down arrow v) pressed?>> and <not <key (s v) pressed?>>>\n    switch costume to (groß rechts v)\n    broadcast (Groß v)\n    change y by (10)\n    if <touching (plattformen v)?> then\n        die\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (groß rechts v)\n\nwhen flag clicked\nforever\n    if <touching (gefahren v)?> then\n        die\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nif <not <(username) = [papierblau]>> then\n    change [☁ plays v] by (1)\nend\n\nwhen flag clicked\nbroadcast (Intro v)\n\nset size to (40) %\n\nwhen flag clicked\nforever\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> and <(costume [number v]) = [1]>> then\n        switch costume to (groß links v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <(costume [number v]) = [2]>> then\n        switch costume to (groß rechts v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> and <(costume [number v]) = [3]>> then\n        switch costume to (klein links v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <(costume [number v]) = [4]>> then\n        switch costume to (klein rechts v)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (partikel v)\nend\n\ndefine die\nstart sound [Disconnect v]\ngo to x: (-190) y: (0)\nset size to (100) %\n\n@Plattformen\n\nwhen I receive [nächstes level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\n\nwhen flag clicked\nforever\n    create clone of (partikel v)\nend\n\n@Ende\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    wait until <touching (spieler v)?>\n    change [level v] by (1)\n    broadcast (Nächstes Level v)\n    wait (1) seconds\nend\n\nchange [level v] by (1)\nbroadcast (Nächstes Level v)\n\n@Sonne/Lichtschein\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nshow\ngo to x: (204) y: (142)\ngo to [back v] layer\n\nwhen flag clicked\nwait until <(Level) = [11]>\nswitch costume to (kostüm2 v)\nrepeat until <(Level) = [19]>\n    go to (spieler v)\nend\nswitch costume to (kostüm1 v)\ngo to x: (204) y: (142)\n\n@Gefahren\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\ngo to [back v] layer\n\nwhen I receive [nächstes level v]\nnext costume\nwait (1) seconds\n\n@Falle\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to [front v] layer\nset [ghost v] effect to (0)\nhide\n\nif <(Level) = [13]> then\nend\n\nwhen flag clicked\nforever\n    switch costume to ((Level) - (12))\nend\n\nwhen flag clicked\nwait until <(Level) = [13]>\nshow\nrepeat until <(Level) = [17]>\n    if <touching (spieler v)?> then\n        switch costume to ((Level) - (12))\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait until <not <touching (spieler v)?>>\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\nhide\n\nwhen I receive [nächstes level v]\nif <(Level) = [16]> then\n    set [ghost v] effect to (100)\nend\n\n@Intro\n\nwhen flag clicked\nshow\nset rotation style [don't rotate v]\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\n@Partikel\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    go to (spieler v)\n    set [ghost v] effect to (0)\n    set size to (100) %\nend\n\nwhen I start as a clone\nrepeat (8)\n    change [ghost v] effect by (-5)\n    change size by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (hinterlassung v)\n\nwhen I receive [groß v]\nswitch costume to (hinterlassung v)\n\nwhen I receive [klein v]\nswitch costume to (hinterlassung klein v)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\n