Duck Life (Platformer)  #Games #Trending
@Stage\n\nwhen flag clicked\nbroadcast (game v)\n\nwhen I receive [startgame v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [game v]\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Snake Runner \(Soundtrack\).mp3 v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [timer v] by (1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nhide\n\nwhen I receive [game v]\nshow\nswitch costume to (costume1 v)\nforever\n    wait (1) seconds\n    next costume\nend\n\nwhen flag clicked\nset [timer v] to [0]\n\n@backdrop1\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game v]\nshow\ngo to x: (-6) y: (4)\nforever\n    glide (1) secs to x: (-6) y: (-14)\n    glide (1) secs to x: (-6) y: (4)\nend\n\n@Sprite2\n\nwhen I receive [startgame v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [game v]\nshow\ngo to x: (0) y: (-121)\nforever\n    glide (1) secs to x: (0) y: (-131)\n    glide (1) secs to x: (0) y: (-121)\nend\n\nwhen this sprite clicked\nbroadcast (startgame v)\n\nwhen I receive [game v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume3 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\n@Duck\n\nwhen flag clicked\nhide\nset size to (75) %\n\nwhen I receive [startgame v]\ngo to x: (-220) y: (128)\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <touching color (#99ffff)?> then\n        if <(y) > [-1]> then\n            change [y v] by (-1)\n        end\n        if <(y) < [-1]> then\n            set [y v] to [-1]\n        end\n    else\n        change [y v] by (-0.5)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        if <touching color (#99ffff)?> then\n            set [x v] to [-1]\n        else\n            change [x v] by (-1)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        if <touching color (#99ffff)?> then\n            set [x v] to [1]\n        else\n            change [x v] by (1)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n        change y by (1)\n        if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n            change y by (1)\n            if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n                change y by (1)\n                if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n                    change y by (1)\n                    if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n                        change y by (1)\n                        if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n                            change y by (1)\n                            if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n                                change y by (-6)\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\n    if <<<touching color (#009933)?> or <touching color (#cc7700)?>> and <touching color (#00ffff)?>> then\n        if <key (up arrow v) pressed?> then\n            change y by (-6)\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    if <<<touching color (#009933)?> or <touching color (#cc7700)?>> and <not <touching color (#00ffff)?>>> then\n        change y by (1)\n        if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n            change y by (1)\n            if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n                change y by (1)\n                if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n                    change y by (1)\n                    if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n                        change y by (1)\n                        if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n                            change y by (1)\n                            if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [4]\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\n    end\n    change y by (y)\n    if <<touching color (#995900)?> or <touching color (#663b00)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <<touching color (#009933)?> or <touching color (#cc7700)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<<touching color (#995900)?> or <touching color (#663b00)?>> or <<touching color (#99ffff)?> or <<touching color (#009933)?> or <touching color (#cc7700)?>>>> and <key (up arrow v) pressed?>> then\n        set [y v] to [7]\n    end\n    change y by (0.5)\n    if <touching color (#ff0000)?> then\n        broadcast (death v)\n    end\n    if <(y position) < [-170]> then\n        broadcast (death v)\n    end\n    if <touching color (#006666)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen I receive [death v]\ngo to x: (-220) y: (140)\nstart sound [duck v]\n\nwhen I receive [startgame v]\nforever\n    if <(x position) > [234]> then\n        broadcast (nextlevel v)\n        go to x: (-220) y: (140)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (down arrow v) pressed?> then\n        repeat until <(size) = [50]>\n            change size by (-5)\n        end\n    else\n        repeat until <(size) = [75]>\n            change size by (5)\n        end\n    end\nend\n\nwhen I receive [startgame v]\nforever\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <key (up arrow v) pressed?>> then\n        switch costume to (duck v)\n        wait (0.1) seconds\n        switch costume to (duck2 v)\n        wait (0.1) seconds\n        switch costume to (duck3 v)\n        wait (0.1) seconds\n    else\n        switch costume to (duck4 v)\n    end\nend\n\nwhen [a v] key pressed\nforever\n    change [color v] effect by (5)\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [3]> then\n        switch costume to (costume3 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [4]> then\n        switch costume to (costume4 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [5]> then\n        switch costume to (costume5 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [6]> then\n        switch costume to (costume6 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [7]> then\n        switch costume to (costume7 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [8]> then\n        switch costume to (costume8 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [9]> then\n        switch costume to (costume9 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [10]> then\n        switch costume to (costume10 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [11]> then\n        switch costume to (costume11 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [12]> then\n        switch costume to (costume12 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [13]> then\n        switch costume to (costume13 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [14]> then\n        switch costume to (costume15 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [15]> then\n        switch costume to (costume16 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [16]> then\n        switch costume to (costume17 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [17]> then\n        switch costume to (costume18 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [18]> then\n        switch costume to (costume19 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [19]> then\n        switch costume to (costume20 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [20]> then\n        switch costume to (costume21 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [21]> then\n        switch costume to (costume22 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [22]> then\n        switch costume to (costume23 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [23]> then\n        switch costume to (costume24 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [24]> then\n        switch costume to (costume25 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [25]> then\n        switch costume to (costume26 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [26]> then\n        switch costume to (costume27 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [27]> then\n        switch costume to (costume28 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [28]> then\n        switch costume to (costume29 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [29]> then\n        switch costume to (costume30 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset size to (100) %\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [30]> then\n        switch costume to (costume31 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [31]> then\n        switch costume to (costume32 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [32]> then\n        switch costume to (costume33 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [33]> then\n        switch costume to (costume34 v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [nextlevel v]\nforever\n    if <(Level) = [34]> then\n        switch costume to (costume35 v)\n    else\n        stop [this script v]\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
Arrow Keys To Move\nMy record is 122 seconds\nhttps://scratch.mit.edu/projects/845433214/\n\nCheck out my friends game! \nhttps://scratch.mit.edu/projects/904280528/\n