Target  A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (bühnenbild1 v)\nwait until <(new map) = [1]>\nswitch backdrop to (bühnenbild2 v)\nwait until <(new map) = [2]>\nswitch backdrop to (bühnenbild1 v)\nwait until <(new map) = [3]>\nswitch backdrop to (bühnenbild2 v)\nwait until <(new map) = [4]>\nswitch backdrop to (bühnenbild1 v)\nwait until <(new map) = [5]>\nswitch backdrop to (bühnenbild2 v)\nwait until <(new map) = [6]>\nswitch backdrop to (bühnenbild1 v)\nwait until <(new map) = [7]>\nswitch backdrop to (bühnenbild2 v)\nwait until <(new map) = [8]>\nswitch backdrop to (bühnenbild1 v)\n\n@Platform\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [1]> then\n        switch costume to (kostüm2 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [2]> then\n        switch costume to (kostüm3 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [3]> then\n        switch costume to (kostüm4 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [4]> then\n        switch costume to (kostüm5 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [5]> then\n        switch costume to (kostüm6 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [6]> then\n        switch costume to (kostüm7 v)\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [9]> then\n        switch costume to (kostüm10 v)\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [7]> then\n        switch costume to (kostüm8 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (1) seconds\nforever\n    if <(new map) = [8]> then\n        switch costume to (kostüm9 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Dance Slow Mo2 v] until done\nend\n\n@Target\n\nwhen flag clicked\ngo to x: (-200) y: (-154)\nset [speedx v] to [0]\nset [speedy v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [speedx v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [speedx v] by (-1)\n    end\n    change x by (SpeedX)\n    if <touching (platform v)?> then\n        change x by ((SpeedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((SpeedX) * (0.8))\n    end\n    change y by (SpeedY)\n    if <touching (platform v)?> then\n        change y by ((SpeedY) * (-1))\n        set [speedy v] to [0]\n        if <(LLLog) = [0]> then\n            if <key (up arrow v) pressed?> then\n                set [speedy v] to [13]\n                set [lllog v] to [1]\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lllog v] to [0]\n    end\nend\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nset [new map v] to [0]\nwait (1) seconds\nforever\n    wait until <touching (flag v)?>\n    change [new map v] by (1)\n    go to x: (-200) y: (-155)\n    wait (1) seconds\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    wait until <touching (lava v)?>\n    go to x: (-200) y: (-155)\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.009) seconds\nend\n\nwhen I start as a clone\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-7)\nend\ndelete this clone\n\nwhen this sprite clicked\nbroadcast (Shop v)\n\nwhen I receive [------ v]\nnext costume\n\n@Coin\n\nwhen flag clicked\ngo to x: (156) y: (109)\nshow\nwait until <touching (target v)?>\nhide\n\nwhen flag clicked\nforever\n    repeat (4)\n        change y by (2)\n    end\n    repeat (3)\n        change y by (0.5)\n    end\n    repeat (3)\n        change y by (0.2)\n    end\n    repeat (3)\n        change y by (-0.2)\n    end\n    repeat (3)\n        change y by (-0.5)\n    end\n    repeat (4)\n        change y by (-2)\n    end\nend\n\n@Flag\n\nwhen flag clicked\ngo to x: (-154) y: (102)\nwait (1) seconds\nwait until <(new map) = [1]>\ngo to x: (-179) y: (125)\nwait (1) seconds\nwait until <(new map) = [2]>\ngo to x: (197) y: (128)\nwait (1) seconds\nwait until <(new map) = [3]>\ngo to x: (-188) y: (74)\nwait (1) seconds\nwait until <(new map) = [4]>\ngo to x: (185) y: (-139)\nwait (1) seconds\nwait until <(new map) = [5]>\ngo to x: (196) y: (140)\nwait (1) seconds\nwait until <(new map) = [6]>\ngo to x: (196) y: (140)\nwait (1) seconds\nwait until <(new map) = [7]>\ngo to x: (-154) y: (102)\n\n@Darget\n\nwhen flag clicked\ngo to x: (-200) y: (-154)\nhide\nset [speedx2 v] to [0]\nset [speedy2 v] to [0]\nforever\n    if <key (d v) pressed?> then\n        change [speedx2 v] by (1)\n    end\n    if <key (a v) pressed?> then\n        change [speedx2 v] by (-1)\n    end\n    change x by (SpeedX2)\n    if <touching (platform v)?> then\n        change x by ((SpeedX2) * (-1))\n        set [speedx2 v] to [0]\n    else\n        set [speedx2 v] to ((SpeedX2) * (0.8))\n    end\n    change y by (SpeedY2)\n    if <touching (platform v)?> then\n        change y by ((SpeedY2) * (-1))\n        set [speedy2 v] to [0]\n        if <(LLLog2) = [0]> then\n            if <key (w v) pressed?> then\n                set [speedy2 v] to [13]\n                set [lllog2 v] to [1]\n            end\n        end\n    else\n        change [speedy2 v] by (-1)\n        set [lllog2 v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (flag v)?> then\n        go to x: (-200) y: (-155)\n    end\nend\n\nwhen [m v] key pressed\nshow\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.009) seconds\nend\n\nwhen I start as a clone\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-7)\nend\ndelete this clone\n\npoint towards (mouse-pointer v)\n\n@Lava\n\nwhen flag clicked\npoint in direction (90)\nhide\nwait (1) seconds\nwait until <(new map) = [1]>\ngo to x: (94) y: (-151)\nshow\nwait until <(new map) = [2]>\nhide\nwait until <(new map) = [3]>\nhide\ngo to x: (-95) y: (-9)\nshow\nwait until <(new map) = [4]>\npoint in direction (0)\ngo to x: (32) y: (-43)\nwait until <(new map) = [5]>\nhide\nwait until <(new map) = [7]>\nshow\npoint in direction (90)\ngo to x: (97) y: (-184)\nwait until <(new map) = [8]>\nhide\n\n@Level\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (kostüm1 v)\nhide\nset size to (200) %\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [0]>\nswitch costume to (kostüm1 v)\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [1]>\nswitch costume to (kostüm2 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [2]>\nswitch costume to (kostüm3 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [3]>\nswitch costume to (kostüm4 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [4]>\nswitch costume to (kostüm5 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [5]>\nswitch costume to (kostüm6 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [6]>\nswitch costume to (kostüm7 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [7]>\nswitch costume to (kostüm8 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nwait (0.1) seconds\nwait until <(new map) = [8]>\nswitch costume to (kostüm9 v)\nset size to (200) %\nturn right (30) degrees\nshow\nrepeat (10)\n    change size by (-7)\n    turn left (1) degrees\nend\nrepeat (10)\n    change size by (-3)\n    turn left (0.9) degrees\nend\nrepeat (10)\n    change size by (-1)\n    turn left (0.7) degrees\nend\nrepeat (10)\n    change size by (-0.2)\n    turn left (0.4) degrees\nend\nhide\n\n@Figur1\n\nwhen flag clicked\ngo to x: (-110) y: (-172)\nhide\nwait until <(new map) = [8]>\nshow\nforever\n    if <<touching (target v)?> and <key (up arrow v) pressed?>> then\n        change [speedy v] by (4)\n    end\nend\n\nif <<touching (darget v)?> and <key (w v) pressed?>> then\n    change [speedy2 v] by (22)\n    wait (1) seconds\nend\n\n@Figur2\n\nwhen I receive [shop v]\nshow\n\nwhen flag clicked\nswitch costume to (kostüm1 v)\nhide\ngo to x: (0) y: (0)\nforever\n    if <key (space v) pressed?> then\n        hide\n    end\nend\n\nwhen I receive [------ v]\nnext costume\n\n@Figur4\n\nwhen I receive [shop v]\nshow\n\nwhen flag clicked\ngo to x: (50) y: (0)\nhide\nforever\n    if <key (space v) pressed?> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nbroadcast (------ v)\n\nwhen flag clicked\nswitch costume to (kostüm2 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (kostüm2 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (kostüm1 v)\n    end\nend\n\n@Figur3\n\nwhen flag clicked\nbroadcast (Menu v)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [intro v]\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nwait (1) seconds\nrepeat (5)\n    change [ghost v] effect by (20)\nend\n\n@Figur5\n\nwhen flag clicked\nshow\nset size to (150) %\nswitch costume to (kostüm1 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nrepeat (33)\n    change [ghost v] effect by (-3)\nend\nwait (1) seconds\nbroadcast (Swipe v)\nglide (0.4) secs to x: (-100) y: (0)\nwait (2) seconds\nbroadcast (Back v)\nglide (0.7) secs to x: (0) y: (0)\nrepeat (33)\n    change [ghost v] effect by (3)\n    change size by (15)\nend\nhide\nbroadcast (Intro v)\n\nwhen I receive [swipe v]\nrepeat (13)\n    next costume\nend\n\nwhen I receive [back v]\nswitch costume to (kostüm1 v)\n\n@Figur6\n\nwhen flag clicked\nshow\n\nwhen I receive [intro v]\nwait (1) seconds\nhide\n\n
--------------------Target-A- Platformer------------------------\nArrow Keys to move\nCan you reach the 7th Level ?\n(Press at the first level ,,M,, To get a second Player. Move him with W A S D ;-) )  Click on target to choose a skin.   Close it with space                           