Platformer(:

Instructions: ...move with arrow keys.\n-------------------------------------------------------------------------\nPlease Like and follow me!\n-------------------------------------------------------------------------\n\n

@Stage\n\n@Figur1\n\nwhen I start as a clone\nswitch costume to (kostüm3 v)\nset [ghost v] effect to (0)\nset size to (20) %\nrepeat (5)\n    change size by (-2)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\ngo to x: (-200) y: (70)\nset [level v] to [1]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (X Velocity)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [13.5]\n    end\n    change y by (1)\n    if <(x position) > [236]> then\n        go to x: (-200) y: (70)\n        broadcast (nächstesLevel v)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nif <<touching (spikes v)?> or <<touching (\[danger\]//5 v)?> or <<(y position) < [-178]> or <<touching (\[danger\]//4 v)?> or <touching (spike v)?>>>>> then\n    go to x: (-225) y: (200)\nend\n\nwhen I receive [player1tot v]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nforever\n    play sound [Avicii - Levels  v] until done\nend\n\n@Level\n\nwhen I receive [nächsteslevel v]\nnext costume\n\nwhen flag clicked\nswitch costume to (level1 v)\n\nwhen flag clicked\nerase all\nShadow\nOutline\n\ndefine Shadow\n\nset [brightness v] effect to (-100)\nset [ghost v] effect to (90)\nchange y by (-10)\nstamp\nclear graphic effects\nchange y by (10)\n\ndefine Outline\nset rotation style [don't rotate v]\nset [brightness v] effect to (-100)\nrepeat (8)\n    move (3) steps\n    stamp\n    move (-3) steps\n    turn right (45) degrees\nend\nclear graphic effects\n\nclear graphic effects\n\nwhen I receive [nächsteslevel v]\nerase all\nShadow\nOutline\n\n@Spikes\n\nwhen flag clicked\nforever\n    Playerberührt?\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        show\n        switch costume to (kostüm1 v)\n        go to x: (38) y: (30)\n    end\n    if <(Level) = [3]> then\n        show\n        switch costume to (kostüm2 v)\n        go to x: (38) y: (30)\n    end\n    if <(Level) = [4]> then\n        show\n        switch costume to (kostüm3 v)\n        go to x: (38) y: (30)\n    end\n    if <(Level) = [5]> then\n        switch costume to (empty v)\n    end\n    if <(Level) = [6]> then\n        show\n        switch costume to (kostüm4 v)\n        go to x: (38) y: (30)\n    end\n    if <(Level) = [7]> then\n        switch costume to (empty v)\n        broadcast (Level7bösefigur v)\n    end\n    if <(Level) = [8]> then\n        show\n        switch costume to (kostüm5 v)\n        go to x: (38) y: (30)\n    end\n    if <(Level) = [9]> then\n        show\n        switch costume to (kostüm6 v)\n        go to x: (38) y: (30)\n    end\n    if <(Level) = [10]> then\n        switch costume to (empty v)\n    end\nend\n\ndefine Playerberührt?\nif <touching (figur1 v)?> then\n    broadcast (Player1tot v)\nend\n\ndefine Shadow\nset [brightness v] effect to (-100)\nset [ghost v] effect to (90)\nchange y by (-10)\nstamp\nclear graphic effects\nchange y by (10)\n\nwhen I receive [nächsteslevel v]\nif <not <(costume [number v]) = [5]>> then\n    wait (0.1) seconds\n    Shadow\n    Outline\nend\n\nwhen flag clicked\nerase all\nShadow\nOutline\n\ndefine Outline\nset rotation style [don't rotate v]\nset [brightness v] effect to (-100)\nrepeat (8)\n    move (3) steps\n    stamp\n    move (-3) steps\n    turn right (45) degrees\nend\nclear graphic effects\n\nerase all\n\nbroadcast (nächstesLevel v)\n\n@[Danger]//1\n\nwhen flag clicked\nhide\nforever\n    Playerberührt?\n    if <(Level) = [5]> then\n        show\n    end\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\ndefine Playerberührt?\nif <touching (figur1 v)?> then\n    broadcast (Player1tot v)\nend\n\n@[Danger]//2\n\nwhen flag clicked\nset [postition änderung böse figur v] to [-200]\nhide\nset size to (100) %\nforever\n    if <(Level) = [6]> then\n        wait (0.2) seconds\n        go to x: (40) y: (-203)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [7]>>\n            repeat (30)\n                change y by (7)\n            end\n            repeat (30)\n                change y by (-7)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [7]> then\n        go to x: (-150) y: (-240)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [8]>>\n            repeat (10)\n                change y by (20)\n            end\n            repeat (10)\n                change y by (-20)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nhide\ngo to x: (-114) y: (-225)\n\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\ngo to x: ((x position) + (Postition änderung Böse Figur)) y: (y position)\nchange [postition änderung böse figur v] by (50)\nrepeat until <touching (figur1 v)?>\n    repeat (20)\n        change y by (15)\n    end\n    repeat (20)\n        change y by (-15)\n    end\nend\nif <touching (figur1 v)?> then\n    broadcast (Player1tot v)\nend\n\nchange [level v] by (1)\nbroadcast (nächstesLevel v)\n\nstamp\n\nrepeat (3)\nend\n\nbroadcast (Level7bösefigur v)\n\nwhen I receive [level7bösefigur v]\n\nset [level v] to [7]\n\nhide\n\ndefine Playertouching?\nif <touching (figur1 v)?> then\n    broadcast (Player1tot v)\nend\n\nwhen flag clicked\nforever\n    Playertouching?\nend\n\n@[Danger]//3\n\nwhen flag clicked\nhide\nset size to (100) %\nforever\n    if <(Level) = [7]> then\n        wait (0.5) seconds\n        go to x: (-70) y: (-240)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [8]>>\n            repeat (10)\n                change y by (20)\n            end\n            repeat (10)\n                change y by (-20)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nhide\ngo to x: (-114) y: (-225)\n\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nchange [level v] by (1)\nbroadcast (nächstesLevel v)\n\nstamp\n\nrepeat (3)\nend\n\nbroadcast (Level7bösefigur v)\n\nwhen I receive [level7bösefigur v]\n\nset [level v] to [7]\n\nhide\n\n@[Danger]//4\n\nwhen flag clicked\nhide\nset size to (100) %\nforever\n    if <(Level) = [7]> then\n        wait (0.7) seconds\n        go to x: (10) y: (-240)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [8]>>\n            repeat (10)\n                change y by (20)\n            end\n            repeat (10)\n                change y by (-20)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nhide\ngo to x: (-114) y: (-225)\n\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nchange [level v] by (1)\nbroadcast (nächstesLevel v)\n\nstamp\n\nrepeat (3)\nend\n\nbroadcast (Level7bösefigur v)\n\nwhen I receive [level7bösefigur v]\n\nset [level v] to [7]\n\nhide\n\n@[Danger]//5\n\nwhen flag clicked\nhide\nset size to (100) %\nforever\n    if <(Level) = [7]> then\n        wait (0.8) seconds\n        go to x: (90) y: (-240)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [8]>>\n            repeat (10)\n                change y by (20)\n            end\n            repeat (10)\n                change y by (-20)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nhide\ngo to x: (-114) y: (-225)\n\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nchange [level v] by (1)\nbroadcast (nächstesLevel v)\n\nstamp\n\nrepeat (3)\nend\n\nbroadcast (Level7bösefigur v)\n\nwhen I receive [level7bösefigur v]\n\nset [level v] to [7]\n\nhide\n\n@[Danger]//6\n\nwhen flag clicked\nhide\nset size to (100) %\nforever\n    if <(Level) = [7]> then\n        wait (0.9) seconds\n        go to x: (170) y: (-240)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [8]>>\n            repeat (10)\n                change y by (20)\n            end\n            repeat (10)\n                change y by (-20)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nhide\ngo to x: (-114) y: (-225)\n\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nchange [level v] by (1)\nbroadcast (nächstesLevel v)\n\nstamp\n\nrepeat (3)\nend\n\nbroadcast (Level7bösefigur v)\n\nwhen I receive [level7bösefigur v]\n\nset [level v] to [7]\n\nhide\n\n@[Danger]//7\n\nwhen flag clicked\nhide\nset size to (100) %\nforever\n    if <(Level) = [7]> then\n        wait (1) seconds\n        go to x: (250) y: (-240)\n        show\n        repeat until <<touching (figur1 v)?> or <(Level) = [8]>>\n            repeat (10)\n                change y by (20)\n            end\n            repeat (10)\n                change y by (-20)\n            end\n        end\n        if <touching (figur1 v)?> then\n            broadcast (Player1tot v)\n        end\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nhide\ngo to x: (-114) y: (-225)\n\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nchange [level v] by (1)\nbroadcast (nächstesLevel v)\n\nstamp\n\nrepeat (3)\nend\n\nbroadcast (Level7bösefigur v)\n\nwhen I receive [level7bösefigur v]\n\nset [level v] to [7]\n\nhide\n\n