Om-Nom Stories || A Platformer!
@Stage\n\nwhen flag clicked\nforever\n    play sound [Alan Walker - Force v] until done\nend\n\n@Om-Nom Stories\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen [s v] key pressed\nif <not <(Level) = [13]>> then\n    broadcast (skip v)\n    wait (0.5) seconds\nend\n\n@Om-Nom\n\nwhen flag clicked\nhide\nset [level # v] to [1]\nshow\nset [appel v] to [0]\ngo to x: (-198) y: (68)\nset [my variable v] to [0]\nforever\n    change [my variable v] by (-1)\n    set [xv v] to ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) + ((xv) * (0.9)))\n    change x by (xv)\n    if <touching (ground v)?> then\n        change x by ((0) - (xv))\n        if <key (up arrow v) pressed?> then\n            set [my variable v] to [10]\n            set [xv v] to ((<key (left arrow v) pressed?> - <key (right arrow v) pressed?>) * (5))\n        end\n    end\n    change y by (my variable)\n    if <touching (ground v)?> then\n        change y by ((-1) - (my variable))\n        set [my variable v] to ((12) * <<key (up arrow v) pressed?> and <touching (ground v)?>>)\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <<(x position) > [224]> and <touching (_edge_ v)?>> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-198) y: (68)\nset [level # v] to [1]\nshow\nset [appel v] to [0]\nwait (0) seconds\ngo to x: (-212) y: (142)\nchange [my variable v] by (-1)\nset [xv v] to ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) + ((xv) * (0.9)))\nchange x by (xv)\nif <touching (ground v)?> then\n    change x by ((0) - (xv))\n    if <key (up arrow v) pressed?> then\n        set [my variable v] to [10]\n        set [xv v] to ((<key (left arrow v) pressed?> - <key (right arrow v) pressed?>) * (5))\n    end\nend\n\nchange y by (my variable)\nif <touching (ground v)?> then\n    change y by ((-1) - (my variable))\n    set [my variable v] to ((12) * <<key (up arrow v) pressed?> and <touching (ground v)?>>)\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-160]> then\n        broadcast (restart v)\n        switch costume to (sad om nom v)\n    end\nend\n\nwhen I receive [restart v]\nswitch costume to (om nom v)\ngo to x: (-198) y: (68)\nset [level # v] to [1]\nshow\nset [appel v] to [0]\nwait (0) seconds\ngo to x: (-212) y: (142)\nchange [my variable v] by (-1)\nset [xv v] to ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) + ((xv) * (0.9)))\nchange x by (xv)\nif <touching (ground v)?> then\n    change x by ((0) - (xv))\n    if <key (up arrow v) pressed?> then\n        set [my variable v] to [10]\n        set [xv v] to ((<key (left arrow v) pressed?> - <key (right arrow v) pressed?>) * (5))\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nswitch costume to (om nom v)\nforever\n    set [level v] to ([costume # v] of [ground v])\nend\n\nwhen I receive [skip v]\ngo to x: (-206) y: (78)\nset [level # v] to [1]\nshow\nset [appel v] to [0]\nwait (0) seconds\ngo to x: (-212) y: (142)\nchange [my variable v] by (-1)\nset [xv v] to ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) + ((xv) * (0.9)))\nchange x by (xv)\nif <touching (ground v)?> then\n    change x by ((0) - (xv))\n    if <key (up arrow v) pressed?> then\n        set [my variable v] to [10]\n        set [xv v] to ((<key (left arrow v) pressed?> - <key (right arrow v) pressed?>) * (5))\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (appel v)?> or <touching (appel2 v)?>> or <touching (appel3 v)?>> then\n        set volume to (200) %\n        start sound [Mouth Open v]\n    end\nend\n\nswitch costume to (mouth open v)\n\nwhen flag clicked\nforever\n    if <(distance to [appel v]) < [5]> then\n        switch costume to (mouth open v)\n    else\n        switch costume to (om nom v)\n        if <(distance to [appel2 v]) < [5]> then\n            switch costume to (mouth open v)\n        else\n            switch costume to (om nom v)\n            if <(distance to [appel3 v]) < [5]> then\n                switch costume to (mouth open v)\n            else\n                switch costume to (om nom v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (down arrow v) pressed?> then\n        switch costume to (om nom2 v)\n    else\n        switch costume to (om nom v)\n    end\nend\n\n@Appel\n\nwhen flag clicked\nhide\nwait (0) seconds\nshow\nforever\n    if <([costume # v] of [ground v]) = [1]> then\n        show\n        go to x: (-116) y: (-107)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [2]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [2]> then\n        show\n        go to x: (-126) y: (-103)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [3]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [3]> then\n        show\n        go to x: (-217) y: (-58)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [4]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (-126) y: (-65)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [5]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (-126) y: (-65)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [5]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [5]> then\n        show\n        go to x: (-218) y: (-57)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [6]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [6]> then\n        show\n        go to x: (-218) y: (-57)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [7]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [7]> then\n        show\n        go to x: (-121) y: (-12)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [8]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [8]> then\n        show\n        go to x: (-120) y: (35)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [9]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [9]> then\n        show\n        go to x: (-123) y: (80)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [10]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [10]> then\n        show\n        go to x: (-72) y: (-110)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [11]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [11]> then\n        show\n        go to x: (-3) y: (88)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [12]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [12]> then\n        show\n        go to x: (-120) y: (-12)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [13]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [13]> then\n        show\n        go to x: (-173) y: (-61)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            forever\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Appel2\n\nwhen flag clicked\nhide\nwait (0) seconds\nshow\nforever\n    if <([costume # v] of [ground v]) = [1]> then\n        show\n        go to x: (-8) y: (-109)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [2]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [2]> then\n        show\n        go to x: (73) y: (-114)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [3]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [3]> then\n        show\n        go to x: (-48) y: (-17)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [4]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (42) y: (-11)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [5]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (47) y: (-111)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [5]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [5]> then\n        show\n        go to x: (72) y: (-62)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [6]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [6]> then\n        show\n        go to x: (-50) y: (-110)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [7]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [7]> then\n        show\n        go to x: (-48) y: (-112)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [8]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [8]> then\n        show\n        go to x: (69) y: (-110)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [9]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [9]> then\n        show\n        go to x: (23) y: (36)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [10]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [10]> then\n        show\n        go to x: (166) y: (-65)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [11]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [11]> then\n        show\n        go to x: (24) y: (-110)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [12]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [12]> then\n        show\n        go to x: (27) y: (-111)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [13]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [13]> then\n        show\n        go to x: (-117) y: (-62)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            forever\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Appel3\n\nwhen flag clicked\nhide\nwait (0) seconds\nshow\nforever\n    if <([costume # v] of [ground v]) = [1]> then\n        show\n        go to x: (85) y: (-107)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [2]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [2]> then\n        show\n        go to x: (204) y: (-61)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [3]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [3]> then\n        show\n        go to x: (168) y: (-58)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [4]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (202) y: (-63)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [5]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [4]> then\n        show\n        go to x: (201) y: (-59)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [5]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [5]> then\n        show\n        go to x: (209) y: (86)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [6]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [6]> then\n        show\n        go to x: (137) y: (-56)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [7]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [7]> then\n        show\n        go to x: (196) y: (35)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [8]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [8]> then\n        show\n        go to x: (223) y: (34)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [9]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [9]> then\n        show\n        go to x: (218) y: (-12)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [10]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [10]> then\n        show\n        go to x: (214) y: (-15)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [11]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [11]> then\n        show\n        go to x: (171) y: (-115)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [12]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [12]> then\n        show\n        go to x: (215) y: (33)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            hide\n            wait until <([costume # v] of [ground v]) = [13]>\n        end\n    end\n    if <([costume # v] of [ground v]) = [13]> then\n        show\n        go to x: (-67) y: (-64)\n        if <touching (om-nom v)?> then\n            start sound [crunch v]\n            forever\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Ground\n\nwhen flag clicked\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\nhide\nwait (0) seconds\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\n@Level\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [time v]\nhide variable [level v]\ngo to x: (294) y: (67)\nhide\nwait (0.6) seconds\nshow\nshow variable [level v]\nforever\n    change [time v] by (1)\n    wait (1) seconds\n    if <([costume # v] of [ground v]) = [13]> then\n        forever\n            set [time v] to (Time)\n        end\n    end\nend\n\n@Love Favorite Follow\n\nwhen flag clicked\nhide\nwait (0) seconds\nforever\n    wait (pick random (20) to (23)) seconds\n    show\n    go to x: (-120) y: (-3)\n    repeat (9)\n        change y by (-1)\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\nend\n\n@Light\n\nwhen flag clicked\nforever\n    Fix\nend\n\ndefine Fix\ngo to (om-nom v)\ngo to [back v] layer\nshow\nif <touching (om-nom v)?> then\n    set [ghost v] effect to (0)\nelse\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nwait (0) seconds\nforever\n    set size to (50) %\n    repeat (10)\n        change size by (1)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change size by (-1)\n    end\nend\n\n@LOL\n\nwhen flag clicked\ngo to x: (36) y: (28)\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n
You are Om-Nom now.\n\nYou should end this platformer!\n\nI hope you will like it.\n\nArrow keys to move!\n\nand Love this project! NOW!!!\n\n" Om-Nom || Save the Family " is coming soon... :)