Black And Grey Photo Land A Platformer

Instructions: New Animation Out! :) https://scratch.mit.edu/projects/497786103/\n\nYou Are A Cube who is trapped in the 1900's photos you will have to get threw spikes and ink and many challanges to get threw to the 2000's can you get threw?\n\nComment Your Best Time mine is 29 Seconds\n\nThanks @0014049 For the tutorial on Youtube Thanks @TimMcCool for the love and fav dector and Thanks @StratfordJames for the you win screen 

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\n@Cube\n\nwhen flag clicked\nhide variable [☁ timer v]\n\nwhen flag clicked\nforever\n    if <(☁ Timer) < (☁ Highscore)> then\n        set [☁ highscore v] to (☁ Timer)\n    end\nend\n\nwhen flag clicked\nplay sound [Vexento - Pixel Party v] until done\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (NEXT LEVEL v)\nforever\n    if <key (left arrow v) pressed?> then\n        change [x vel v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x vel v] by (1)\n    end\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\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 vel) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(x vel) > [0]> then\n                set [x vel v] to [-10]\n            else\n                set [x vel v] to [10]\n            end\n            set [y vel v] to [15]\n        else\n            set [x vel v] to [0]\n        end\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching (level v)?> then\n        change y by ((y vel) - ((y vel) * (2)))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y vel v] to [15]\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        change [level v] by (1)\n        broadcast (NEXT LEVEL v) and wait\n    end\n    if <touching (spikes v)?> then\n        broadcast (restart v)\n    end\n    if <touching (bounce v)?> then\n        set [y vel v] to [19]\n    end\n    if <touching (enemy v)?> then\n        set [y vel v] to [15]\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (restart v)\n\nwhen I receive [restart v]\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (-226) y: (-4)\n\nwhen flag clicked\ngo to x: (-224) y: (-3)\n\nwhen flag clicked\nforever\n    if <touching (ink v)?> then\n        broadcast (restart v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        broadcast (you win and time c v)\n    end\nend\n\nwhen [up arrow v] key pressed\nswitch costume to (1 v)\n\nwhen [down arrow v] key pressed\nswitch costume to (2 v)\n\nwhen [right arrow v] key pressed\nswitch costume to (3 v)\n\nwhen [left arrow v] key pressed\nswitch costume to (4 v)\n\nwhen flag clicked\nforever\n    if <touching (ink v)?> then\n        set [brightness v] effect to (-100)\n        repeat (10)\n            wait (00.1) seconds\n            change [brightness v] effect by (10)\n        end\n    end\nend\n\nwhen flag clicked\nset size to (100) %\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        set size to (50) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        set size to (100) %\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Backgrouwnd pawrtikuls\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nswitch costume to (pick random (1) to (3))\nset x to (pick random (-360) to (360))\nglide (3) secs to x: (x position) y: (-172)\ndelete this clone\n\nwhen flag clicked\nset size to (50) %\nhide\n\nwhen flag clicked\nshow\nset [ghost v] effect to (40)\ngo to x: (0) y: (169)\nforever\n    show\n    create clone of (_myself_ v)\n    hide\n    wait (0.01) seconds\nend\n\n@Ink\n\nwhen flag clicked\nforever\n    set [tide v] to [0]\n    repeat (10)\n        change [tide v] by (1)\n    end\n    repeat (20)\n        change [tide v] by (-1)\n    end\n    repeat (10)\n        change [tide v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (Tide)\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\ngo to [back v] layer\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\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\nbroadcast (Message v)\nshow\ngo to [front v] layer\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\n@You win\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [you win and time c v]\nshow\ngo to [front v] layer\nstop [other scripts in sprite v]\nshow variable [timer v]\nset [timer v] to (Timer)\n\nwhen flag clicked\nhide variable [timer v]\n\nwhen flag clicked\nset [timer v] to [0]\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [timer v] by (1)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\n