QUESTS 1 - Potion - A Platformer #games
@Stage\n\n@Player\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(x position) = [240]> then\n        broadcast (NEXT v)\n        go to x: (-213) y: (-61)\n    end\nend\n\nwhen I receive [tell v]\nhide\n\nwhen I receive [u-n v]\nshow\ngo to x: (-213) y: (-61)\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <key (down arrow v) pressed?> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\nnext backdrop\n\nwhen flag clicked\ngo to x: (-213) y: (-61)\nset [yvel v] to [0]\nforever\n    change [yvel v] by (-1)\n    change y by (Yvel)\n    if <touching (ground v)?> then\n        change y by ((Yvel) * (-1))\n        set [yvel v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (ground v)?>> then\n        set [yvel v] to [12]\n    end\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((Xvel) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xvel) > [0]> then\n                                    set [xvel v] to [-5]\n                                else\n                                    set [xvel v] to [5]\n                                end\n                            else\n                                set [xvel v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (1 v)\n        change [xvel v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (2 v)\n        change [xvel v] by (1)\n    end\n    set [xvel v] to ((Xvel) * (0.9))\n    change x by (Xvel)\nend\n\nwhen flag clicked\nforever\n    if <touching (spike v)?> then\n        go to x: (-213) y: (-61)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        change [level v] by (1)\n        broadcast (NEXT v)\n        go to x: (-213) y: (-61)\n    end\nend\n\nwhen I receive [2nd v]\nshow\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide variable [level v]\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd v]\nshow\n\n@Words\n\nwhen flag clicked\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd v]\nshow\n\n@Spike\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (15) y: (22)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nif <(costume [number v]) = [9]> then\n    forever\n        glide (1) secs to x: (90) y: (22)\n        glide (1) secs to x: (28) y: (20)\n    end\nend\n\nwhen flag clicked\nif <(Level) = [9]> then\n    forever\n        glide (1) secs to x: (90) y: (22)\n        glide (1) secs to x: (28) y: (20)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd v]\nshow\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd v]\nshow\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(Love) = [1]> and <(Favorite) = [1]>>> then\n        wait (pick random (30) to (40)) 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\n@Thumbnail\n\nwhen flag clicked\nhide\nbroadcast (2nd v)\n\n
My Latest platformer!\nTHIS IS THE FIRST PART OF THE QUESTS SERIES!\nUp arrow to jump\nLeft arrow to move left\nRight arrow to move right\n#All #Games #Fun #Open #Trending