Lost - A Platformer  #Games #All

Instructions: Use arrow keys or WAD!\n\nDon't touch lava spikes and other dangers.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ncomment: gimme Ice Cream

@Stage\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nset volume to (80) %\nforever\n    play sound [NDT 1 v] until done\nend\n\n@Player\n\nwhen flag clicked\nset [go v] to [0]\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    repeat until <(Go) = [1]>\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [xv v] by (.8)\n            point in direction (90)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [xv v] by (-0.8)\n            point in direction (-90)\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                                change y by (-5)\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?>> then\n                set [yv v] to [13]\n            end\n        end\n        if <[228] < (x position)> then\n            set [xv v] to [0]\n            set [xv v] to [0]\n            go to x: (-219) y: (-86)\n            point in direction (90)\n            change [level v] by (1)\n        end\n        if <<touching (dangers v)?> or <touching (damage2 v)?>> then\n            broadcast (ded v)\n            repeat (5)\n                broadcast (ded v)\n                change [ghost v] effect by (20)\n                broadcast (ded v)\n                change size by (-6)\n            end\n            broadcast (ded v)\n            start sound [ouch v]\n            broadcast (ded v)\n            set [xv v] to [0]\n            broadcast (ded v)\n            set [xv v] to [0]\n            broadcast (ded v)\n            set [ghost v] effect to (0)\n            broadcast (ded v)\n            go to x: (-219) y: (-86)\n            broadcast (ded v)\n            set size to (30) %\n            broadcast (ded v)\n        end\n        if <(Level) = [14]> then\n            change [level v] by (1)\n            broadcast (END  v)\n        end\n        change y by (1)\n        hide variable [yv v]\n        hide variable [xv v]\n        if <touching (tramps v)?> then\n            set [yv v] to [17]\n        end\n    end\nend\n\nwhen I receive [end  v]\nhide\n\nwhen I receive [start v]\nwait (0.000001) seconds\ngo to x: (-213) y: (-77)\n\nwhen flag clicked\nrepeat (2)\n    go to [front v] layer\n    hide\nend\n\nwhen I receive [start v]\nshow\ngo to x: (-219) y: (-86)\n\nwhen flag clicked\n\nbroadcast (START v)\n\nwhen I receive [the part v]\nwait (1) seconds\nglide (2) secs to x: (-50) y: (-100)\nsay [Your the person that stole my parents?!] for (2) seconds\nwait (3.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [12]> then\n        broadcast (The Part v)\n        set [go v] to [1]\n        go to x: (-213) y: (-100)\n        \n    end\nend\n\nchange [xv v] by (.5)\n\nwhen flag clicked\nset [size v] to [100]\nswitch costume to (player v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (clone v)\nset [ghost v] effect to (0)\nrepeat (12)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen flag clicked\nset size to (30) %\nforever\n    if <(y position) = [-181]> then\n        broadcast (ded v)\n        repeat (5)\n            broadcast (ded v)\n            change [ghost v] effect by (20)\n            broadcast (ded v)\n            change size by (-6)\n        end\n        broadcast (ded v)\n        start sound [ouch v]\n        broadcast (ded v)\n        set [xv v] to [0]\n        broadcast (ded v)\n        set [xv v] to [0]\n        broadcast (ded v)\n        set [ghost v] effect to (0)\n        broadcast (ded v)\n        go to x: (-219) y: (-86)\n        broadcast (ded v)\n        set size to (30) %\n        broadcast (ded v)\n    end\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    change [color v] effect by (10)\nend\n\nwhen I receive [ded v]\ndelete this clone\n\nwhen flag clicked\n\n@Platform\n\nwhen flag clicked\nhide\nset [level v] to [2]\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end  v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nwait (0.2) seconds\nforever\n    go to [front v] layer\nend\n\n@Dangers\n\nhide\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end  v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\nset [level v] to [1]\nwait (0.1) seconds\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\nend\n\n@Text\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [end  v]\nhide\n\nwhen flag clicked\nwait (1) seconds\ngo to [front v] layer\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [12]> then\n        hide\n        wait (9) seconds\n        forever\n            switch costume to (costume1 v)\n            show\n        end\n    end\nend\n\nset [level v] to [11]\n\n@BG\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [end  v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nwait (0.0001) seconds\ngo to [back v] layer\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nswitch costume to (1 v)\nwait (.4) seconds\nrepeat (4)\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    wait (3) seconds\n    set [ghost v] effect to (100)\n    next costume\nend\nwait (1) seconds\nbroadcast (START v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Tramps\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Sprite2\n\nwhen I receive [the part v]\nset size to (30) %\nshow\ngo to x: (220) y: (-100)\nwait (.5) seconds\nglide (1.5) secs to x: (50) y: (-100)\nwait (4.5) seconds\nsay [Maybe...] for (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\n\nset [level v] to [11]\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (12)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\n@TN\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nturn left (15) degrees\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (3) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset y to (pick random (28) to (60))\nshow\nrepeat (130)\n    change x by (-5)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n