Daylight (A platformer)

Instructions: ---------------------Special for 900 followers------------------\n-Left/right/up arrow to move\n-Beware the lava and spikes (AND THE BOSS)\n-Try to beat it\n-At the boss level u have only to jump over it and wait untill it will die !\n-Have fun            {}{}{ Story }{}{}\nThere once was a little kid, who loved to play outside. He was different to other kids. He was completely black. Of course it could just do it when it was day. Then, a evil man came and took the daylight because he could just live if it was night. Everyone else slept because it was dark. But the little black kid didn't - it was the same color as the night. He wanted his daylight again, so he looked for the evil man and tried to beat him.

@Stage\n\nwhen flag clicked\nswitch backdrop to (night v)\nset [level v] to [1]\nbroadcast (Start v) and wait\n\nwhen flag clicked\nforever\n    play sound [Alan Walker - Darkside \(feat v] until done\nend\n\n@Sprite1\n\nwhen I receive [level change v]\nif <(Level) = [5]> then\n    set [xv v] to [0]\n    set [yv v] to [0]\n    go to x: (-206) y: (80)\nelse\n    if <(Level) = [8]> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-206) y: (100)\n    else\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-206) y: (20)\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\npoint in direction (90)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<(x position) > [238]> and <touching (_edge_ v)?>> then\n        change [level v] by (1)\n        broadcast (level change v) and wait\n    end\n    if <<(y position) < [-173]> and <touching (_edge_ v)?>> then\n        broadcast (level change v) and wait\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to x: (-206) y: (20)\n\nwhen flag clicked\nforever\n    if <<touching color (#823434)?> or <touching color (#bf4c4c)?>> then\n        broadcast (level change v)\n    end\n    if <(Level) = [15]> then\n        if <(x position) < [-175]> then\n            change x by (10)\n        end\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Level) = [16]> then\n        wait (4.5) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (costume2 v)\nshow\ngo to x: (-206) y: (-88)\npoint in direction (90)\nset [level v] to [1]\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> then\n        point in direction (90)\n        change [yv v] by (-0.7)\n    end\n    change [yv v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        switch costume to (costume2 v)\n        point in direction (90)\n        change [xv v] by (0.7)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        switch costume to (costume1 v)\n        point in direction (90)\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((xv) * (0.9))\n    change x by (xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((xv) * (-1))\n                            change x by (-1)\n                            change x by (-5)\n                            change x by (1)\n                            if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (yv)\n    if <touching (ground v)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\nend\n\n@jumppad\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [2]> then\n        go to x: (-7) y: (2)\n        show\n        if <touching (sprite1 v)?> then\n            repeat (5)\n                next costume\n            end\n            change [yv v] by (15)\n            repeat (3)\n                next costume\n            end\n        end\n    else\n        if <(Level) = [6]> then\n            go to x: (-208) y: (34)\n            show\n            if <touching (sprite1 v)?> then\n                repeat (5)\n                    next costume\n                end\n                change [yv v] by (14)\n                repeat (3)\n                    next costume\n                end\n            end\n        else\n            hide\n        end\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\n@ground\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@boss\n\nwhen flag clicked\nhide variable [thebosseslifes v]\nhide variable [theplayerslifes v]\nset [thebosseslifes v] to [5]\nset [theplayerslifes v] to [5]\nset [ghost v] effect to (0)\nset [whirl v] effect to (0)\nhide\ngo to x: (102) y: (-51)\nbroadcast (Boss code  v)\n\nwhen I receive [boss code  v]\nforever\n    if <(Level) = [15]> then\n        show variable [thebosseslifes v]\n        show variable [theplayerslifes v]\n        show\n        repeat until <(theBossesLifes) = [0]>\n            glide (1.5) secs to x: (-185) y: (-51)\n            glide (1.5) secs to x: (102) y: (-51)\n            if <touching color (#468db5)?> then\n                change [thebosseslifes v] by ((1) * (-1))\n                if <(theBossesLifes) = [0]> then\n                    repeat (4)\n                        change [ghost v] effect by (25)\n                        change [whirl v] effect by (25)\n                        wait (0.5) seconds\n                    end\n                    change [level v] by (1)\n                end\n            end\n        end\n    else\n        hide variable [thebosseslifes v]\n        hide variable [theplayerslifes v]\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        change [theplayerslifes v] by ((1) * (-1))\n        wait (1.5) seconds\n        if <(ThePlayersLifes) = [0]> then\n            broadcast (YoULoOsE v)\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go [forward v] (99) layers\n    go to [front v] layer\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [youloose v]\nswitch costume to (costume2 v)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\nwait (3) seconds\nforever\n    if <(Level) = [16]> then\n        wait (4.5) seconds\n        switch costume to (costume1 v)\n        go to [front v] layer\n        show\n    end\nend\n\n@Danger\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (Level)\n    go [backward v] (1) layers\nend\n\n