SNEAK || A Unique Platformer


@Stage\n\n@Lag = stop\n\n@Menu\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\nwhen I receive [start the game v]\nhide\n\n@Menu- Start\n\nwhen flag clicked\nshow\n\nwhen I receive [start the game v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (play - with mouse v)\n    else\n        switch costume to (play - no mouse v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (START THE GAME v)\n\n@Menu- How to play\n\nwhen flag clicked\nshow\n\nwhen I receive [start the game v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (info - with mouse v)\n    else\n        switch costume to (info - no mouse v)\n    end\nend\n\nwhen this sprite clicked\nwait (0.1) seconds\nbroadcast (Info v)\n\n@Info lol\n\nwhen flag clicked\nhide\n\nwhen I receive [info v]\nshow\ngo to [front v] layer\nrepeat until <mouse down?>\n    forever\n        if <mouse down?> then\n            hide\n        end\n    end\nend\n\n@Player\n\ndefine Move/Scroll\nchange [y v v] by (-1)\nif <key (right arrow v) pressed?> then\n    change [x v v] by (1.4)\n    switch costume to (player - right v)\nend\nif <key (left arrow v) pressed?> then\n    change [x v v] by (-1.4)\n    switch costume to (player - left v)\nend\nset [x v v] to ((X V) * (0.85))\nchange x by (X V)\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (-4)\n    change x by ((X V) * (-1))\nend\nchange y by (Y V)\nif <touching (ground v)?> then\n    change y by ((Y V) * (-1))\n    set [y v v] to [0]\nend\nchange y by (-1)\nif <touching (ground v)?> then\n    if <key (up arrow v) pressed?> then\n        set [y v v] to [15]\n    end\nend\nchange y by (1)\nchange [scroll x v] by ((x position) * (-1))\nchange [scroll y v] by ((y position) * (-1))\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\n\nwhen flag clicked\nset [x v v] to [0]\nset [y v v] to [0]\n\nwhen flag clicked\nforever\n    if <(Scroll y) > [1100]> then\n        broadcast (Dead v)\n    end\nend\n\nwhen I receive [dead v]\nset [x v v] to [0]\nset [y v v] to [0]\nif <(Checkpoint) = [0]> then\n    set [scroll x v] to [700]\n    set [scroll y v] to [100]\nelse\n    set [scroll x v] to [-361]\n    set [scroll y v] to [-350]\nend\n\nwhen I receive [change lvl v]\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        broadcast (Dead v)\n    end\nend\n\nwhen I receive [start the game v]\nshow\nforever\n    Move/Scroll\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\nwait (5) seconds\nforever\n    if <touching color (#181818)?> then\n        set [ghost v] effect to (0)\n        repeat (4)\n            change [ghost v] effect by (25)\n        end\n        broadcast (change lvl v)\n        wait (3) seconds\n    end\nend\n\nbroadcast (START THE GAME v)\n\n@Lamp\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\nshow\nforever\n    if <([costume # v] of [player v]) = [1]> then\n        go to x: (29) y: (10)\n    else\n        if <([costume # v] of [player v]) = [2]> then\n            go to x: (-22) y: (10)\n        end\n    end\nend\n\n@Ground\n\ndefine Pozizion\nset [scroll x v] to [700]\nset [scroll y v] to [100]\n\nwhen I receive [change lvl v]\nnext costume\nset [scroll x v] to [800]\nset [scroll y v] to [100]\n\nwhen I receive [start the game v]\nshow\nset [ghost v] effect to (0)\nswitch costume to (mr. blank v)\nset size to (400) %\nswitch costume to (level 1 v)\nPozizion\nforever\n    go to x: (Scroll x) y: (Scroll y)\nend\n\nwhen flag clicked\nhide\n\n@Black xD\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\nshow\nforever\n    next costume\nend\n\nhide\n\n@Spikes\n\ndefine Pozizion\nset [scroll x v] to [700]\nset [scroll y v] to [100]\n\nwhen I receive [change lvl v]\nnext costume\nset [scroll x v] to [800]\nset [scroll y v] to [100]\n\nwhen I receive [start the game v]\nshow\nset [ghost v] effect to (0)\nswitch costume to (mr. blank v)\nset size to (400) %\nswitch costume to (level 1 v)\nPozizion\nforever\n    go to x: (Scroll x) y: (Scroll y)\nend\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\n\n@Black lol\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Checkpoint\n\ndefine Pozizion\nset [scroll x v] to [700]\nset [scroll y v] to [100]\n\nwhen I receive [change lvl v]\nnext costume\nset [scroll x v] to [800]\nset [scroll y v] to [100]\n\nwhen I receive [start the game v]\nshow\nset [ghost v] effect to (0)\nswitch costume to (mr. blank v)\nset size to (400) %\nswitch costume to (level 1 v)\nPozizion\nforever\n    go to x: (Scroll x) y: (Scroll y)\nend\n\nwhen flag clicked\nset [checkpoint v] to [0]\nhide\n\nwhen I receive [start the game v]\nset [ghost v] effect to (0)\nforever\n    if <touching (player v)?> then\n        set [checkpoint v] to [1]\n        hide\n    end\nend\n\n