ESCAPE - A platformer II
@Stage\n\nwhen flag clicked\nswitch backdrop to (bühnenbild1 v)\nset [brightness v] effect to (0)\n\nwhen I receive [nextlevel v]\nif <(Level) = [7]> then\n    switch backdrop to (bühnenbild2 v)\nend\n\n@intro\n\nwhen I start as a clone\ngo to x: (0) y: (70)\npoint in direction (90)\nswitch costume to (lucphuc_logo3 v)\nwait until <(effect \(intro\)) = [100]>\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (-3)\nend\nbroadcast (Menu v)\n\nwhen I receive [intro v]\ndelete clone\nshow\nset volume to (100) %\nstart sound [Zaza - Be Together v]\nset [effect \(intro\) v] to [0]\nswitch costume to (f8492011-187e-4b27-a5f2-642ac489e04e_200x200 v)\nset [ghost v] effect to (0)\npoint in direction (90)\ngo to x: (0) y: (0)\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [effect \(intro\) v] to [13]\nrepeat (effect \(intro\))\n    change [effect \(intro\) v] by (-1)\n    change y by (effect \(intro\))\nend\nwait (1.2) seconds\nset [effect \(intro\) v] to [100]\nwait (0.1) seconds\nset [effect \(intro\) v] to [6]\nrepeat (effect \(intro\))\n    change [effect \(intro\) v] by (-2.5)\n    change y by (effect \(intro\))\nend\nset [effect \(intro\) v] to [10]\nrepeat (effect \(intro\))\n    change [effect \(intro\) v] by (-1)\n    change y by ((effect \(intro\)) * (-1))\n    change [ghost v] effect by (10)\n    change volume by (-8)\nend\nstop all sounds\n\ndefine delete clone\ndelete this clone\n\nwhen flag clicked\nbroadcast (intro v)\n\n@Figur1\n\nwhen I receive [menu v]\nwait (0.5) seconds\nstart sound [Low Whoosh v]\nshow\nrepeat (effect \(Escape a platformer\))\n    change y by ((effect \(Escape a platformer\)) * (-1))\n    change [effect \(escape a platformer\) v] by (-1)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\nset [effect \(escape a platformer\) v] to [12]\ngo to x: (20) y: (180)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [start v]\nforever\n    play sound [Xenogenesis v] until done\nend\n\n@Player\n\nwhen I receive [start v]\nset rotation style [left-right v]\ngo to x: (-180) y: (-50)\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-0.6)\n        point in direction (-90)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (0.6)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [Jump v]\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [1]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (ground v)?>> then\n        set [y v] to [15]\n        start sound [Jump v]\n    end\n    change y by (1)\n    if <<(x position) > [230]> and <not <(Level) = [11]>>> then\n        point in direction (90)\n        set [x v] to [0]\n        set [y v] to [0]\n        change [level v] by (1)\n        broadcast (NextLevel v)\n        if <not <<(Level) = [3]> or <(Level) = [5]>>> then\n            go to x: (-180) y: (-50)\n        end\n        if <<(Level) = [3]> or <(Level) = [5]>> then\n            go to x: (-180) y: (y position)\n        end\n    end\n    if <<(y position) < [-190]> or <touching (spines v)?>> then\n        broadcast (dead v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (skin 1 v)\npoint in direction (90)\nset [level v] to [1]\nset [effect \(player\) v] to [0]\nhide\ngo to x: (-240) y: (0)\n\nwhen I receive [menu v]\nset [effect \(player\) v] to [15]\nwait (0.9) seconds\nshow\nstart sound [Low Whoosh2 v]\nrepeat (15)\n    change x by ((effect \(Player\)) * (2))\n    change [effect \(player\) v] by (-1)\nend\n\nwhen I receive [before costume v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [next costume v]\nnext costume\n\nwhen [r v] key pressed\nbroadcast (dead v)\n\nwhen I receive [skip level v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nbroadcast (NextLevel v)\nchange [level v] by (1)\nif <not <<(Level) = [3]> or <(Level) = [5]>>> then\n    go to x: (-180) y: (-50)\nend\nif <<(Level) = [3]> or <(Level) = [5]>> then\n    go to x: (-180) y: (77)\nend\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (skin 1 v)\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [dead v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nif <not <<(Level) = [3]> or <(Level) = [5]>>> then\n    go to x: (-180) y: (-50)\nend\nif <<(Level) = [3]> or <(Level) = [5]>> then\n    go to x: (-180) y: (77)\nend\n\n@Figur2\n\nwhen flag clicked\nset size to (70) %\nhide\ngo to x: (-5) y: (-180)\nset [effect \(start\) v] to [0]\n\nwhen I receive [menu v]\nset [effect \(start\) v] to [10]\nwait (1.5) seconds\nshow\nstart sound [Low Whoosh2 v]\nrepeat (effect \(START\))\n    change y by (effect \(START\))\n    change [effect \(start\) v] by (-1)\nend\nrepeat until <(send Start) = [yes]>\n    if <<touching (mouse-pointer v)?> and <(show How to Play?) = [no]>> then\n        change size by (((90) - (size)) / (3))\n        set [brightness v] effect to (20)\n        if <mouse down?> then\n            start sound [click v]\n            broadcast (START v)\n            set [send start v] to [yes]\n        end\n    else\n        change size by (((70) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\n    if <(show How to Play?) = [no]> then\n        show\n    else\n        hide\n    end\nend\nhide\nwait (0.2) seconds\nset [send start v] to [no]\n\n@Figur3\n\nwhen flag clicked\nset [send start v] to [no]\nshow\nset [brightness v] effect to (0)\nset [ghost v] effect to (100)\nswitch costume to (kostüm1 v)\n\nwhen I start as a clone\nswitch costume to (kostüm2 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat until <(send Start) = [yes]>\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (before costume v)\n        start sound [click v]\n    end\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\ndelete this clone\n\nwhen I receive [menu v]\nwait (1.3) seconds\ncreate clone of (_myself_ v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat until <(send Start) = [yes]>\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Next costume v)\n        start sound [click v]\n    end\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\nhide\n\nwhen I start as a clone\nrepeat until <(send Start) = [yes]>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (50)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [menu v]\nwait (1.3) seconds\nrepeat until <(send Start) = [yes]>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (50)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@ground\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nswitch costume to (level 1 v)\n\nwhen I receive [nextlevel v]\nnext costume\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nwait until <(Level) = [10]>\nbroadcast (END v)\n\n@Figur5\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((90) - (size)) / (3))\n        set [ghost v] effect to (50)\n    else\n        change size by (((70) - (size)) / (3))\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (NextLevel v)\n        change [level v] by (1)\n        broadcast (dead v)\n        start sound [click v]\n    end\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\n\nwhen flag clicked\nswitch costume to (kostüm2 v)\n\nwhen I receive [nextlevel v]\nif <(Level) = [7]> then\n    switch costume to (kostüm3 v)\nend\n\nwhen I receive [end v]\nhide\n\n@Figur4\n\nwhen flag clicked\nset [show how to play? v] to [no]\ngo to x: (5) y: (-60)\nset size to (100) %\nswitch costume to (kostüm2 v)\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [menu v]\nwait (1.8) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat until <(send Start) = [yes]>\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [brightness v] effect to (20)\n    else\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nset [ghost v] effect to (100)\nhide\n\nwhen this sprite clicked\nstart sound [click v]\nif <(show How to Play?) = [no]> then\n    set [show how to play? v] to [yes]\nelse\n    if <(show How to Play?) = [yes]> then\n        set [show how to play? v] to [no]\n    end\nend\n\nwhen I receive [menu v]\ngo to [front v] layer\nwait (2.3) seconds\nrepeat until <(send Start) = [yes]>\n    if <(show How to Play?) = [yes]> then\n        switch costume to (kostüm3 v)\n        go to x: (-175) y: (-150)\n    end\n    if <(show How to Play?) = [no]> then\n        switch costume to (kostüm2 v)\n        go to x: (5) y: (-60)\n    end\nend\n\ngo to x: (5) y: (-60)\n\n@how?\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [menu v]\nrepeat until <(send Start) = [yes]>\n    if <(show How to Play?) = [no]> then\n        hide\n        wait until <(show How to Play?) = [yes]>\n    else\n        show\n        go to [front v] layer\n        wait until <(show How to Play?) = [no]>\n    end\nend\n\n@spines\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\nshow\npoint in direction (90)\nswitch costume to (1 v)\n\nwhen I receive [nextlevel v]\nbroadcast (delete clone \(spines\) v)\nnext costume\nrenderer\n\nwhen I receive [delete clone \(spines\) v]\ndelete this clone\n\ndefine level 3\nif <(Level) = [3]> then\n    go to x: (-7) y: (-130)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\nend\n\ndefine level 4\nif <(Level) = [4]> then\n    go to x: (-52) y: (-130)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (70)\n    create clone of (_myself_ v)\n    change x by (22)\n    create clone of (_myself_ v)\n    change x by (22)\n    create clone of (_myself_ v)\n    change x by (72)\n    create clone of (_myself_ v)\n    change x by (22)\nend\n\ndefine renderer\nbroadcast (render 2 v)\nbroadcast (render 1 v)\n\ndefine level 5\nif <(Level) = [5]> then\n    go to x: (-110) y: (-130)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\nend\n\ndefine level 7\nif <(Level) = [7]> then\n    set [ghost v] effect to (100)\n    go to x: (50) y: (-100)\nend\n\ndefine level 9\nif <(Level) = [9]> then\n    set [ghost v] effect to (0)\n    go to x: (-140) y: (-130)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (20)\nend\n\ndefine level 10\nif <(Level) = [10]> then\n    go to x: (-150) y: (-130)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change y by (120)\n    change x by (30)\n    point in direction (-90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (30)\n    change y by (-120)\n    point in direction (90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change y by (120)\n    change x by (30)\n    point in direction (-90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (30)\n    change y by (-120)\n    point in direction (90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change y by (120)\n    change x by (30)\n    point in direction (-90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change x by (30)\n    change y by (-120)\n    point in direction (90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\n    change y by (120)\n    change x by (40)\n    point in direction (-90)\n    create clone of (_myself_ v)\n    change x by (20)\n    create clone of (_myself_ v)\nend\n\ncreate clone of (_myself_ v)\nchange x by (20)\n\nchange x by (20)\n\nchange x by (20)\n\nwhen flag clicked\npoint in direction (90)\n\nchange x by (20)\n\ncreate clone of (_myself_ v)\nchange x by (20)\n\nchange x by (10)\n\ncreate clone of (_myself_ v)\n\nchange x by (40)\nchange y by (-120)\npoint in direction (90)\n\ncreate clone of (_myself_ v)\nchange x by (20)\ncreate clone of (_myself_ v)\n\nbroadcast (NextLevel v)\n\nwhen I receive [render 1 v]\nlevel 3\nlevel 4\nlevel 5\nlevel 7\n\nwhen I receive [render 2 v]\nlevel 9\nlevel 10\n\n@Figur6\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n@Figur7\n\nwhen flag clicked\nswitch costume to (level 1 v)\n\ndefine level 6\nif <(Level) = [6]> then\n    go to x: (125) y: (140)\n    repeat until <(Level) = [7]>\n        set y to ((([sin v] of (effect \(Figur7\)) ) * (2)) + (140))\n        if <touching (player v)?> then\n            broadcast (NextLevel v)\n            broadcast (dead v)\n            change [level v] by (1)\n        end\n    end\nend\n\nwhen I receive [nextlevel v]\nnext costume\nlevel 6\n\nwhen flag clicked\nset [ghost v] effect to (0)\nset [effect \(figur7\) v] to [0]\nforever\n    change [effect \(figur7\) v] by (25)\n    change [ghost v] effect by (-10)\n    if <[325] < (effect \(Figur7\))> then\n        set [effect \(figur7\) v] to [0]\n    end\nend\n\nchange y by (10)\n\n@Sprite2\n\nwhen flag clicked\nset size to (50) %\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [nextlevel v]\nlevel 7\nlevel 8\n\nwhen I receive [nextlevel v]\nif <<(Level) = [7]> or <(Level) = [8]>> then\n    repeat until <(Level) = [9]>\n        set size to (([sin v] of (effect \(Figur7\)) ) + (50)) %\n        next costume\n        wait (0.1) seconds\n    end\nend\n\ndefine level 7\nif <(Level) = [7]> then\n    go to [front v] layer\n    show\n    go to x: (50) y: (-100)\nend\n\ngo to (spines v)\n\nchange size by (10)\n\ndefine level 8\nif <(Level) = [8]> then\n    hide\nend\n\n
w a s d or arrow keys to move\n\nyou can wall jump\ndon't touch the spines (spikes) and fire.