Lost - A Platformer  #Games #All
@Stage\n\n@ground\n\nwhen flag clicked\nset [lvl v] to [0]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [nxt level v]\nswitch costume to (costume2 v)\n\nwhen I receive [nxt lvl v]\nswitch costume to (costume3 v)\n\nwhen I receive [nl v]\nswitch costume to (costume4 v)\n\nwhen I receive [ded v]\nif <(touch) = [yes]> then\n    set [lvl v] to [1]\nelse\n    set [lvl v] to [0]\nend\n\nwhen I receive [nxt level v]\nswitch costume to (costume2 v)\n\nwhen I receive [nxt leevel v]\nswitch costume to (costume5 v)\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nswitch costume to (costume6 v)\n\nnext costume\n\nwhen flag clicked\nforever\n    play sound [grasslands v] until done\nend\n\ngo to [front v] layer\n\nwhen I receive [ooh v]\nswitch costume to (costume7 v)\n\n@player\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (play v)\nset size to (50) %\nset rotation style [left-right v]\npoint in direction (90)\nforever\n    go to (hitbox v)\nend\n\nset [ground costume v] to [1]\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (thing v)\nset [ghost v] effect to (0)\nrepeat (5)\n    change [ghost v] effect by (20)\n    change size by (-3)\nend\ndelete this clone\n\ngo to x: (-173) y: (-104)\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        switch costume to (sword v)\n        wait (0.01) seconds\n        switch costume to (sword2 v)\n        wait (0.01) seconds\n        switch costume to (sword3 v)\n        wait (0.01) seconds\n        switch costume to (sword4 v)\n        wait (0.01) seconds\n        switch costume to (sword5 v)\n        wait (0.01) seconds\n        switch costume to (sword6 v)\n        wait (0.01) seconds\n        switch costume to (sword7 v)\n        wait (0.01) seconds\n        switch costume to (sword8 v)\n        wait (0.01) seconds\n        switch costume to (sword9 v)\n        wait (0.01) seconds\n        switch costume to (sword10 v)\n        wait (0.01) seconds\n        wait until <not <key (s v) pressed?>>\n    end\nend\n\nwhen flag clicked\nset [nuh v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        play sound [Rip v] until done\n        wait until <not <key (s v) pressed?>>\n    end\nend\n\nwhen I receive [sword? v]\nif <<(costume [name v]) = [sword5]> or <<(costume [number v]) = [sword6]> or <(costume [number v]) = [sword7]>>> then\n    broadcast (sword v)\nend\n\nwhen [timer v] > (0.01)\n\nhide\n\nwhen [timer v] > (timer)\n\nwhen I receive [s2 v]\nif <<(costume [name v]) = [sword5]> or <<(costume [number v]) = [sword6]> or <(costume [number v]) = [sword7]>>> then\n    broadcast (s2a v)\nend\n\nwhen I receive [yes v]\nrepeat until <(nuh) = [y]>\n    change [color v] effect by (25)\n    wait (1) seconds\nend\n\nwhen I receive [nuh v]\nset [nuh v] to [y]\nclear graphic effects\n\n@sun\n\nwhen flag clicked\ngo to x: (142) y: (104)\ngo to [back v] layer\n\n@cloud\n\nwhen flag clicked\ngo [backward v] (2) layers\nhide\nforever\n    wait (pick random (0.4) to (3)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (40) to (70))\ngo to x: (-310) y: (pick random (-54) to (115))\nswitch costume to (pick random (1) to (5))\nshow\nrepeat until <[264] < (x position)>\n    change x by (pick random (4) to (15))\nend\ndelete this clone\n\n@spike\n\nwhen I receive [nxt level v]\ngo to x: (79) y: (-26)\nswitch costume to (costume2 v)\n\nwhen flag clicked\nshow\ngo to x: (-6) y: (-99)\nswitch costume to (costume1 v)\n\nwhen I receive [nxt lvl v]\nswitch costume to (costume3 v)\ngo to x: (63) y: (-162)\n\nwhen I receive [nl v]\nhide\n\nwhen I receive [nxt leevel v]\n\nwhen I receive [nxt leevel v]\nshow\nswitch costume to (costume4 v)\ngo to x: (117) y: (-162)\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nhide\n\n@flag\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (200) y: (-87)\n\nwhen I receive [nxt level v]\ngo to x: (205) y: (-13)\nswitch costume to (costume2 v)\n\nwhen I receive [nxt lvl v]\nswitch costume to (costume3 v)\ngo to x: (213) y: (83)\n\nwhen I receive [nl v]\nswitch costume to (costume4 v)\ngo to x: (205) y: (-97)\n\nwhen I receive [nxt leevel v]\ngo to x: (216) y: (155)\nswitch costume to (costume5 v)\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nswitch costume to (costume6 v)\ngo to x: (200) y: (-99)\n\nhide\n\n@box\n\nwhen flag clicked\ngo to x: (144) y: (-111)\nset [box hits v] to [0]\nswitch costume to (costume1 v)\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (sword? v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(box hits) = [4]> then\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        hide\n        set [box hits v] to [0]\n    end\nend\n\nwhen I receive [sword v]\nchange [box hits v] by (1)\nswitch costume to (costume2 v)\nwait (0.1) seconds\nswitch costume to (costume1 v)\n\nwhen I receive [sword v]\nplay sound [Crunch v] until done\n\nwhen I receive [nxt level v]\nset [box hits v] to [0]\ngo to x: (177) y: (-42)\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [nxt leevel v]\ngo to x: (122) y: (-9)\nshow\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nhide\n\n@jump\n\nwhen flag clicked\ngo to x: (-122) y: (-113)\nhide\n\nwhen I receive [nxt level v]\nshow\n\nwhen I receive [nxt lvl v]\ngo to x: (-121) y: (-95)\nshow\n\nwhen I receive [nl v]\nhide\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nhide\n\n@hitbox\n\nwhen flag clicked\n\ngo to x: (-64) y: (21)\n\nwhen flag clicked\ngo to x: (-177) y: (74)\nset [ghost v] effect to (100)\nset [ground costume v] to [1]\ngo to [front v] layer\nswitch costume to (play v)\nset size to (50) %\nset rotation style [left-right v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    change y by (y)\n    if <<<touching (ground v)?> or <touching (box v)?>> or <touching (moving platform v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <key (space v) pressed?>> then\n            start sound [Jump v]\n            set [y v] to [14]\n            wait until <not <<<touching (ground v)?> or <touching (box v)?>> or <touching (moving platform v)?>>>\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (0.8)\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-0.8)\n        point in direction (-90)\n    end\n    change x by (x)\n    change x by (((0) - (x)) * <<<touching (ground v)?> or <touching (box v)?>> or <touching (moving platform v)?>>)\n    set [x v] to ((x) * (0.9))\nend\n\nwhen flag clicked\nforever\n    if <<touching color (#ff0000)?> or <touching (enemy v)?>> then\n        wait (0) seconds\n        start sound [Crunch v]\n        go to x: (-179) y: (-37)\n        broadcast (ded v)\n    end\nend\n\nwait (1) seconds\n\ngo to x: (-173) y: (-104)\n\nwhen flag clicked\nshow\nset [level stuff v] to [0]\nforever\n    if <touching color (#61e65c)?> then\n        set [level stuff v] to [1]\n        start sound [Connect v]\n        broadcast (nxt level v)\n        go to x: (-200) y: (-67)\n    end\n    if <touching color (#e65c5c)?> then\n        set [level stuff v] to [2]\n        start sound [Connect v]\n        broadcast (nxt lvl v)\n        go to x: (-200) y: (-67)\n    end\n    if <touching color (#5c67e6)?> then\n        set [level stuff v] to [3]\n        start sound [Connect v]\n        broadcast (nl v)\n        go to x: (-200) y: (-67)\n    end\n    if <touching color (#e600d3)?> then\n        set [level stuff v] to [4]\n        start sound [Connect v]\n        broadcast (nxt leevel v)\n        go to x: (-200) y: (-67)\n    end\n    if <touching color (#e6df00)?> then\n        set [level stuff v] to [5]\n        start sound [Connect v]\n        broadcast (aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v)\n        go to x: (-200) y: (-67)\n    end\n    if <touching color (#9e0000)?> then\n        set [level stuff v] to [6]\n        start sound [Connect v]\n        go to x: (-200) y: (-67)\n        broadcast (ooh v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (jump v)?> then\n        start sound [Jump v]\n        set [y v] to [20]\n    end\nend\n\ngo to x: (-179) y: (-37)\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nset [ghost v] effect to (100)\n\n@moving platform\n\nwhen flag clicked\ngo to x: (-31) y: (15)\nset size to (40) %\nhide\nforever\n    glide (3) secs to x: (156) y: (15)\n    glide (3) secs to x: (-31) y: (15)\nend\n\nwhen I receive [nxt lvl v]\nshow\n\nwhen I receive [nl v]\nhide\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nhide\n\n@words\n\nwhen flag clicked\nshow\ngo to x: (-59) y: (59)\ngo to [back v] layer\nswitch costume to (costume1 v)\n\nwhen I receive [nxt level v]\nswitch costume to (costume2 v)\n\nwhen I receive [nxt lvl v]\nswitch costume to (costume3 v)\n\nwhen I receive [nl v]\nhide\n\nwhen I receive [aaaaaaaaaaaarrrrrrrrrrrrrrgggggggggggghhhhhhhhhhhhhhhhh v]\nshow\nswitch costume to (costume4 v)\n\n@thumbnail\n\nwhen flag clicked\ngo to [front v] layer\ngo to [front v] layer\nhide\ngo to x: (0) y: (0)\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (timer)\ngo to [front v] layer\nshow\n\n@enemy\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [my life v] to [3]\nhide\n\nwhen I receive [nl v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [nl v]\nset rotation style [left-right v]\nshow\ngo to x: (124) y: (-87)\npoint in direction (-90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    change y by (y)\n    if <<<touching (ground v)?> or <touching (box v)?>> or <touching (moving platform v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n        if <([y position v] of [player v]) > ((y position) * (5))> then\n            set [y v] to [12]\n            wait until <not <<<touching (ground v)?> or <touching (box v)?>> or <touching (moving platform v)?>>>\n        end\n    end\n    if <([x position v] of [player v]) > (x position)> then\n        change [x v] by (0.5)\n        point in direction (90)\n    end\n    if <(x position) > ([x position v] of [player v])> then\n        change [x v] by (-0.5)\n        point in direction (-90)\n    end\n    change x by (x)\n    change x by (((0) - (x)) * <<<touching (ground v)?> or <touching (box v)?>> or <touching (moving platform v)?>>)\n    set [x v] to ((x) * (0.9))\nend\n\nwhen I start as a clone\nswitch costume to (thing v)\nset [ghost v] effect to (0)\nrepeat (5)\n    change [ghost v] effect by (20)\n    change size by (-3)\nend\ndelete this clone\n\nwhen I receive [nl v]\nforever\n    if <touching (player v)?> then\n        broadcast (s2 v)\n    end\nend\n\nwhen I receive [nl v]\nforever\n    if <(my life) < [1]> then\n        hide\n    end\nend\n\nwhen I receive [s2a v]\nswitch costume to (costume2 v)\nwait (0.01) seconds\nswitch costume to (costume1 v)\nchange [my life v] by (-1)\n\nwhen I receive [nxt leevel v]\ngo to x: (121) y: (121)\nset [my life v] to [3]\nshow\n\ngo to [front v] layer\n\nwhen I receive [nl v]\nforever\n    if <touching (player v)?> then\n        wait (0) seconds\n        repeat (2)\n            change [x v] by (0.08)\n        end\n    end\nend\n\nwhen I receive [ooh v]\ngo to x: (102) y: (35)\nshow\n\ngo to [front v] layer\n\n@lov\n\nwhen flag clicked\nset [lov? v] to [0]\nset size to (100) %\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (36) y: (28)\nforever\n    if <touching (mouse-pointer v)?> then\n        play sound [Collect v] until done\n        switch costume to (costume2 v)\n        go to x: (-215) y: (-164)\n        create clone of (_myself_ v)\n        switch costume to (costume1 v)\n        go to x: (36) y: (28)\n    end\nend\n\nwhen [timer v] > (timer)\nset [ghost v] effect to (100)\n\nwhen I start as a clone\nset size to (20) %\nset [ghost v] effect to (0)\nrepeat (10)\n    change size by (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [lov? v] to [y]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(lov?) = [y]> and <(fav?) = [y]>> then\n        broadcast (yes v)\n    end\nend\n\n@fav\n\nwhen [timer v] > (timer)\nset [ghost v] effect to (100)\n\nwhen flag clicked\nset [fav? v] to [0]\nset size to (100) %\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (36) y: (85)\nforever\n    if <touching (mouse-pointer v)?> then\n        play sound [Collect v] until done\n        switch costume to (costume2 v)\n        go to x: (-141) y: (-166)\n        create clone of (_myself_ v)\n        switch costume to (costume1 v)\n        go to x: (36) y: (85)\n    end\nend\n\nwhen I start as a clone\nset size to (20) %\nset [ghost v] effect to (0)\nrepeat (10)\n    change size by (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [fav? v] to [y]\n    end\nend\n\n@lov and fav\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (145) y: (208)\nswitch costume to (costume1 v)\ngo to [front v] layer\nset size to (200) %\nhide\nforever\n    wait (pick random (5) to (6)) seconds\n    show\n    glide (1) secs to x: (145) y: (151)\n    wait (4) seconds\n    glide (1) secs to x: (145) y: (208)\n    hide\nend\n\nwhen I receive [yes v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (149)\n\ngo to [front v] layer\n\nwhen I receive [yes v]\nshow\nwait (4) seconds\nhide\nset [ghost v] effect to (100)\n\n@original coistume\n\nwhen I receive [yes v]\nshow\nrepeat until <<mouse down?> and <touching (mouse-pointer v)?>>\n    point in direction ((90) + (([sin v] of ((timer) * (100)) ) * (2)))\n    if <touching (mouse-pointer v)?> then\n        set size to (((400) - (size)) / (2)) %\n        switch costume to (costume2 v)\n    else\n        set size to (((300) - (size)) / (2)) %\n        switch costume to (costume1 v)\n    end\nend\nset [ghost v] effect to (100)\nbroadcast (nuh v)\n\nwhen [timer v] > (timer)\nhide\n\nwhen flag clicked\ngo to x: (-176) y: (130)\nhide\n\ngo to [front v] layer\n\n