Night Forest || A Platformer

Instructions: ɴɪɢʜᴛ ғᴏʀᴇsᴛ || ᴀ ᴘʟᴀᴛғᴏʀᴍᴇʀ\n------------------------------------------------------------------------- \nɪɴsᴛʀᴜᴄᴛɪᴏɴs:\n • ᴜsᴇ ᴀʀʀᴏᴡ ᴋᴇʏs , ᴡᴀsᴅ ᴋᴇʏs / ᴍᴏʙɪʟᴇ ᴛᴀᴘ ᴛᴏ ᴍᴏᴠᴇ\n • sᴘɪᴋᴇs & ʟᴀᴠᴀ ᴀʀᴇ ᴅᴀɴɢᴇʀᴏᴜs!!\n ᴛʜᴀᴛ's ᴀʟʟ ᴛʜᴇ ɪɴsᴛʀᴜᴄᴛɪᴏɴs;\n--------------------------------------------------------------------- \n❤️ - ɪғ ʏᴏᴜ ʟɪᴋᴇ ᴛʜɪs ᴘʀᴏᴊᴇᴄᴛ ;)\n⭐ - ɪғ ʏᴏᴜ ғᴀᴠᴏᴜʀɪᴛᴇ ᴛʜɪs ᴘʀᴏᴊᴇᴄᴛ ;)  \n❤️ + ⭐= ᴛʜᴀɴᴋs!! ^~^

@Stage\n\nwhen I receive [start v]\nforever\n    switch backdrop to (The Level)\nend\n\nwhen I receive [start v]\nforever\n    play sound [Nebula v] until done\nend\n\n@Player\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-200) y: (-50)\n\nwhen I receive [start v]\npoint in direction (90)\nshow\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    switch costume to (stand v)\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 (r v)\n        change [x velocity v] by (-1.5)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (l v)\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-9.5]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [14]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n        set [y velocity v] to [13.5]\n    end\n    change y by (1)\n    if <touching (flag v)?> then\n        broadcast (Text v)\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <(x position) > [239]> then\n        broadcast (Text v)\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching (danger v)?> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <touching (danger v)?> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <(y position) < [-170]> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <touching (lava v)?> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <touching (spinn danger v)?> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <touching (spinn danger2 v)?> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <touching (up- v)?> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <touching (up-2 v)?> then\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>> then\n        switch costume to (up v)\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (== v)\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        switch costume to (-- v)\n    end\nend\n\nwhen flag clicked\nhide\nbroadcast (Start v)\n\n@Player Trail\n\nwhen I start as a clone\nshow\nrepeat (Clone)\n    change [ghost v] effect by (Clone)\nend\ndelete this clone\n\nwhen I receive [start v]\nset [clone v] to [10]\nswitch costume to <(costume [number v]) = ((Clone) - ((Clone) - (1)))>\ngo to [back v] layer\nforever\n    go to (player v)\n    create clone of (_myself_ v)\nend\n\n@Level\n\nwhen I receive [start v]\nshow\ngo to [back v] layer\ngo to x: ((Clone) - (Clone)) y: ((Clone) - (Clone))\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nhide\n\n@Cloud\n\nwhen I receive [start v]\nclear graphic effects\nhide\nforever\n    wait (pick random (0.5) to (0.9)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (1) to (40))\ngo to [back v] layer\nswitch costume to (pick random (1) to (3))\ngo to x: (225) y: (pick random (66) to (147))\nrepeat until <(x position) = [-255]>\n    change x by (-4)\nend\ndelete this clone\n\n@Text\n\nwhen I receive [start v]\nshow\ngo to x: ((Clone) - (Clone)) y: ((Clone) - (Clone))\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [text v]\nrepeat (5)\n    change [pixelate v] effect by (20)\nend\nclear graphic effects\n\nwhen flag clicked\nhide\n\n@Danger\n\nwhen I receive [start v]\ngo to [front v] layer\nshow\ngo to x: ((Clone) - (Clone)) y: ((Clone) - (Clone))\nforever\n    switch costume to (The Level)\nend\n\n@Lava\n\nwhen I receive [start v]\nforever\n    set [magma v] to ((Clone) - (Clone))\n    repeat (Clone)\n        change [magma v] by (1)\n    end\n    repeat ((Clone) * (2))\n        change [magma v] by (-1)\n    end\n    repeat (Clone)\n        change [magma v] by (1)\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to x: ((Clone) - (Clone)) y: ((Clone) - (Clone))\nforever\n    go to [back v] layer\n    set y to (Magma)\n    switch costume to (The Level)\nend\n\n@Spinn Danger\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [start v]\npoint in direction ((Clone) * ((Clone) - (1)))\nforever\n    go to [back v] layer\n    turn right ((Clone) + (3)) degrees\nend\n\nwhen I receive [start v]\nforever\n    if <(The Level) = [7]> then\n        go to x: (-111) y: (-102)\n    end\n    if <(The Level) = [10]> then\n        go to x: (-85) y: (-99)\n    end\n    if <(The Level) = [12]> then\n        go to x: (180) y: (-100)\n    end\nend\n\n@Spinn Danger2\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [start v]\npoint in direction ((Clone) * ((Clone) - (1)))\nforever\n    go to [back v] layer\n    turn right ((Clone) + (3)) degrees\nend\n\nwhen I receive [start v]\nforever\n    if <(The Level) = [7]> then\n        go to x: (150) y: (-102)\n    end\nend\n\n@Up-\n\nwhen I receive [start v]\ngo to x: (-70) y: (17)\nshow\nforever\n    go to [back v] layer\n    switch costume to (The Level)\nend\n\nwhen I receive [start v]\nforever\n    glide (1.5) secs to x: (-70) y: (126)\n    glide (1.5) secs to x: (-70) y: (17)\nend\n\n@Up-2\n\nwhen I receive [start v]\ngo to x: (120) y: (17)\nshow\nforever\n    go to [back v] layer\n    switch costume to (The Level)\nend\n\nwhen I receive [start v]\nforever\n    glide (1.5) secs to x: (120) y: (126)\n    glide (1.5) secs to x: (120) y: (17)\nend\n\n@Flag\n\nwhen I receive [start v]\ngo to x: (-177) y: (54)\nforever\n    if <(The Level) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n