Spooky Halloween ||  A Platformer    #Games    #All    #Trending
@Stage\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\nwhen flag clicked\nset volume to (100) %\nstart sound [bensound-dubstep v]\n\nwhen I receive [end v]\nrepeat (50)\n    change volume by (-2)\nend\nstop all sounds\nset volume to (100) %\nrepeat (10)\n    play sound [Kevin MacLeod - Not As It Seems v] until done\nend\n\n@Blank\n\n@Intro\n\ndefine SmoothMove (x) (y) (dir) (size) (butteriness)\nrepeat until <<(round (x position)) = (x)> and <<(round (y position)) = (y)> and <<(round (direction)) = (dir)> and <(round (size)) = (size)>>>>\n    change x by (((x) - (x position)) / (butteriness))\n    change y by (((y) - (y position)) / (butteriness))\n    turn right (((dir) - (direction)) / (butteriness)) degrees\n    change size by (((size) - (size)) / (butteriness))\nend\n\ndefine Reset\ndelete this clone\n\ndefine MakeClone (id)\nset [cloneid v] to (id)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(CloneID) = [Wall1]> then\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (180)\n    show\n    switch costume to (wall1 v)\n    SmoothMove (x position) [0] (direction) (size) [10]\n    wait until <[11] < (timer)>\n    SmoothMove (x position) [150] (direction) (size) [5]\n    broadcast (Menu v)\n    broadcast (END v)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [Wall2]> then\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (-180)\n    show\n    switch costume to (wall2 v)\n    SmoothMove (x position) [0] (direction) (size) [10]\n    wait until <[11] < (timer)>\n    SmoothMove (x position) [-150] (direction) (size) [5]\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [Pierce]> then\n    point in direction (90)\n    show\n    switch costume to (pierce v)\n    set size to (500) %\n    go to x: (-500) y: (0)\n    set size to (100) %\n    SmoothMove [0] (y position) (direction) (size) [2.5]\n    wait until <[7.5] < (timer)>\n    repeat until <(round (x position)) = [500]>\n        set size to (500) %\n        change x by (((500) - (x position)) / (2.5))\n        set size to (100) %\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [Logo]> then\n    set size to (25) %\n    point in direction (90)\n    go to x: (0) y: (180)\n    show\n    switch costume to (logo v)\n    SmoothMove (x position) [0] (direction) [100] [2.5]\n    repeat (4)\n        Particles [50]\n        wait (0.35) seconds\n    end\n    set [y v] to [12.5]\n    repeat (5)\n        turn right (6) degrees\n    end\n    repeat until <touching (_edge_ v)?>\n        change x by (7.5)\n        change y by (y)\n        change [y v] by (-1)\n    end\n    delete this clone\nend\n\ndefine Particles (amount)\nset [cloneid v] to [Parts]\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(CloneID) = [Parts]> then\n    go to [front v] layer\n    set [ghost v] effect to (35)\n    set size to (pick random (50) to (85)) %\n    point in direction (90)\n    go to x: (pick random (-25) to (25)) y: (pick random (-25) to (25))\n    show\n    switch costume to (pick random (5) to (7))\n    set [py v] to (pick random (10.0) to (12.5))\n    set [px v] to (pick random (-10) to (10))\n    set [pd v] to (pick random (-15) to (15))\n    repeat until <touching (_edge_ v)?>\n        change x by (px)\n        change y by (py)\n        turn right (pd) degrees\n        change [py v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [W]> then\n    set size to (25) %\n    show\n    go to x: (-107) y: (-180)\n    switch costume to (w v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [o]> then\n    set size to (25) %\n    show\n    go to x: (-75) y: (-180)\n    switch costume to (o v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [r]> then\n    set size to (25) %\n    show\n    go to x: (-50) y: (-180)\n    switch costume to (r v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [k]> then\n    set size to (25) %\n    show\n    go to x: (-25) y: (-180)\n    switch costume to (k v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [s]> then\n    set size to (25) %\n    show\n    go to x: (0) y: (-180)\n    switch costume to (s v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [h]> then\n    set size to (25) %\n    show\n    go to x: (25) y: (-180)\n    switch costume to (h v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [o2]> then\n    set size to (25) %\n    show\n    go to x: (50) y: (-180)\n    switch costume to (o2 v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [p]> then\n    set size to (25) %\n    show\n    go to x: (75) y: (-180)\n    switch costume to (p v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [X]> then\n    set size to (25) %\n    show\n    go to x: (107) y: (-180)\n    switch costume to (x v)\n    point in direction (180)\n    SmoothMove (x position) [0] [90] [100] [3.5]\n    wait (1.5) seconds\n    set [ly v] to [13.5]\n    repeat until <touching (_edge_ v)?>\n        change x by (-6)\n        change y by (ly)\n        change [ly v] by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [End]> then\n    clear graphic effects\n    set size to (5) %\n    go to x: (0) y: (250)\n    show\n    switch costume to (end v)\n    SmoothMove (x position) [0] [90] [125] [7.5]\n    wait (1) seconds\n    repeat (25)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I receive [start intro v]\nhide\nreset timer\nReset\nMakeClone [Wall1]\nMakeClone [Wall2]\nwait (0.75) seconds\nMakeClone [Pierce]\nwait (0.5) seconds\nMakeClone [Logo]\nwait (2.3) seconds\nMakeClone [W]\nwait (0.1) seconds\nMakeClone [o]\nwait (0.1) seconds\nMakeClone [r]\nwait (0.1) seconds\nMakeClone [k]\nwait (0.1) seconds\nMakeClone [s]\nwait (0.1) seconds\nMakeClone [h]\nwait (0.1) seconds\nMakeClone [o2]\nwait (0.1) seconds\nMakeClone [p]\nwait (0.1) seconds\nMakeClone [X]\nwait (3) seconds\nMakeClone [End]\n\n@Player\n\nwhen flag clicked\nhide\nbroadcast (Setup v) and wait\nbroadcast (Start Intro v)\n\nwhen I receive [ready v]\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [tick v]\nControls Up/Down\nControls Left/Right\nMove - In Steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\nExtra Collisions\n\ndefine Controls Up/Down\nchange [speed y v] by (GRAVITY)\nif <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > ((y position) + (10))> and <mouse down?>>>> and <(falling) < [3]>> then\n    set [speed y v] to (JUMP HEIGHT)\nelse\n    switch costume to (idle v)\nend\n\ndefine Controls Left/Right\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>>> then\n    switch costume to (left v)\n    change [speed x v] by ((0) - (SPEED))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > ((y position) + (10))> and <mouse down?>>>> then\n        switch costume to (upleft v)\n    end\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> and <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>>>> then\n        switch costume to (idle v)\n    end\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n    switch costume to (right v)\n    change [speed x v] by (SPEED)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > ((y position) + (10))> and <mouse down?>>>> then\n        switch costume to (upright v)\n    end\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> and <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>>>> then\n        switch costume to (up v)\n    end\nend\nset [speed x v] to ((speed x) * (0.8))\n\ndefine Move - In Steps (steps)\nchange [falling v] by (1)\nif <touching (levels v)?> then\n    X Collide\nend\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching (levels v)?> then\n        X Collide\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching (levels v)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen I receive [setup v]\ngo to x: (-190) y: (0)\nset [gravity v] to [-0.85]\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling v] to [10]\nset [level v] to [1]\nset [speed v] to [1.2]\nset [jump height v] to [10]\nset [wall jump kick v] to [15]\n\ndefine Extra Collisions\nif <<touching (spikes v)?> or <<touching (saws v)?> or <<touching (witch lava v)?> or <(y position) < [-178]>>>> then\n    start sound [Crunch v]\n    broadcast (Reset v)\nend\nif <<(x position) > [239]> and <(Level) < [11]>> then\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        change [level v] by (1)\n        broadcast (Reset v)\n        broadcast (Next Level v)\n    else\n        broadcast (No Treats v)\n    end\nend\nif <(Ghost Effect) = [yes]> then\n    set [gravity v] to [-0.2]\n    set [jump height v] to [6]\n    set [wall jump kick v] to [10]\n    if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<(mouse y) < (y position)> and <mouse down?>>>> then\n        set [speed v] to [0.5]\n    else\n        set [speed v] to [0.9]\n    end\n    stop [this script v]\nend\n\nwhen I receive [reset v]\ngo to x: (-190) y: (0)\nset size to (100) %\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling v] to [10]\n\nwhen I receive [play game v]\nshow\nbroadcast (Begin Early v)\nbroadcast (Ready v)\n\nwhen I receive [bounce v]\nset [speed y v] to [20]\n\nwhen I receive [extra jump v]\nset [speed y v] to (JUMP HEIGHT)\n\ndefine X Collide\nif <touching (levels v)?> then\n    if <touching (levels v)?> then\n        if <touching (levels v)?> then\n            change x by ((([abs v] of (speed x) ) / (speed x)) * (-1))\n        end\n        if <touching (levels v)?> then\n            repeat ([ceiling v] of ([abs v] of (speed y) ) )\n                if <touching (levels v)?> then\n                    change y by ((([abs v] of (speed y) ) / (speed y)) * (-1))\n                end\n            end\n        end\n    end\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > ((y position) + (10))> and <mouse down?>>>> then\n        set [speed y v] to (JUMP HEIGHT)\n        if <(speed x) > [0]> then\n            set [speed x v] to ((0) - (WALL JUMP KICK))\n        else\n            set [speed x v] to (WALL JUMP KICK)\n        end\n    else\n        set [speed x v] to [0]\n    end\n    stop [this script v]\nend\n\nwhen flag clicked\nset [streats v] to [0]\n\n@Levels\n\nwhen I receive [setup v]\nhide\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nswitch costume to (Level)\n\nwhen I receive [play game v]\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        if <(STreats) = [2]> then\n            if <key (s v) pressed?> then\n                switch costume to (slevel v)\n                broadcast (Secret Level v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\n@Levels2\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nif <<(Level) = [3]> or <(Level) = [4]>> then\n    if <(Level) = [3]> then\n        show\n        switch costume to (1 v)\n        if <touching (player v)?> then\n            set [ghost v] effect to (25)\n            switch costume to (2 v)\n        else\n            set [ghost v] effect to (0)\n            switch costume to (1 v)\n        end\n    end\n    if <(Level) = [4]> then\n        show\n        switch costume to (3 v)\n        if <touching (player v)?> then\n            set [ghost v] effect to (25)\n            switch costume to (4 v)\n        else\n            switch costume to (3 v)\n            set [ghost v] effect to (0)\n        end\n    end\nelse\n    hide\nend\n\n@Saws\n\nwhen I receive [play game v]\nshow\n\nwhen I receive [next level v]\nhide\nshow\n\nwhen I receive [play game v]\nforever\n    change [rotate v] by (1)\n    point in direction ((90) + (([sin v] of ((Rotate) * (2)) ) * (300)))\n    if <(Level) = [1]> then\n        Position [-110] [-100]\n    end\n    if <(Level) = [2]> then\n        Position [18] [50]\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        Position [233] [85]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [saw layer v]\ngo to [back v] layer\n\nwhen I receive [play game v]\nbroadcast (Saw Layer v)\nset [collected v] to [0]\n\nwhen flag clicked\nhide\n\n@Clouds\n\nwhen I start as a clone\nset [cos# v] to (pick random (1) to (3))\nset [speed v] to (pick random (-4.5) to (-5.5))\nset [ghost v] effect to (pick random (10) to (20))\nset [brightness v] effect to (pick random (-2) to (2))\nset size to (pick random (95) to (105)) %\ngo to [back v] layer\nshow\ngo to x: (225) y: (pick random (80) to (170))\nrepeat until <(x position) < [-225]>\n    change x by (speed)\nend\nrepeat (55)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen I receive [play game v]\ngo to [back v] layer\nhide\nforever\n    wait (pick random (pick random (1) to (1.5)) to (pick random (1.6) to (2.1))) seconds\n    next costume\n    create clone of (_myself_ v)\n    wait (pick random (pick random (0.35) to (0.65)) to (pick random (0.35) to (0.65))) seconds\n    next costume\n    create clone of (_myself_ v)\nend\n\n@Treats\n\nwhen I receive [tick v]\nif <touching (player v)?> then\n    start sound [Collect v]\n    change [secret treats v] by (1)\n    change [streats v] by (1)\n    delete this clone\nend\n\nwhen I receive [next level v]\nset [secret treats max v] to [0]\nset [secret treats v] to [0]\nLoad Level\n\nwhen I receive [setup v]\nhide\nswitch costume to (pumpkin-pop v)\nset [secret treats v] to [0]\nset [secret treats max v] to [0]\n\ndefine Clone at (x) (y)\ngo to x: (x) y: (y)\nchange [secret treats max v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\nshow\n\ndefine Load Level\nif <(Level) = [3]> then\n    go to [back v] layer\n    Clone at [90] [-82]\nelse\n    if <(Level) = [4]> then\n        go to [back v] layer\n        Clone at [163] [106]\n    end\nend\n\nwhen flag clicked\nset [secret treats max v] to [0]\nset [secret treats v] to [0]\nset [streats v] to [0]\n\n@Treats2\n\nwhen I receive [tick v]\nif <touching (player v)?> then\n    start sound [Collect v]\n    change [collected v] by (1)\n    delete this clone\nend\n\nwhen I receive [play game v]\nset [collected max v] to [0]\nset [collected v] to [0]\nLoad Level\n\nwhen I receive [setup v]\nhide\nswitch costume to (pumpkin-pop v)\nset [collected v] to [0]\nset [collected max v] to [0]\n\ndefine Clone at (x) (y)\ngo to x: (x) y: (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\nshow\n\ndefine Load Level\nif <(Level) = [1]> then\n    Clone at [-111] [-26]\n    Clone at [134] [-47]\nelse\n    if <(Level) = [2]> then\n        Clone at [-12] [-132]\n        Clone at [127] [-53]\n    else\n        if <(Level) = [3]> then\n            Clone at [-45] [15]\n            Clone at [75] [83]\n        else\n            if <(Level) = [4]> then\n                Clone at [-112] [95]\n                Clone at [147] [-83]\n            else\n                if <(Level) = [5]> then\n                    Clone at [-83] [76]\n                    Clone at [10] [23]\n                    Clone at [160] [-73]\n                else\n                    if <(Level) = [6]> then\n                        Clone at [-53] [-73]\n                        Clone at [30] [-20]\n                    else\n                        if <(Level) = [7]> then\n                            Clone at [-205] [160]\n                            Clone at [122] [10]\n                            Clone at [170] [148]\n                        else\n                            if <(Level) = [8]> then\n                                Clone at [46] [-68]\n                                Clone at [162] [-14]\n                            else\n                                if <(Level) = [9]> then\n                                    Clone at [-218] [166]\n                                    Clone at [-126] [22]\n                                    Clone at [100] [65]\n                                else\n                                    if <(Level) = [10]> then\n                                        Clone at [65] [-55]\n                                        Clone at [97] [175]\n                                        Clone at [-218] [169]\n                                    else\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\nset [collected max v] to [0]\nset [collected v] to [0]\nLoad Level\n\nwhen I receive [secret level v]\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\nClone at (pick random (-200) to (200)) (pick random (-80) to (10))\n\nwhen I receive [secret level v]\nforever\n    if <key (s v) pressed?> then\n        broadcast (Secret Level v)\n        wait until <not <key (s v) pressed?>>\n    end\nend\n\n@Collect All\n\nwhen I receive [setup v]\nhide\nset [ghost v] effect to (0)\n\nwhen I receive [no treats v]\nshow\nwait (2) seconds\nrepeat (40)\n    change [ghost v] effect by (2.5)\nend\nhide\nset [ghost v] effect to (0)\n\n@Menu\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [menu v]\nshow\ncreate clone of (_myself_ v)\n\nwhen I receive [play game v]\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to [front v] layer\ngo to x: (0) y: (140)\nshow\npoint in direction (82)\nset [turn v] to [0]\nrepeat (4)\n    change [turn v] by (1)\n    turn right (Turn) degrees\nend\nforever\n    repeat (8)\n        change [turn v] by (-1)\n        turn right (Turn) degrees\n    end\n    repeat (8)\n        change [turn v] by (1)\n        turn right (Turn) degrees\n    end\nend\n\n@Play\n\nwhen flag clicked\nset [ghost effect v] to [no]\nhide\n\nwhen I receive [menu v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [brightness v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            hide\n            broadcast (Play game v)\n            set [ghost effect v] to [no]\n        end\n    else\n        point in direction (90)\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [play game v]\nhide\nstop [other scripts in sprite v]\n\n@Play2\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nshow\nset size to (70) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (70) %\n        change size by (((120) - (size)) / (3))\n        set [brightness v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            hide\n            broadcast (Play game v)\n            set [ghost effect v] to [yes]\n        end\n    else\n        set size to (70) %\n        point in direction (90)\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [play game v]\nhide\nstop [other scripts in sprite v]\n\n@Witch Lava\n\nwhen I receive [tick v]\nshow\nswitch costume to (Level)\nset y to (([cos v] of ((timer) * (150)) ) * (5))\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nhide\n\n@Spikes\n\nwhen I receive [tick v]\nshow\nswitch costume to (Level)\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nhide\n\n@TN\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nclear graphic effects\nswitch costume to (thumbnail v)\nset size to (100) %\nset [ghost v] effect to (100)\nforever\n    set [stop detector v] to ((timer) + (0.1))\nend\n\nwhen [timer v] > (Stop Detector)\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nclear graphic effects\nswitch costume to (thumbnail v)\nset size to (100) %\nshow\ngo to [front v] layer\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\nend\n\n@Text\n\nwhen I receive [play game v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [setup v]\nhide\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nshow\nswitch costume to (Level)\n\nwhen I receive [secret level v]\nswitch costume to (s level v)\n\n
Spooky Halloween ||  A Platformer\n\nHappy Halloween!\n\nMade the game easier\n\nMust-read Instructions!\n\n---> How to play <---\n--> Spam Green Flag For Smoother Experience\n--> Use Arrow Keys, WASD, or Touch (mobile)\n--> Avoid Spikes, Lava and Falling off a cliff\n--> Find secret candies to get the secret level\n--> After finding secret candies press s to go to secret  \n     level\n--> Press s while in secret level to generate candy!\n\n\n\n--Goals--\n10 likes - ✔                                10 views - ✔\n50 likes -    ✔                               50 views - ✔\n100 likes -   ✔                            100 views - ✔\nmore than 100 likes!!! -    ✔          500 views - ✔\n                                                     1k+ views - ✔