 Dimensions - Scrolling platformer mobile friendly! 
@Stage\n\nset [☁ $ v] to [0]\n\n@Player\n\nwhen flag clicked\nset [soud v] to [1]\n\nwhen [m v] key pressed\nif <(soud) = [1]> then\n    set volume to (0) %\n    wait (0.1) seconds\n    set [soud v] to [0]\nend\n\nwhen [m v] key pressed\nif <(soud) = [0]> then\n    set volume to (50) %\n    wait (0.1) seconds\n    set [soud v] to [1]\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <touching color (#549a10)?> then\n        broadcast (nova v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <touching (death line v)?> then\n        broadcast (Death v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (right v)\n\nwhen flag clicked\nforever\n    if <key (d v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (a v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nplay sound [Vexento - Masked Heroes 128 kbps v] until done\n\nwhen [n v] key pressed\nstop all sounds\nstart sound (pick random (1) to (10))\n\nwhen I receive [music v]\nif <(soud) = [0]> then\n    set volume to (50) %\n    wait (0.1) seconds\n    set [soud v] to [1]\nend\n\nwhen I receive [music v]\nif <(soud) = [1]> then\n    set volume to (0) %\n    wait (0.1) seconds\n    set [soud v] to [0]\nend\n\nwhen I receive [next music v]\nstop all sounds\nstart sound (pick random (1) to (10))\n\nwhen I receive [basic v]\nswitch costume to (right v)\n\nset [☁ tiger v] to [0]\n\nwhen flag clicked\nhide\nset size to (80) %\nwait (0) seconds\nshow\nforever\n    if <touching color (#ec503b)?> then\n        if <(V1) = [1]> then\n            set size to (60) %\n            wait (0.50) seconds\n            set [v1 v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <touching color (#ec503b)?> then\n        if <(V1) = [0]> then\n            set size to (80) %\n            wait (0.50) seconds\n            set [v1 v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen I receive [realy v]\nswitch costume to (right6 v)\n\nwhen flag clicked\nforever\n    if <(☁ Coin) = [-1]> then\n        set [☁ coin v] to [0]\n    end\nend\n\nwhen I receive [tiger v]\nif <(☁ TIGER) = [1]> then\n    switch costume to (right2 v)\nend\n\nwhen I receive [evil v]\nif <(☁ EVIL) = [1]> then\n    switch costume to (right3 v)\nend\n\nwhen I receive [brick v]\nif <(☁ BRICK) = [1]> then\n    switch costume to (right4 v)\nend\n\nforever\n    if <touching color (#ff5050)?> then\n        broadcast (nova v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <touching (spikes v)?> then\n        broadcast (Death v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\n\nwhen flag clicked\nforever\n    set [smer v] to (direction)\nend\n\nwhen flag clicked\nwait (1) seconds\n\nforever\n    if <touching color (#ffa600)?> then\n        switch costume to (right9 v)\n    end\nend\n\nwhen I receive [realy v]\nif <(☁ Really) = [1]> then\n    switch costume to (right6 v)\nend\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> then\n        point in direction (-90)\n    else\n        point in direction (90)\n    end\nend\n\nwhen I receive [kid1 v]\nif <(☁ Kid) = [1]> then\n    switch costume to (right5 v)\nend\n\nwhen I receive [el1 v]\nif <(☁ EVIL) = [1]> then\n    switch costume to (right7 v)\nend\n\nwhen I receive [sandy v]\nif <(☁ Sandy) = [1]> then\n    switch costume to (right8 v)\nend\n\nwhen flag clicked\nbroadcast (Start v)\nforever\n\n@Trumball\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\ngo to [front v] layer\nshow\n\nset [☁ coin v] to [0]\n\n@Level\n\ndefine Platformer\nshow\nif <(Shop) = [0]> then\n    if <(Water?) = [0]> then\n        change [speed y v] by (1)\n    else\n        if <(Speed Y) < [5]> then\n            change [speed y v] by (.1)\n        end\n    end\n    change y by (Speed Y)\n    if <touching (player v)?> then\n        repeat until <not <touching (player v)?>>\n            if <(Speed Y) < [0]> then\n                change y by (1)\n            end\n            if <(Speed Y) > [0]> then\n                change y by (-1)\n            end\n        end\n        if <(Water?) = [0]> then\n            set [speed y v] to ((-15) * <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> and <(Speed Y) > [0]>>)\n        else\n            set [speed y v] to [0]\n        end\n    end\n    if <(Water?) = [1]> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n            if <(Speed Y) > [-4]> then\n                change [speed y v] by (-1.5)\n            end\n        end\n    end\n    if <(Water?) = [0]> then\n        change [speed x v] by (((2) * <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>>) + ((-2) * <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [0]>>>))\n    else\n        change [speed x v] by (((1.25) * <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>>) + ((-1.25) * <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [0]>>>))\n    end\n    change x by (Speed X)\n    set [speed x v] to ((Speed X) * (.7))\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching (player v)?>>>\n        change y by (-1)\n        change [slope v] by (1)\n    end\n    if <touching (player v)?> then\n        change y by (Slope)\n        repeat until <not <touching (player v)?>>\n            if <(Speed X) < [0]> then\n                change x by (1)\n            end\n            if <(Speed X) > [0]> then\n                change x by (-1)\n            end\n        end\n    end\nend\n\nwhen I receive [nova v]\ngo to x: (578) y: (-30)\nnext costume\n\nwhen flag clicked\nswitch costume to (kostým2 v)\nforever\n    show\nend\n\nwhen I receive [death v]\ngo to x: (578) y: (-30)\n\nwhen I receive [restart v]\ngo to x: (578) y: (-30)\n\nwhen I receive [skip v]\ngo to x: (578) y: (-30)\nnext costume\n\nwhen [r v] key pressed\ngo to x: (578) y: (-30)\n\nset [90 v] to [1]\n\nset [90 v] to [0]\n\nwhen flag clicked\nbroadcast (Start v)\nset [start v] to [1]\n\nwhen I receive [start v]\nshow\nset [nova v] to [0]\ngo to x: (578) y: (-30)\nset [speed x v] to [0]\nset [level v] to [1]\nset [speed y v] to [0]\n\nwhen flag clicked\ngo to x: (530) y: (-37)\nforever\n\nset [y v] to (y position)\nset [x v] to (x position)\n\nwhen I receive [start v]\nforever\n    Platformer\nend\n\n@Level 2\n\nwhen I receive [nova v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nwhen flag clicked\n\nwhen flag clicked\nswitch costume to (kostým2 v)\nclear graphic effects\nshow\n\nwhen I receive [start v]\nforever\n    go to (level v)\nend\n\n@Death Line\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\nforever\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nclear graphic effects\n\nwhen I receive [nova v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nset [☁ coin v] to [0]\n\nwhen I receive [start v]\nforever\n    go to (level v)\nend\n\n@Spikes\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nwhen flag clicked\nforever\n    go to (level v)\nend\n\nclear graphic effects\n\nwhen I receive [nova v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nswitch costume to (kostým7 v)\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [kostým10]> then\n        show\n    end\nend\n\nswitch costume to (kostým10 v)\n\nwhen I receive [start v]\n\n@Reset\n\nwhen this sprite clicked\nbroadcast (Restart v)\n\n@Music mute button\n\nwhen this sprite clicked\nbroadcast (Music v)\n\nwhen I receive [music v]\nif <(soud) = [1]> then\n    switch costume to (kostým2 v)\nend\n\nwhen I receive [music v]\nif <(soud) = [0]> then\n    switch costume to (kostým1 v)\nend\n\nwhen flag clicked\nswitch costume to (kostým1 v)\nset [soud v] to [1]\n\ngo [backward v] (1) layers\n\nset [☁ brick v] to [0]\n\n@Other music button\n\nwhen this sprite clicked\nbroadcast (Next Music v)\n\n@Skip\n\nwhen this sprite clicked\nbroadcast (Skip v)\n\nwhen flag clicked\nhide\n\nwhen I receive [thanks v]\nshow\nrepeat (30)\n    change size by (1)\nend\nwait (1) seconds\nforever\n    repeat (10)\n        change size by (1)\n    end\n    repeat (10)\n        change size by (-1)\n    end\nend\n\nshow\n\nwhen flag clicked\nset size to (70) %\n\nwait (1) seconds\nnext costume\n\n@Coin\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ coin v] by (1)\n        start sound [Coin v]\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        change [ghost v] effect by (25)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [nova v]\nshow\nnext costume\n\nnext costume\n\nwhen I receive [skip v]\nshow\nnext costume\n\nwhen flag clicked\nforever\n    if <key (w v) pressed?> then\n        play sound [Jump v] until done\n        wait (0.50) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        play sound [Jump v] until done\n        wait (0.50) seconds\n    end\nend\n\nwhen I receive [basic v]\nplay sound [Zoop v] until done\n\nwhen I receive [evil v]\nplay sound [Zoop v] until done\n\nwhen I receive [tiger v]\nplay sound [Zoop v] until done\n\nwhen I receive [brick v]\nplay sound [Zoop v] until done\n\nwhen I receive [evil2 v]\nplay sound [Zoop v] until done\n\nwhen I receive [tiger2 v]\nplay sound [Zoop v] until done\n\nwhen I receive [brick2 v]\nplay sound [Zoop v] until done\n\nwhen I receive [realy v]\nplay sound [Zoop v] until done\n\nwhen I receive [er v]\nplay sound [Zoop v] until done\n\nwhen flag clicked\nforever\n    if <touching (300px-nsmbudxfiremario v)?> then\n        change [☁ coin v] by (1)\n        start sound [Coin v]\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        change [ghost v] effect by (1000)\n    else\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nforever\n    go to (level v)\nend\n\n@Postava11\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nwhen I receive [nova v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ coin v] by (1)\n        start sound [Coin v]\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        change [ghost v] effect by (25)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [nova v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nwhen flag clicked\nhide variable [☁ coin v]\nwait (1) seconds\nshow variable [☁ coin v]\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        change [ghost v] effect by (1000)\n    else\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\n\nwhen I receive [start v]\nwait until <(Start) = [1]>\nforever\n    go to (level v)\nend\n\n@Postava16\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        broadcast (Spike Shield v)\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nwhen this sprite clicked\nbroadcast (Basic v)\n\nwhen flag clicked\n\nswitch costume to (kostým1 v)\n\nif <[] = [0]> then\n\n@Postava15\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ TIGER) = [0]> then\n        if <<(☁ Coin) = [10]> or <(☁ Coin) > [10]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-10)\n            set [☁ tiger v] to [1]\n            broadcast (TIGER v)\n        end\n    end\nend\n\nnext costume\nwait (0.5) seconds\nnext costume\n\nbroadcast (hide3 v)\nbroadcast (hide4 v)\nbroadcast (hide5 v)\n\nwhen flag clicked\nswitch costume to (kostým1 v)\nhide\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nwhen this sprite clicked\n\nwhen this sprite clicked\n\nwhen I receive [tiger3 v]\nswitch costume to (kostým2 v)\n\nif <(costume [number v]) = [1]> then\n    set [☁ tiger v] to [1]\n    broadcast (TIGER v)\n    switch costume to (kostým2 v)\nend\n\nif <(costume [number v]) = [2]> then\n    broadcast (TIGER2 v)\nend\n\nswitch costume to (kostým1 v)\n\nwhen flag clicked\n\nwhen this sprite clicked\nif <(☁ TIGER) = [1]> then\n    broadcast (TIGER v)\nend\n\nset [☁ coin v] to [1000]\n\n@Postava17\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nwhen this sprite clicked\n\nif <(costume [number v]) = [1]> then\n    broadcast (Evil v)\n    switch costume to (kostým2 v)\nend\n\nwhen this sprite clicked\n\nif <(costume [number v]) = [2]> then\n    broadcast (Evil2 v)\nend\n\nswitch costume to (kostým1 v)\nhide\n\nwhen I receive [evil3 v]\n\nswitch costume to (kostým1 v)\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ EVIL) = [0]> then\n        if <<(☁ Coin) = [15]> or <(☁ Coin) > [15]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-15)\n            set [☁ evil v] to [1]\n            broadcast (Evil v)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(☁ EVIL) = [1]> then\n    broadcast (Evil v)\nend\n\n@Postava18\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nswitch costume to (kostým1 v)\nhide\n\nwhen this sprite clicked\n\nwhen this sprite clicked\nif <(☁ BRICK) = [1]> then\n    broadcast (BRICK v)\nend\n\nwhen I receive [brick3 v]\nswitch costume to (kostým2 v)\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ BRICK) = [0]> then\n        if <<(☁ Coin) = [20]> or <(☁ Coin) > [20]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-20)\n            set [☁ brick v] to [1]\n            broadcast (BRICK v)\n        end\n    end\nend\n\nif <(costume [number v]) = [1]> then\n    broadcast (BRICK v)\n    switch costume to (kostým2 v)\nend\n\nset [☁ tiger v] to [0]\n\nwhen this sprite clicked\nif <(☁ BRICK) = [1]> then\n    broadcast (BRICK v)\nend\n\nset [☁ coin v] to [100]\n\n@Coin2\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ coin v] by (1)\n        start sound [Coin v]\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        change [ghost v] effect by (25)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [nova v]\nshow\nnext costume\n\nnext costume\n\nwhen I receive [skip v]\nshow\nnext costume\n\nwhen flag clicked\nforever\n    if <key (w v) pressed?> then\n        play sound [Jump v] until done\n        wait (0.50) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        play sound [Jump v] until done\n        wait (0.50) seconds\n    end\nend\n\nwhen I receive [basic v]\nplay sound [Zoop v] until done\n\nwhen I receive [evil v]\nplay sound [Zoop v] until done\n\nwhen I receive [tiger v]\nplay sound [Zoop v] until done\n\nwhen I receive [brick v]\nplay sound [Zoop v] until done\n\nwhen I receive [evil2 v]\nplay sound [Zoop v] until done\n\nwhen I receive [tiger2 v]\nplay sound [Zoop v] until done\n\nwhen I receive [brick2 v]\nplay sound [Zoop v] until done\n\nwhen I receive [realy v]\nplay sound [Zoop v] until done\n\nwhen I receive [er v]\nplay sound [Zoop v] until done\n\nwhen flag clicked\nforever\n    if <touching (300px-nsmbudxfiremario v)?> then\n        change [☁ coin v] by (1)\n        start sound [Coin v]\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        change [ghost v] effect by (1000)\n    else\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\n\nforever\n    broadcast (Start v)\nend\n\nwhen I receive [start v]\nwait until <(Start) = [1]>\nforever\n    go to (level v)\nend\n\nwait until <(Start) = [1]>\n\n@Postava21\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        broadcast (Spike Shield v)\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nset size to (100) %\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ Really) = [0]> then\n        if <<(☁ Coin) = [30]> or <(☁ Coin) > [30]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-30)\n            set [☁ really v] to [1]\n            broadcast (Realy v)\n        end\n    end\nend\n\nset [☁ really v] to [0]\n\nwhen this sprite clicked\nif <(costume [number v]) = [2]> then\n    broadcast (Realy v)\nend\n\n@Shop\n\nwhen flag clicked\nset [shop v] to [0]\nhide\n\nwhen this sprite clicked\nhide\nset [shop v] to [0]\n\nwhen flag clicked\nset [shop v] to [0]\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen I receive [shop v]\n\nshow\n\n@Green Flag\n\nwhen flag clicked\nshow\nforever\n    go to (level v)\nend\n\nwait (1) seconds\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nwhen I receive [nova v]\nshow\nnext costume\n\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        hide\n        wait (10) seconds\n        show\n        wait (5) seconds\n    end\nend\n\nwhen I receive [skip v]\nshow\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        wait (1) seconds\n        broadcast (Skok v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [7]>> then\n        if <touching (_edge_ v)?> then\n            hide\n        else\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        show\n    end\nend\n\n@Level name\n\nwhen flag clicked\n\nwhen flag clicked\nswitch costume to (kostým2 v)\n\nwhen I receive [nova v]\nshow\nnext costume\n\nwhen flag clicked\nforever\n    if <(username) = [Edmund2008]> then\n        set [☁ coin v] to [0]\n    end\nend\n\nwhen I receive [skip v]\nshow\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        wait (1) seconds\n        broadcast (Skok v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\nwait until <(Start) = [1]>\n\nwhen I receive [start v]\nforever\n    go to (level v)\nend\n\n@Postava3\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nswitch costume to (kostým1 v)\nhide\n\nwhen this sprite clicked\n\nwhen I receive [brick3 v]\nswitch costume to (kostým2 v)\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ El) = [0]> then\n        if <<(☁ Coin) = [10]> or <(☁ Coin) > [10]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-10)\n            set [☁ el v] to [1]\n            broadcast (El1 v)\n        end\n    end\nend\n\nif <(costume [number v]) = [1]> then\n    broadcast (BRICK v)\n    switch costume to (kostým2 v)\nend\n\nset [☁ tiger v] to [0]\n\nwhen this sprite clicked\nif <(☁ BRICK) = [1]> then\n    broadcast (BRICK v)\nend\n\nwhen this sprite clicked\nif <(☁ El) = [1]> then\n    broadcast (El1 v)\nend\n\n@Postava2\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nswitch costume to (kostým1 v)\nhide\n\nwhen this sprite clicked\n\nwhen this sprite clicked\nif <(costume [number v]) = [2]> then\n    broadcast (Kid1 v)\nend\n\nwhen I receive [brick3 v]\nswitch costume to (kostým2 v)\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ Kid) = [0]> then\n        if <<(☁ Coin) = [20]> or <(☁ Coin) > [20]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-20)\n            set [☁ kid v] to [1]\n            broadcast (Kid1 v)\n        end\n    end\nend\n\nif <(costume [number v]) = [1]> then\n    broadcast (BRICK v)\n    switch costume to (kostým2 v)\nend\n\nset [☁ tiger v] to [0]\n\nwhen this sprite clicked\nif <(☁ BRICK) = [1]> then\n    broadcast (BRICK v)\nend\n\nwhen this sprite clicked\nif <(☁ Kid) = [1]> then\n    broadcast (Kid1 v)\nend\n\n@Thanks\n\nwhen I receive [thanks v]\nswitch costume to (costume2 v)\ngo to x: (-210) y: (50)\nshow\ngo to [front v] layer\nstart sound [pop v]\nrepeat (9)\n    change y by (-6)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-3)\nend\nwait (1) seconds\nrepeat (10)\n    change y by (6)\nend\nhide\n\nwhen I start as a clone\ngo to x: (0) y: (-50)\nshow\ngo to [front v] layer\nrepeat (12)\n    change y by (-9)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-1)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (50)\n        if <(costume [number v]) = [2]> then\n            if <mouse down?> then\n                set [costume v] to [2]\n                repeat (25)\n                    change y by (10)\n                end\n                hide\n                delete this clone\n            end\n        else\n            if <(costume [number v]) = [3]> then\n                if <mouse down?> then\n                    set [costume v] to [1]\n                    repeat (25)\n                        change y by (15)\n                    end\n                    hide\n                    delete this clone\n                end\n            end\n        end\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(Costume) > [0.99]> then\n        repeat (25)\n            change y by (15)\n        end\n        hide\n        delete this clone\n    end\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\nset [costume v] to [0.9]\n\nwhen I receive [begin v]\nset [costume v] to [0.9]\nwait (0.1) seconds\nset [costume v] to [0.9]\nwait (0.2) seconds\nset [costume v] to [0.9]\n\n@Love fave\n\nwhen flag clicked\nclear graphic effects\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (9) to (13)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [thanks v]\nset [ghost v] effect to (100)\n\n@Postava4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        hide\n        set [shop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Shop) = [1]> then\n        broadcast (Spike Shield v)\n        show\n    end\nend\n\nwhen flag clicked\nset [shop v] to [1]\n\nset size to (100) %\n\nwhen this sprite clicked\nif <(☁ 1.3) = [0]> then\n    if <(☁ Sandy) = [0]> then\n        if <<(☁ Coin) = [30]> or <(☁ Coin) > [30]>> then\n            switch costume to (kostým2 v)\n            change [☁ coin v] by (-30)\n            set [☁ sandy v] to [1]\n            broadcast (Sandy v)\n        end\n    end\nend\n\nset [☁ really v] to [0]\n\nwhen this sprite clicked\nif <(☁ Sandy) = [1]> then\n    broadcast (Sandy v)\nend\n\n@Shop Button\n\nwhen flag clicked\nset [shop v] to [0]\n\nwhen flag clicked\nset [shop v] to [0]\nshow\n\nwhen this sprite clicked\nset [shop v] to [1]\n\nwhen flag clicked\nforever\n    if <(Shop) = [2]> then\n        set [shop v] to [0]\n    end\nend\n\nwait (1) seconds\nhide\n\ngo to [back v] layer\n\n@Detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nbroadcast (Thanks v)\nset [faved___ v] to [1]\nset [loved__ v] to [1]\n\ngo to x: (0) y: (0)\nshow\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n
\n\n..........................Instructions.......................................\nMove with adw or arrow keys\nClick if you are on mobile\nGo touch the flag to get to the next level\nCollect coins - inserted into you using a cloud variable\nWith m on/off music\nOther music with n\nAnd with r restart level\nPress love and fave for skip levels\nEnjoy.....................................\nEverything save if you are a scratcher\nPlease like, comment and follow :)\n\n.........................Notes and Credits...............................\nThanks for Robotonom\nAnd cool music from TheFatRat, Vexendo, NCS\nThanks staraford james for detector\n\n#Platformer\n#Games\n#Factory\n#Scorling Platformers\n#Edmund2008\n