[10K VIEWS] Spooko | Platformer

Instructions:    ✿ Welcome to "Spooko - Platformer" ✿\n\n ✿ Controls: Press space to start playing ✿\n➤ Use the arrow keys or WASD to move your character \n➤ 15 thrilling spooky levels!\n➤ Make sure to play with headphones :)\n\nIf your player breaks, double-tap the flag!\n\nPlease like, follow, and fav to support me :D\n\nIf you want to talk to me, join my studio! Link down below!\nhttps://scratch.mit.edu/studios/27433923/\n\nMassive thanks to: \n@SRIJAN2412 for background design\n@deimos7391 for sprite/character design\n\nTags: #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #games #trending #all #platformer #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #platformer #trending #all #games #trending #all #games 

@Stage\n\n@Trail\n\nwhen I start as a clone\ngo to (player v)\nshow\ngo to [back v] layer\nset [ghost v] effect to (0)\nset size to (100) %\nrepeat (20)\n    change [brightness v] effect by (1)\n    change [ghost v] effect by (5)\n    change size by (-2.5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nforever\n    change [color v] effect by (1)\nend\n\nwhen I receive [begin v]\nforever\n    create clone of (trail v)\n    wait (0) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [Dark Corridors -  Dark Suspenseful Tension Music - Horror and Crime Background for Crime Scene v] until done\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [school v] to [1]\nshow\nforever\n    if <(school) = [1]> then\n        set [ghost v] effect to (0)\n        point in direction ((90) + (([cos v] of ((timer) * (100)) ) * (1)))\n        go to x: (0) y: ((90) + (([cos v] of ((timer) * (100)) ) * (5)))\n        wait (0.1) seconds\n    else\n        change [ghost v] effect by (25)\n    end\nend\n\nwhen this sprite clicked\nwait (0.1) seconds\nbroadcast (play v)\n\nwhen I receive [begin flag v]\nhide\n\nwhen this sprite clicked\nbroadcast (begin flag v)\nbroadcast (Start v)\nbroadcast (yessir v)\nbroadcast (広告 v)\nbroadcast (play v)\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\n\nswitch costume to (b v)\n\nwhen backdrop switches to [backdrop1 v]\n\nwhen I receive [begin flag v]\nswitch costume to (nugget v)\n\nwhen I receive [begin flag v]\nforever\n    show\n    set size to (100) %\n    switch costume to (SCENE)\n    go to [front v] layer\nend\n\nwhen I receive [begin flag v]\nset [scene v] to [1]\nswitch costume to (nugget v)\n\nwhen I receive [begin flag v]\nforever\n    if <(SCENE) = [16]> then\n        broadcast (Won v)\n    end\nend\n\n@Player\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen flag clicked\nhide\n\nwhen [r v] key pressed\ngo to x: (-187) y: (-41)\n\nchange [scene v] by (1)\n\nwhen I receive [begin flag v]\nbroadcast (begin v)\n\nwhen I receive [begin flag v]\ngo to x: (-187) y: (-41)\nshow\nswitch costume to (blue v)\nset rotation style [left-right v]\nforever\n    switch costume to ([costume name v] of [thanks v])\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\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 (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground 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?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\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 (ground 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 (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [scene v] by (1)\n    end\n    if <touching (spikes2 v)?> then\n        broadcast (yell v)\n        broadcast (Screen Shake v)\n        broadcast (Reset v)\n    else\n        if <touching (spikes2 v)?> then\n            broadcast (Reset v)\n        end\n        if <touching (spikes2 v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen I receive [begin flag v]\nbroadcast (chickennugget v)\n\n@Cloud\n\nwhen flag clicked\nhide\nrepeat (pick random (1) to (3))\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\nforever\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (50))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (2.5)\n        end\n        hide\n        wait (pick random (2) to (7)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (-3.5)\n        end\n        hide\n        wait (pick random (3) to (5)) seconds\n    end\nend\n\n@Cloud2\n\nwhen flag clicked\nhide\nrepeat (pick random (1) to (3))\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\nforever\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (50))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (2.5)\n        end\n        hide\n        wait (pick random (2) to (7)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (-3.5)\n        end\n        hide\n        wait (pick random (3) to (5)) seconds\n    end\nend\n\n@Cloud3\n\nwhen flag clicked\nhide\nrepeat (pick random (1) to (3))\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\nforever\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (50))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (2.5)\n        end\n        hide\n        wait (pick random (2) to (7)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (160)\n            change x by (-3.5)\n        end\n        hide\n        wait (pick random (3) to (5)) seconds\n    end\nend\n\n@Spikes2\n\nwhen flag clicked\nhide\n\nbroadcast (OH YES v)\n\nwhen I receive [begin flag v]\nshow\nforever\n    switch costume to (SCENE)\nend\n\n@stars\n\nwhen I start as a clone\nif <(pick random (1) to (4)) = [1]> then\n    set [v v] to (pick random (5.0) to (7.0))\nelse\n    set [v v] to (pick random (0.6) to (2.0))\nend\nrepeat until <(y position) > [179]>\n    change y by (v)\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (30) to (80))\nswitch costume to (resize v)\nset size to (pick random (40) to (100)) %\nswitch costume to (pick random (1) to (2))\nforever\n    if <(pick random (1) to (0)) = [1]> then\n        wait (pick random (12) to (5)) seconds\n    else\n        wait (pick random (0.1) to (0.3)) seconds\n    end\n    repeat (3)\n        change [ghost v] effect by (10)\n    end\n    repeat (3)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen I receive [yessir v]\nforever\n    go to x: (pick random (-240) to (240)) y: (-180)\n    create clone of (_myself_ v)\n    wait (0.4) seconds\nend\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Sprite2\n\nwhen flag clicked\nset [school v] to [1]\nshow\nforever\n    if <(school) = [1]> then\n        set [ghost v] effect to (0)\n        point in direction ((90) + (([cos v] of ((timer) * (100)) ) * (1)))\n        go to x: (0) y: ((90) + (([cos v] of ((timer) * (100)) ) * (5)))\n    else\n        change [ghost v] effect by (25)\n    end\nend\n\nwhen I receive [play v]\nhide\n\n@Particle\n\nwhen flag clicked\nshow\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nswitch costume to (pick random (0) to (3))\nset [ghost v] effect to (pick random (20) to (100))\nset [brightness v] effect to (pick random (-3) to (3))\ngo to x: (pick random (-240) to (240)) y: (180)\nforever\n    change [ghost v] effect by ((pick random (-1) to (1)) * (2))\n    change [brightness v] effect by ((pick random (-1) to (1)) * (2))\n    change y by (((2) + (costume [number v])) * ((costume [number v]) * (-1)))\n    if <(y position) < [-178]> then\n        delete this clone\n    end\nend\n\nchange [ghost v] effect by ((pick random (-1) to (1)) * (2))\n\nwhen I receive [play v]\nhide\n\n@Particle2\n\nwhen I start as a clone\ngo to [back v] layer\nswitch costume to (pick random (0) to (3))\nset [ghost v] effect to (pick random (20) to (100))\nset [brightness v] effect to (pick random (-3) to (3))\ngo to x: (pick random (-240) to (240)) y: (180)\nforever\n    change [ghost v] effect by ((pick random (-1) to (1)) * (2))\n    change [brightness v] effect by ((pick random (-1) to (1)) * (2))\n    change y by (((2) + (costume [number v])) * ((costume [number v]) * (-1)))\n    if <(y position) < [-178]> then\n        delete this clone\n    end\nend\n\nchange [ghost v] effect by ((pick random (-1) to (1)) * (2))\n\nwhen I receive [start v]\nshow\nforever\n    create clone of (_myself_ v)\n    wait (0.3) seconds\nend\n\n@Like, Star, Follow\n\nwhen flag clicked\nhide\n\nwhen I receive [広告 v]\ncreate clone of (_myself_ v)\ngo to x: (152) y: (250)\nswitch costume to (ぐれー v)\nset size to (40) %\npoint in direction (90)\nshow\nstart sound [ポップ v]\nrepeat (30)\n    change y by (((145) - (y position)) / (4))\nend\nrepeat (3)\n    next costume\n    wait (0.75) seconds\nend\nrepeat (30)\n    change y by (((220) - (y position)) / (4))\nend\nhide\n\nwhen I start as a clone\ngo to x: (66) y: (92)\nset [ghost v] effect to (100)\nswitch costume to (マウス v)\ngo to [front v] layer\nset size to (45) %\npoint in direction (90)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (20)\n    change x by (((115) - (x position)) / (4))\n    change y by (((140) - (y position)) / (4))\nend\nwait (0.05) seconds\nrepeat (20)\n    change x by (((156) - (x position)) / (4))\nend\nwait (0.05) seconds\nrepeat (20)\n    change x by (((195) - (x position)) / (4))\nend\nrepeat (20)\n    change x by (((195) - (x position)) / (4))\nend\nwait (0.05) seconds\nrepeat (20)\n    change x by (((229) - (x position)) / (4))\n    change y by (((95) - (y position)) / (4))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (0)\ndelete this clone\n\nwhen I receive [音◯ v]\nrepeat (20)\n    change volume by (-5)\nend\n\nwhen I receive [音 v]\nrepeat (20)\n    change volume by (5)\nend\n\nwhen I receive [広告 v]\nwait (1) seconds\nplay sound [Click v] until done\nwait (.5) seconds\nplay sound [Click v] until done\nwait (.5) seconds\nplay sound [Click v] until done\n\nrepeat (10)\n\nwhen I receive [\[intro\] over v]\n\nwhen flag clicked\n\n@Controls\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nhide\n\nwhen I receive [yessir v]\nshow\nset [ghost v] effect to (0)\ngo to x: (2) y: (43)\nwait (2.8) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@bg\n\nwhen flag clicked\nhide\n\nwhen I receive [yessir v]\nshow\ngo to [back v] layer\nforever\n    switch costume to (SCENE)\nend\n\n@fin\n\nwhen flag clicked\nset [fin v] to [no]\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [won v]\n\nset [fin v] to [yes]\ngo to [front v] layer\ngo [forward v] (1) layers\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Love and fave reminder2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (2.5) seconds\ngo to [front v] layer\n\nwhen flag clicked\n\nwhen I receive [play v]\nwait (12) seconds\nforever\n    if <(Actions \(love/fave\)) < [2]> then\n        switch costume to (costume1 v)\n        go to x: (-96) y: (126)\n        show\n        go to [front v] layer\n        repeat (11)\n            change y by (-6)\n        end\n        repeat (7)\n            change y by (3)\n        end\n        repeat (6)\n            change y by (-2)\n        end\n        wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n        repeat (17)\n            change y by (7)\n        end\n        hide\n        stop [this script v]\n    else\n        stop [this script v]\n    end\nend\n\n@fin3\n\nwhen I receive [won v]\nset [fin v] to [yes]\ngo to [front v] layer\ngo [forward v] (1) layers\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nset [fin v] to [no]\nset [ghost v] effect to (100)\nhide\n\n