Dusk- A Platformer

Instructions: @INorth LOVED AND FAVED???? \nYou are lost far from your home!\nGo through many obstacles on the journey to go home.\nCan you make it?\nYes, Yes Generic I'm sorry.\nMore updates coming soon!\n#3 page in trending OH GOD HELP ME

@Stage\n\nwhen flag clicked\nset [brightness v] effect to (-5)\nswitch backdrop to (backdrop2 v)\nwait until <([costume # v] of [land v]) = [16]>\nswitch backdrop to (backdrop3 v)\nbroadcast (day!! v)\n\n@Guy\n\nwhen flag clicked\ngo to x: (-180) y: (-40)\nset [y v] to [0]\nset [x v] to [0]\nshow\nset size to (100) %\ngo to [front v] layer\nforever\n    go to [front v] layer\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-0.7)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (0.7)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (land v)?> then\n        change y by (1)\n        if <touching (land v)?> then\n            change y by (1)\n            if <touching (land v)?> then\n                change y by (1)\n                if <touching (land v)?> then\n                    change y by (1)\n                    if <touching (land v)?> then\n                        change x by ((x) * (-1))\n                        change y by (-4)\n                        if <key (up arrow v) pressed?> then\n                            if <(x) > [0]> then\n                                Walljump [-5]\n                            else\n                                Walljump [5]\n                            end\n                            Jump [10]\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    change x by (-1)\n    if <key (up arrow v) pressed?> then\n        if <touching (land v)?> then\n            Jump [10]\n        end\n    end\n    change y by (1)\n    change x by (1)\n    if <key (up arrow v) pressed?> then\n        change [y v] by (-0.7)\n    else\n        change [y v] by (-1)\n    end\n    change x by (1)\n    set [y v] to ((y) * (1))\n    change y by (y)\n    change x by (-1)\n    if <touching (land v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <touching (spikes, yikes v)?> then\n        Die\n    end\n    if <[-175] > (y position)> then\n        if <not <<([costume # v] of [land v]) = [10]> or <([costume # v] of [land v]) = [12]>>> then\n            Die\n        else\n            broadcast (next v)\n            go to x: (-180) y: (300)\n            set [y v] to [0]\n            set [x v] to [0]\n        end\n    end\n    if <<(x position) > [237]> and <not <<([costume # v] of [land v]) = [12]> or <([costume # v] of [land v]) = [19]>>>> then\n        broadcast (next v)\n        go to x: (-180) y: (0)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\n    if <<(y position) > [176]> and <([costume # v] of [land v]) = [16]>> then\n        broadcast (next v)\n        go to x: (-180) y: (-130)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\nend\n\ndefine Die\nbroadcast (dead v)\ngo to x: (-180) y: (0)\nset [y v] to [0]\nset [x v] to [0]\n\ndefine Jump (height)\nset [y v] to (height)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (1)\n    change [ghost v] effect by (25)\nend\ndelete this clone\n\ndefine Walljump (left/right)\nset [x v] to (left/right)\nwait (0.05) seconds\nset [x v] to (left/right)\n\ndefine Bounce ()\nset [y v] to (() * (-1))\n\nwhen I receive [die right now or you will regret it!!! v]\ngo to x: (-224) y: (-96)\n\nwhen flag clicked\nshow\n\n@Land\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset [brightness v] effect to (-40)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [next v]\nnext costume\ngo to x: (0) y: (0)\n\nwhen I receive [day!! v]\nset [brightness v] effect to (0)\n\n@sun light\n\nwhen flag clicked\nshow\nset size to (100) %\nforever\n    go to [back v] layer\n    repeat (50)\n        change size by (Size:sixe)\n        set [size:sixe v] to [-0.5]\n        Smoothen\n    end\n    repeat (50)\n        change size by (Size:sixe)\n        set [size:sixe v] to [0.5]\n        Smoothen\n    end\nend\n\ndefine Smoothen\nchange size by ((Size:sixe) * (0.9))\nset [size:sixe v] to ((Size:sixe) * (0.9))\nif <[90] > (size)> then\n    change [size:sixe v] by (31)\n    broadcast (yeee v)\nend\n\nset size to (100) %\n\nchange [size:sixe v] by (1)\n\nwhen I receive [yeee v]\nwait (1) seconds\nrepeat (10)\n    change [size:sixe v] by (-1)\n    wait (0) seconds\nend\n\nwhen I receive [day!! v]\nhide\n\n@sun\n\nwhen flag clicked\nshow\nset size to (100) %\nrepeat (10)\n    go to [back v] layer\nend\n\nwhen I receive [day!! v]\nhide\n\n@Particles\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [particles:yv v] to (pick random (3) to (8))\ngo to [back v] layer\nshow\nset [ghost v] effect to (0)\ngo to (random position v)\nchange x by (pick random (-100) to (100))\npoint in direction ((0) - (pick random (90) to (180)))\nrepeat (50)\n    change [ghost v] effect by (2)\n    change y by (particles:yv)\n    change [particles:yv v] by (.1)\n    set [particles:yv v] to ((particles:yv) * (0.9))\n    move (2) steps\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\nhide\ndelete this clone\n\n@decor\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (0)\nset [brightness v] effect to (-40)\nforever\n    show\n    switch costume to ([costume # v] of [land v])\nend\n\nwhen I receive [day!! v]\nset [brightness v] effect to (0)\n\n@Tn\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\ngo to x: (0) y: (0)\n\n@Sprite3\n\n@Ash\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    show\n    switch costume to (something v)\n    set size to (pick random (5) to (50)) %\n    switch costume to (ash v)\n    go to x: (pick random (-200) to (200)) y: (300)\n    repeat until <(y position) < [-175]>\n        change y by (((0) - (size)) / (80))\n        if <(Ghost) = [1]> then\n            set [ghost v] effect to (100)\n        else\n            set [ghost v] effect to (0)\n        end\n    end\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    create clone of (_myself_ v)\nend\n\n@Clouds\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    create clone of (_myself_ v)\n    wait (pick random (2) to (5)) seconds\nend\n\nwhen backdrop switches to [game v]\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (pick random (50) to (100)) %\nshow\nset [ghost v] effect to (80)\ngo to x: (300) y: (pick random (180) to (50))\nglide (pick random (15) to (20)) secs to x: (-300) y: (y position)\ndelete this clone\n\nwhen I receive [next level v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n@Spikes, yikes\n\nwhen flag clicked\nshow\nset [brightness v] effect to (-40)\ngo to [back v] layer\nforever\n    switch costume to ([costume # v] of [land v])\nend\n\nwhen I receive [day!! v]\nset [brightness v] effect to (0)\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    if <touching (guy v)?> then\n        broadcast (DIE RIGHT NOW OR YOU WILL REGRET IT!!! v)\n    end\nend\n\n@False Report Detector\n\ndefine Go To (x) (y)\nset size to (400) %\ngo to x: (x) y: (y)\nset size to (100) %\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nswitch costume to (report button v)\ngo to [front v] layer\nset [animation v] to [0]\nforever\n    Go To [485] [-210]\n    if <touching (mouse-pointer v)?> then\n        set [report button v] to [1]\n    else\n        set [report button v] to [0]\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nswitch costume to (report detect v)\nforever\n    if <(REPORT BUTTON) = [1]> then\n        set [ghost v] effect to (100)\n        go to x: (0) y: (-400)\n        repeat (50)\n            change [ghost v] effect by (-1.6)\n            change y by (((0) - (y position)) / (10))\n        end\n        wait (4) seconds\n        repeat (50)\n            change [ghost v] effect by (1.6)\n            change y by (((-400) - (y position)) / (5))\n        end\n        set [report button v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n