game platformer with a SWORD by kkey313      #original #platformer #game  
@Stage\n\nwhen flag clicked\nswitch backdrop to (intro backdrop v)\n\nwhen I receive [start v]\nswitch backdrop to (main backdrop v)\n\nwhen I receive [cave time! v]\nswitch backdrop to (cave backdrop v)\n\nwhen I receive [end of cave! v]\nswitch backdrop to (main backdrop v)\n\n@player\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (-5)\nend\ndelete this clone\n\nwhen I receive [start v]\ngo to x: (-200) y: (-100)\nset size to (80) %\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [10]>>> then\n        change [xv v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-10]>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-1))\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [12]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [12]\n        end\n    end\n    if <touching (trampoline! v)?> then\n        set [yv v] to [20]\n    end\n    change y by (1)\n    if <key (r v) pressed?> then\n        reset\n    end\n    if <<(y position) < [-177]> or <touching (spikes v)?>> then\n        start sound [Death v]\n        reset\n    end\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        broadcast (Next level! v)\n        reset\n    end\nend\n\ndefine reset\ngo to x: (-200) y: (-100)\n\n@Platform\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [14]> then\n        broadcast (Cave Time! v)\n    end\n    if <(level) = [19]> then\n        broadcast (End of cave! v)\n    end\nend\n\n@Spikes\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nforever\n    play sound [Tobu - Infectious \(Original Mix\).mp3 v] until done\nend\n\n@trampoline!\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <touching (player v)?> then\n        switch costume to (1 v)\n        repeat (3)\n            next costume\n            wait (0.001) seconds\n        end\n        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.001) seconds\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(level) < [9]> then\n        hide\n    else\n        if <(level) = [9]> then\n            show\n            go to x: (-91) y: (-104)\n        else\n            if <(level) = [10]> then\n                show\n                go to x: (-91) y: (-104)\n                create clone of (_myself_ v)\n                go to x: (47) y: (-104)\n                create clone of (_myself_ v)\n                go to x: (195) y: (-103)\n            else\n                if <(level) = [11]> then\n                    hide\n                else\n                    if <(level) = [19]> then\n                        go to x: (-95) y: (-100)\n                        show\n                        wait until <not <(level) = [19]>>\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [next level! v]\ndelete this clone\n\n@clouds\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (40) to (75))\ngo to x: (-242) y: (pick random (28) to (-259))\nforever\n    repeat until <(x position) > [171]>\n        move (pick random (2) to (7)) steps\n    end\n    delete this clone\nend\n\nwhen I receive [start v]\nhide\nforever\n    wait (pick random (0.4) to (1.8)) seconds\n    create clone of (_myself_ v)\n    if <(level) = [14]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [cave time! v]\nhide\ndelete this clone\n\nwhen I receive [end of cave! v]\nforever\n    wait (pick random (0.4) to (1.8)) seconds\n    create clone of (_myself_ v)\nend\n\n@Particles\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (230) y: (pick random (230) to (-230))\nset [brightness v] effect to (pick random (-5) to (5))\nset [ghost v] effect to (pick random (50) to (75))\nshow\nrepeat until <(x position) < [-230]>\n    go to [back v] layer\n    move (-7.5) steps\nend\ndelete this clone\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.01) to (0.05)) seconds\n    if <(level) = [14]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [cave time! v]\nhide\ndelete this clone\n\n@intro(1)\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\npoint in direction (90)\nwait (.5) seconds\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nset [jiggle v] to [0]\nwait (1) seconds\nrepeat (125)\n    set y to ((([cos v] of ((Effect) * (2)) ) * (10)) + (25))\n    point in direction ((90) + (([cos v] of (Effect) ) * (3)))\n    change [effect v] by (11)\nend\npoint in direction (90)\nbroadcast (swoosh v)\nhide\n\nwhen flag clicked\nstart sound [FR Xenogenesis v]\n\n@Intro(2)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume17 v)\nclear graphic effects\nhide\n\nwhen I receive [swoosh v]\nshow\nstart sound [Whoosh sound effect v]\nrepeat until <(costume [number v]) = [17]>\n    next costume\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (start v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <<(level) = [18]> or <(level) = [13]>> then\n        go to x: (0) y: (0)\n        show\n        go [forward v] (20) layers\n        wait until <not <<(level) = [13]> or <(level) = [18]>>>\n        hide\n    end\nend\n\n@Light\n\nwhen flag clicked\nhide\nset size to (100) %\nset [ghost v] effect to (50)\nforever\n    broadcast (go v)\nend\n\nwhen I receive [go v]\ngo to (player v)\n\nwhen I receive [cave time! v]\nshow\ngo [backward v] (100) layers\nswitch costume to (costume2 v)\nforever\n    wait (pick random (0.5) to (3)) seconds\n    repeat (10)\n        change [ghost v] effect by (1)\n    end\n    repeat (10)\n        change [ghost v] effect by (-1)\n    end\n    set [ghost v] effect to (50)\nend\n\nwhen I receive [end of cave! v]\nhide\n\n
Arrow keys/WASD keys to move\nTry not to touch Lava!\nIt might not work because itz really laggy\n\nIf there is any laggs, glitches or bugs. Tell me in the comments\n\nUpdates:\n\n-There is more levels.\n-Fixed most bugs,glitches and lags ( Only first level will glitch )\n-High Score will change every month ( 38 )\n