die drei ### platformer 1
@Stage\n\n@Guy\n\nwhen I start as a clone\n\nswitch costume to (trail1 v)\nclear graphic effects\nrepeat (8)\n    change size by (-4)\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nSetup\nbroadcast (Game Loop v)\n\ngo to x: (-190) y: (-24)\ngo to x: (-201) y: (14)\n\nwhen flag clicked\n\ndefine Fix Collisions in direction (dir)\nset [temporary dir v] to (direction)\nset [distance v] to [1]\npoint in direction (dir)\nrepeat (168)\n    Check Touching Solid\n    if <(touching) < [1]> then\n        point in direction (temporary dir)\n        stop [this script v]\n    end\n    move (distance) steps\n    turn right (180) degrees\n    change [distance v] by (1)\nend\n\ndefine Check Touching Solid\nif <touching (ground v)?> then\n    set [touching v] to [1]\nelse\n    set [touching v] to [0]\nend\n\nhide variable [x v]\n\nwhen flag clicked\nforever\n    Check Touching Solid\n    if <(touching) > [0]> then\n        Fix Collisions in direction [0]\n        Fix Collisions in direction [90]\n    end\nend\n\ndefine Setup\ngo to x: (-200) y: (50)\npoint in direction (90)\nshow\ngo to [front v] layer\nclear graphic effects\nset size to (45) %\nswitch costume to (middle v)\nset drag mode [not draggable v]\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\n\ndefine Left / Right Movement\nif <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    change [x v] by (-1)\nend\nif <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    change [x v] by (1)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\n\nwhen I receive [game loop v]\nforever\n    Set Costume\n    Left / Right Movement\n    Horizontal Collision and Wall Jump\n    Up / Down Movement\n    Check Death / Win\nend\n\ndefine Horizontal Collision and Wall Jump\nCheck Touching Solid\nif <(touching) = [1]> then\n    change y by (1)\n    Check Touching Solid\n    if <(touching) = [1]> then\n        change y by (1)\n        Check Touching Solid\n        if <(touching) = [1]> then\n            change y by (1)\n            Check Touching Solid\n            if <(touching) = [1]> then\n                change y by (1)\n                Check Touching Solid\n                if <(touching) = [1]> then\n                    change y by (1)\n                    Check Touching Solid\n                    if <(touching) = [1]> then\n                        change x by ((X) * (-1))\n                        change y by (-5)\n                        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                            if <(X) > [0]> then\n                                set [x v] to [-7]\n                            else\n                                set [x v] to [7]\n                            end\n                            set [y v] to [14]\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (-3)\n\ndefine Up / Down Movement\nCheck Touching Solid\nif <(touching) = [1]> then\n    if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y v] to [14]\n    end\nend\nchange y by (3)\nchange [y v] by (-1)\nchange y by (Y)\nCheck Touching Solid\nif <(touching) = [1]> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\n\ndefine Check Death / Win\nif <(x position) > [230]> then\n    change [level v] by (1)\n    broadcast (next level v)\nend\nif <(y position) < [-170]> then\n    broadcast (Death v)\nend\nif <touching (spike v)?> then\n    broadcast (Death v)\nend\nif <touching (lava v)?> then\n    broadcast (Death v)\nend\nif <touching (saw v)?> then\n    broadcast (Death v)\nend\n\nwhen I receive [next level v]\nset [y v] to [0]\nset [x v] to [0]\ngo to x: (-245) y: (y position)\n\nwhen I receive [death v]\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nclear graphic effects\ngo to x: (-235) y: (-50)\nset [y v] to [0]\nset [x v] to [0]\nshow\nbroadcast (Game Loop v)\ndelete this clone\n\ndefine Set Costume\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) + (15)) > (x position)> and <mouse down?>>>> then\n    switch costume to (right v)\nelse\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) - (15)) < (x position)> and <mouse down?>>>> then\n        switch costume to (left v)\n    else\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> then\n            switch costume to (up v)\n        else\n            if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (-20)) > (x position)> and <mouse down?>>> then\n                switch costume to (right v)\n            else\n                if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (-20)) < (x position)> and <mouse down?>>> then\n                    switch costume to (left v)\n                else\n                    switch costume to (middle v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [death v]\n\nwhen I receive [game loop v]\ndelete this clone\n\nwhen I receive [game loop v]\n\nFix Collisions in direction [0]\nFix Collisions in direction [90]\n\nwhen I receive [next level v]\nwait (0.01) seconds\nFix Collisions in direction [0]\n\nwhen I receive [90 v]\nset [y v] to [20]\nchange y by (Y)\n\nwhen I receive [-90 v]\nset [y v] to [-20]\nchange y by (Y)\n\nstop [this script v]\n\nwhen I receive [180 v]\nset [x v] to [25]\n\nwhen I receive [next level v]\nFix Collisions in direction [0]\n\nwhen I receive [game loop v]\nFix Collisions in direction [0]\n\n@ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (join [Level] (Level))\n\nwhen I receive [next level v]\nswitch costume to (join [Level] (Level))\n\nforever\n\nswitch costume to (level1 v)\n\nnext costume\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Figur1\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [1]> or <(Level) = [2]>> then\n        go to x: (0) y: (3)\n        switch costume to (grass v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (zaun v)\n        go to x: (-29) y: (-37)\n    end\n    if <(Level) = [4]> then\n        switch costume to (grass2 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (city 1 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (nothing v)\n    end\nend\n\n@Figur2\n\nwhen flag clicked\nhide\nforever\n    set [y wolke v] to (pick random (115) to (165))\n    go to x: (281) y: (y wolke)\n    glide (4) secs to x: (-260) y: (y wolke)\n    if <(Level) = [2]> then\n        show\n    end\nend\n\n@Figur3\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nforever\n    set [y wolke-2 v] to (pick random (115) to (165))\n    go to x: (281) y: (y wolke-2)\n    glide (4) secs to x: (-260) y: (y wolke-2)\n    if <(Level) = [2]> then\n        show\n    end\nend\n\n@Figur4\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\n    if <(Level) = [7]> then\n        broadcast (leuchturm v)\n    end\nend\n\nforever\n    set [ghost v] effect to (100)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n        wait (0.1) seconds\n    end\n    wait (1.3) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [leuchturm v]\n\n@Figur5\n\nwhen flag clicked\nhide\n\n
hier habe ich einen  Plattfomer im design einer bekannten (kinder-)Serie gemacht \nich hoffes  es gefällt euch  