Volcano platformer  #platformer #all #games   
@Stage\n\nwhen flag clicked\nswitch backdrop to (фон 1 v)\n\nwhen I receive [lol v]\nswitch backdrop to (kartinki-vulkany-39 v)\n\nwhen I receive [сидим в болоте v]\nswitch backdrop to (a84639ad23c246bba63f946e96cfe444 v)\n\nwhen I receive [lol v]\nforever\n    if <(Level) = [17]> then\n        switch backdrop to (a84639ad23c246bba63f946e96cfe444 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Automation.mp3 v] until done\nend\n\n@Спрайт 2\n\nif <(answer) = [0]> then\n\nwhen I start as a clone\nclear graphic effects\nrepeat (5)\n    change [ghost v] effect by (10)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Restart v)\n\nwhen I receive [restart v]\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (-214) y: (125)\n\nwhen flag clicked\nhide\n\nwhen I receive [lol v]\nshow\nbroadcast (Restart v)\nset [level v] to [1]\nforever\n    if <key (left arrow v) pressed?> then\n        change [x vel v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x vel v] by (1)\n    end\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\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 vel) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(x vel) > [0]> then\n                set [x vel v] to [-10]\n            else\n                set [x vel v] to [10]\n            end\n            set [y vel v] to [15]\n        else\n            set [x vel v] to [0]\n        end\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching (level v)?> then\n        change y by ((y vel) - ((y vel) * (2)))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y vel v] to [15]\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (sprite3 v)?> then\n        broadcast (Restart v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(username) = [geo___]>> then\n        if <<touching (жидкости v)?> or <touching color (#ff0000)?>> then\n            broadcast (Restart v)\n        end\n        if <<touching (препятствия v)?> or <touching color (#844d00)?>> then\n            broadcast (Restart v)\n        end\n    end\n    if <(username) = [geo___]> then\n        if <key (1 v) pressed?> then\n            broadcast (Restart v)\n        end\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nif <(username) = [geo___]> then\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        if <(username) = [geo___]> then\n            ask [Как все или нет?] and wait\n            if <(answer) = [2]> then\n                forever\n                    if <<touching (жидкости v)?> or <touching color (#ff0000)?>> then\n                        broadcast (Restart v)\n                    end\n                    if <<touching (препятствия v)?> or <touching color (#844d00)?>> then\n                        broadcast (Restart v)\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Спрайт 1\n\nwhen I receive [message1 v]\nset size to (10) %\nshow\nrepeat (10)\n    change size by (10)\nend\nwait (7) seconds\nrepeat (10)\n    change [ghost v] effect by (25)\n    wait (0.05) seconds\nend\nbroadcast (lol v)\nhide\n\nwhen flag clicked\nset [color v] effect to (0)\npoint in direction (90)\ngo to x: (0) y: (0)\nhide\n\n@Спрайт 3\n\nwhen flag clicked\nshow\npoint in direction (90)\nset size to (100) %\ngo to x: (0) y: (0)\nrepeat (5)\n    change size by (-10)\n    wait (0.05) seconds\nend\nrepeat (5)\n    change size by (10)\n    wait (0.05) seconds\nend\nrepeat (5)\n    change size by (10)\n    wait (0.05) seconds\nend\nrepeat (5)\n    change size by (-10)\n    wait (0.05) seconds\nend\nrepeat (10)\n    turn right (15) degrees\n    change size by (-10)\n    wait (0.05) seconds\nend\nbroadcast (message1 v)\nhide\n\n@Level\n\nif <(username) = [geo___]> then\n    ask [Как все или нет?] and wait\n    if <(answer) = [2]> then\n    if <(answer) = [0]> then\nend\n\nwhen flag clicked\nswitch costume to (костюм 1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [lol v]\nshow\n\nforever\n    switch costume to (Level)\n    if <(costume [number v]) = [1]> then\n        set [level v] to [1]\n    end\nend\n\nwhen I receive [lol v]\n\nforever\n    if <(costume [number v]) = [17]> then\n        broadcast (сидим в болоте v) and wait\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Жидкости\n\nwhen I receive [lol v]\nshow\n\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nswitch costume to (костюм 1 v)\nhide\ngo to x: (-1) y: (1)\n\nwhen I receive [lol v]\ngo to [back v] layer\nforever\n    if <(Level) = [2]> then\n        show\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Спрайт 5\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@Препятствия\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (костюм 1 v)\nhide\n\nwhen I receive [lol v]\ngo to [back v] layer\nshow\n\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Спрайт 7\n\nwhen flag clicked\nhide\n\n@Спрайт 8\n\nwhen flag clicked\nhide\n\n@Спрайт 9\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [lol v]\nforever\n    switch costume to (Level)\n    if <(costume [number v]) = [1]> then\n        set [level v] to [1]\n    end\nend\n\n@Спрайт 4\n\nwhen flag clicked\nforever\n    forever\n        forever\n            forever\n                forever\n                    forever\n                        forever\n                            forever\n                                forever\n                                    forever\n                                        forever\n                                            forever\n                                                forever\n                                                    forever\n                                                        forever\n                                                            forever\n                                                                hide\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ngo to x: (-18) y: (18)\nshow\n\n
Мой первый платформер.\n1 звезда + 1 сердечко = новый уровень