BLOCKY- Platformer 


@Stage\n\n@player\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nset rotation style [left-right v]\ngo to x: (-209) y: (-85)\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (levels v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>>> then\n        set [y v] to [10]\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change y by (-6)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (cenário1 v)\nforever\n    if <touching (lava v)?> then\n        go to x: (-209) y: (-85)\n    end\n    if <touching (spike v)?> then\n        go to x: (-209) y: (-85)\n    end\n    if <(x position) > [249]> then\n        next backdrop\n        go to x: (-209) y: (-85)\n    end\n    if <touching (spike v)?> then\n        go to x: (-209) y: (-85)\n    end\n    if <touching (enemy v)?> then\n        go to x: (-209) y: (-85)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Monody+-+Loop v] until done\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\n@levels\n\nwhen flag clicked\nforever\n    switch costume to ([backdrop # v] of [_stage_ v])\nend\n\nwhen flag clicked\nforever\n    switch costume to ([backdrop # v] of [_stage_ v])\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@lava\n\n@spike\n\nwhen flag clicked\nforever\n    switch costume to ([backdrop # v] of [_stage_ v])\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@enemy\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-67) y: (22)\npoint in direction (90)\nforever\n    move (1.5) steps\n    if <touching (detector 1 v)?> then\n        point in direction (-90)\n    end\n    if <touching (detector 2 v)?> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\nwait (1) seconds\nforever\n    go to [front v] layer\nend\n\nwhen backdrop switches to [cenário2 v]\ngo to x: (172) y: (-112)\n\nwhen backdrop switches to [cenário3 v]\ngo to x: (-124) y: (39)\n\n@detector 1\n\nwhen flag clicked\nswitch costume to (fantasia1 v)\ngo to x: (36) y: (28)\n\nwhen backdrop switches to [cenário2 v]\nswitch costume to (fantasia2 v)\n\nwhen backdrop switches to [cenário3 v]\nswitch costume to (fantasia3 v)\n\n@detector 2\n\nwhen flag clicked\nswitch costume to (fantasia1 v)\ngo to x: (36) y: (28)\n\nwhen backdrop switches to [cenário2 v]\nswitch costume to (fantasia2 v)\n\nwhen backdrop switches to [cenário3 v]\nswitch costume to (fantasia3 v)\n\n@BYE\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [cenário4 v]\nshow\nforever\n    go to [front v] layer\nend\n\n@thumb\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    change [ghost v] effect by (1000)\nend\n\n@diamond\n\nwhen flag clicked\nshow\ngo to x: (67) y: (46)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [cenário2 v]\nshow\ngo to x: (84) y: (54)\n\nwhen backdrop switches to [cenário3 v]\nshow\ngo to x: (-92) y: (72)\n\nwhen flag clicked\nset [diamonds v] to [0]\nforever\n    if <touching (player v)?> then\n        hide\n        broadcast (d v)\n    end\nend\n\n@Ator1\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (fantasia0 v)\nwait (1) seconds\nforever\n    go to [back v] layer\nend\n\nwhen I receive [d v]\nnext costume\n\nwhen flag clicked\nshow\n\n