Night a Platformer || #Games #Art #All

Instructions: ----------------------''Night a Platformer''------------------------\n➡Controls - Arrow Keys\n➡Aim - Finish all levels! \n------------------------------------------------------------------------\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Nebula v] until done\nend\n\n@Player\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [gravity v] to [-1]\nset [jump forcce v] to [12]\nset [acceleration v] to [2]\nset [recistance v] to [0.8]\nset [speed y v] to [0]\ngo to x: (-150) y: (-30)\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#584fe0)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((Speed y) / (steps))\n    if <touching color (#584fe0)?> then\n        set y to (last value)\n        if <(Speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen [up arrow v] key pressed\nswitch costume to (costume2 v)\nwait (.7) seconds\nswitch costume to (costume3 v)\n\nwhen flag clicked\nforever\n    if <touching color (#8c8c8c)?> then\n        go to x: (-150) y: (-30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <[-221] > (x position)> then\n        go to x: (205) y: (-105)\n        set [level v] to ((level) - (1))\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [229]> then\n        go to x: (-205) y: (-105)\n        set [level v] to ((level) + (1))\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed y v] to (Jump Forcce)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume5 v)\n        change [speed x v] by ((0) - (acceleration))\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume4 v)\n        change [speed x v] by (acceleration)\n    end\n    set [speed x v] to ((speed x) * (Recistance))\n    change [speed y v] by (GRAVITY)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (Speed y) ))\nend\n\nwhen flag clicked\nset [timer v] to [0]\nwait (.2) seconds\nforever\n    if <(level) = [10]> then\n        set [timer v] to (timer)\n    else\n        change [timer v] by (.1)\n        wait (.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume6 v)\nrepeat (5)\n    change size by (-10)\n    wait (.05) seconds\nend\ndelete this clone\n\n@Sprite1\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@t\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\n@Sprite2\n\nwhen flag clicked\nset [ghost v] effect to (45)\ngo to x: (12) y: (4)\nforever\n    glide (10) secs to x: (173) y: (4)\n    wait (1) seconds\n    glide (10) secs to x: (-327) y: (4)\nend\n\n@Sprite3\n\nwhen flag clicked\nset [ghost v] effect to (35)\ngo to x: (-12) y: (4)\nforever\n    glide (10) secs to x: (-327) y: (4)\n    wait (1) seconds\n    glide (10) secs to x: (173) y: (4)\nend\n\n