platformer talha xxl
@Stage\n\nwhen flag clicked\nswitch backdrop to (platform v)\n\nwhen flag clicked\nswitch backdrop to (dekor3 v)\n\n@-Pixel-\n\nwhen flag clicked\nforever\n    play sound [Vexento - Pixel Party v] until done\nend\n\nwhen I receive [return v]\nswitch costume to (costume1 v)\ngo to x: (-200) y: (-45)\n\nwhen flag clicked\nset [xvel v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-200) y: (-45)\nwait (1.5) seconds\nPhysics\n\ndefine out\nif <(Xvel) > [0]> then\n    repeat until <not <touching color (#000000)?>>\n        change x by (-1)\n    end\nelse\n    if <(Xvel) < [0]> then\n        repeat until <not <touching color (#000000)?>>\n            change x by (1)\n        end\n    end\nend\n\ndefine Wall detection\nchange y by (-5)\nchange x by ((Xvel) * (-1.7))\nif <([abs v] of (Xvel) ) > [.2]> then\n    if <(Xvel) > [0]> then\n        set [xvel v] to [-6]\n    else\n        set [xvel v] to [6]\n    end\n    set [yvel v] to [14]\nelse\n    if <(Xvel) < [-.2]> then\n        set [yvel v] to [-3]\n        set [xvel v] to [0]\n    end\nend\n\n\n\nthink [Hmm...] for (2) seconds\n\nwhen flag clicked\nforever\n    if <touching (kukla1 v)?> then\n        broadcast (return v)\n    end\nend\n\ndefine Physics\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (return v)\n    end\n    if <(x position) > [235]> then\n        broadcast (return v)\n        next backdrop\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <not <touching color (#000000)?>> then\n        change y by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [xvel v] by (1)\n        set [state v] to [1]\n        if <(Xvel) > [5]> then\n            set [xvel v] to [5]\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [xvel v] by (-1)\n        set [state v] to [1]\n        if <(Xvel) < [-5]> then\n            set [xvel v] to [-5]\n        end\n    end\n    if <([abs v] of (Xvel) ) > [.1]> then\n        change x by ((Xvel) * (1))\n    end\n    if <(Xvel) > [0]> then\n        change [xvel v] by (-0.1)\n    else\n        if <(Xvel) < [0]> then\n            change [xvel v] by (0.1)\n        end\n    end\n    change [yvel v] by (-1)\n    change y by (Yvel)\n    if <touching color (#000000)?> then\n        change y by ((0) - (Yvel))\n        set [yvel v] to [1]\n    end\n    if <touching color (#000000)?> then\n        if <<key (space v) pressed?> or <key (up arrow v) pressed?>> then\n            change [yvel v] by (15)\n        end\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            Wall detection\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nchange size by (-25)\n\n
iyi oyunlaar\n