-Night- A Platformer
@Stage\n\n@Level\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [ski v]\nnext costume\n\n@Intro\n\nwhen I start as a clone\nif <(CloneType) = [1]> then\n    go to [front v] layer\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole1 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [2]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole2 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [3]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole3 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [4]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole4 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [5]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole5 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [6]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole6 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [7]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole7 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [8]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole8 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [9]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole9 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nbroadcast (START v)\n\nwhen I start as a clone\nwait until <(timer) > [5]>\nif <(CloneType) = [9]> then\n    repeat (10)\n        change x by ((2) + ((x position) * (0.3)))\n        change [ghost v] effect by (10)\n    end\nelse\n    repeat (10)\n        change y by ((2) + ((y position) * (0.3)))\n        change [ghost v] effect by (10)\n    end\nend\nhide\nbroadcast (kid_1018 v)\ndelete this clone\n\nwhen flag clicked\nshow\nset [clonetype v] to [0]\nshow\ngo to x: (0) y: (0)\nswitch costume to (hallenicholefull v)\nset [ghost v] effect to (100)\nset size to (100) %\npoint in direction (0)\n\nwhen flag clicked\nswitch costume to (hallenicholefull v)\nset [clonetype v] to [0]\nreset timer\nswitch backdrop to (backdrop1 v)\nrepeat (9)\n    change [clonetype v] by (1)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I receive [kid_1018 v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n@Skip\n\nwhen this sprite clicked\nbroadcast (SKI v)\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nshow\ngo to [front v] layer\n\n@player\n\ndefine Physics\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    switch costume to (costume1 v)\n    change [xmovement v] by (2)\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (costume2 v)\n        change [xmovement v] by (-2)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change x by ((Xmovement) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        set [yv v] to [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#000000)?> then\n    change y by ((Yv) - ((Yv) * (2)))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching color (#000000)?>> then\n    set [yv v] to [15]\nend\nif <(x position) > [239]> then\n    broadcast (next level v)\nend\nif <(y position) < [-179]> then\n    go to x: (-198) y: (-45)\nend\nif <touching color (#96ff00)?> then\n    set [yv v] to [27]\nend\nif <touching color (#ff0000)?> then\n    go to x: (-198) y: (-45)\nend\n\nwhen I receive [next level v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\npoint in direction (-90)\n\nwhen I receive [restart v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\nwhen I receive [kid_1018 v]\nswitch costume to (costume1 v)\npoint in direction (90)\nshow\npoint in direction (90)\ngo to [front v] layer\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\nset size to (20) %\nforever\n    Physics\nend\n\nwhen flag clicked\nhide\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Player\n\nwhen I receive [kid_1018 v]\nplay sound [Vexento - Sons of Norway v] until done\n\n
                       -Night- A Platformer\nArrow keys or WASD to move (Mobile friendly)\n\nThere are 10 levels (more levels will be added)\n\nHope you like it\n\n