[Entry] Halloween || A 360 Platformer #games #art #music
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [green flag v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\n\nforever\n    play sound [halloween-background-music-royalty-free-instrumental-music-for-videos v] until done\nend\n\n@Intro\n\nwhen I start as a clone\nif <(cloneid) = [7]> then\n\nwhen I start as a clone\nif <(ID) = [8]> then\n    forever\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\npoint in direction (90)\nhide\nswitch costume to (filler v)\nset [id v] to [5]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nswitch costume to (filler2 v)\nset [id v] to [6]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nswitch costume to (filler3 v)\nset [id v] to [5]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nswitch costume to (filler4 v)\nset [id v] to [6]\ncreate clone of (_myself_ v)\nwait (1) seconds\nhide\npoint in direction (-90)\nset rotation style [all around v]\nset [id v] to [8]\ngo to x: (-240) y: (180)\nrepeat (6)\n    repeat (8)\n        set [id v] to [8]\n        create clone of (_myself_ v)\n        change x by (71)\n    end\n    set x to (-240)\n    change y by (-72)\nend\ngo to x: (0) y: (0)\npoint in direction (90)\nwait (7) seconds\nbroadcast (Green flag v)\n\nwhen I start as a clone\n\nwhen I start as a clone\nif <(ID) = [2]> then\n    set size to (100) %\n    switch costume to (filler 1 v)\n    clear graphic effects\n    go to x: (-480) y: (0)\n    show\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) / (12))\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [3]> then\n    set size to (100) %\n    switch costume to (filler 2 v)\n    clear graphic effects\n    go to x: (480) y: (0)\n    show\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) / (12))\n    end\nend\n\nwhen flag clicked\nwait (3.5) seconds\npoint in direction (90)\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\nset [id v] to [3]\ncreate clone of (_myself_ v)\nset [id v] to [4]\ncreate clone of (_myself_ v)\nset [id v] to [9]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(ID) = [4]> then\n    point in direction (0)\n    set size to (0) %\n    switch costume to (pfp full v)\n    clear graphic effects\n    set [ghost v] effect to (100)\n    go to x: (0) y: (-360)\n    show\n    repeat until <<(round (size)) = [100]> and <<(round (direction)) = [90]> and <(round (y position)) = [80]>>>\n        change [ghost v] effect by (-10)\n        change y by (((0) - (y position)) / (4))\n        change size by (((100) - (size)) / (4))\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [5]> then\n    set size to (100) %\n    clear graphic effects\n    go to x: (480) y: (360)\n    show\n    repeat until <<(round (y position)) = [0]> and <(round (x position)) = [0]>>\n        change y by (((0) - (y position)) / (4))\n        change x by (((0) - (x position)) / (4))\n    end\n    wait (0.1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [6]> then\n    set size to (100) %\n    clear graphic effects\n    go to x: (-480) y: (-360)\n    show\n    repeat until <<(round (y position)) = [0]> and <(round (x position)) = [0]>>\n        change y by (((0) - (y position)) / (4))\n        change x by (((0) - (x position)) / (4))\n    end\n    wait (0.1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [7]> then\n    set size to (100) %\n    clear graphic effects\n    go to x: (-480) y: (-360)\n    show\n    repeat until <<(round (y position)) = [0]> and <(round (x position)) = [0]>>\n        change y by (((0) - (y position)) / (4))\n        change x by (((0) - (x position)) / (4))\n    end\n    wait (0.32) seconds\n    delete this clone\nend\n\nswitch costume to (filler v)\n\nswitch costume to (filler2 v)\n\nswitch costume to (filler2 v)\n\nwhen I start as a clone\nif <(ID) = [8]> then\n    show\n    switch costume to (filler5 v)\n    set size to (0) %\n    repeat (28)\n        turn right (((90) - (direction)) / (3)) degrees\n        change size by (((205) - (size)) / (5))\n    end\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [1]> then\n    set size to (100) %\n    clear graphic effects\n    go to x: (0) y: (0)\n    show\n    forever\n        switch costume to (blank v)\n        set size to (150) %\n        switch costume to (slide v)\n        repeat (8)\n            change x by (-6)\n            change y by (6)\n        end\n        go to x: (0) y: (0)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [4]> then\n    forever\n        point in direction ((([tan v] of ((turn) * (150)) ) * (5)) + (90))\n        change [turn v] by (0.04)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [9]> then\n    point in direction (0)\n    set size to (0) %\n    switch costume to (untitled drawing \(2\) v)\n    clear graphic effects\n    set [ghost v] effect to (100)\n    go to x: (0) y: (360)\n    show\n    repeat until <<(round (size)) = [100]> and <<(round (direction)) = [90]> and <(round (y position)) = [80]>>>\n        change [ghost v] effect by (-10)\n        turn right (((90) - (direction)) / (4)) degrees\n        change y by (((80) - (y position)) / (4))\n        change size by (((100) - (size)) / (4))\n    end\nend\n\nwhen flag clicked\nplay sound (pick random (1) to (2)) until done\nbroadcast (Delete v)\nset [id v] to [10]\ncreate clone of (_myself_ v)\n\nwhen I receive [delete v]\nwait (0.6) seconds\ndelete this clone\n\nwhen I start as a clone\nif <(ID) = [10]> then\n    set size to (100) %\n    switch costume to (filler v)\n    clear graphic effects\n    go to x: (-480) y: (0)\n    show\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) / (4))\n    end\n    delete this clone\nend\n\n@Platform\n\ndefine SET HACK SIZE TO (number or text)\nswitch costume to (size hack v)\nset size to (number or text) %\nswitch costume to (costume1 v)\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\n\nplay sound [Sunshine v] until done\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\nbroadcast (respawn v)\nSET HACK SIZE TO [200]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [d vel v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        change [d vel v] by (0.2)\n    end\n    set [d vel v] to ((d vel) * (0.8))\n    turn right (d vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((d vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y vel)\n    if <touching (player v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    if <key (r v) pressed?> then\n        broadcast (respawn v)\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nforever\n    play sound [halloween-background-music-royalty-free-instrumental-music-for-videos v] until done\nend\n\nwhen I receive [win v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\n\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nplay sound [Sunshine v] until done\n\nwhen flag clicked\nif <(lvl) = [1]> then\n    switch costume to (costume1 v)\nend\n\nwhen I receive [lvl2 v]\nswitch costume to (costume2 v)\nset [d vel v] to [0]\nset [y vel v] to [0]\nbroadcast (respawn v)\n\nwhen I receive [lvl2 v]\n\nnext costume\n\nforever\n\nnext costume\n\n\n\nswitch costume to (costume2 v)\n\n@player\n\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> and <touching (level v)?>> then\n    set [y v] to [15]\n    switch costume to (costume4 v)\n    start sound [Jump v]\nend\n\nwhen flag clicked\ngo to x: (0) y: (-1)\nhide\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#013750)?> then\n        set [y vel v] to [-20]\n    end\n    if <touching color (#57d0ff)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#429fc3)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#44ff00)?> then\n        broadcast (lvl2 v)\n        set [lvl v] to [2]\n    end\n    if <touching color (#1f7600)?> then\n        broadcast (Win v)\n        stop [other scripts in sprite v]\n    end\n    if <touching color (#ff0c0c)?> then\n        broadcast (respawn v)\n    end\n    change y by (5)\nend\n\nwhen I receive [green flag v]\nshow\n\nwhen flag clicked\nforever\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        switch costume to (costume3 v)\n    else\n        switch costume to (costume1 v)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        switch costume to (costume2 v)\n    end\nend\n\n@ clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset size to (pick random (50) to (80)) %\nshow\ngo to [back v] layer\nset [ghost v] effect to (20)\nswitch costume to (pick random (1) to (4))\nif <(side) = [1]> then\n    go to x: (300) y: (pick random (150) to (100))\n    repeat until <(x position) < [-250]>\n        change x by (-1)\n    end\n    delete this clone\nend\nif <(side) = [2]> then\n    go to x: (-300) y: (pick random (150) to (100))\n    repeat until <(x position) > [250]>\n        change x by (1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    go [backward v] (1) layers\n    go to [back v] layer\nend\n\nwhen I receive [green flag v]\nforever\n    set [side v] to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (1) to (2)) seconds\nend\n\n@Win\n\nwhen flag clicked\ngo to x: (1) y: (113)\nhide\n\nwhen I receive [win v]\nshow\n\n@Spikes\n\nwhen I receive [green flag v]\nshow\ngo to [back v] layer\npoint in direction (90)\nSet hack size to ([size v] of [platform v])\nforever\n    go to (platform v)\n    point in direction ([direction v] of [platform v])\nend\n\ndefine Set hack size to (size)\nswitch costume to (size hack v)\nset size to (size) %\nswitch costume to (costume1 v)\n\nwhen I receive [green flag v]\nforever\n    change y by (1)\n    if <touching (player v)?> then\n        broadcast (respawn v)\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(lvl) = [1]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n@Fog\n\nwhen I start as a clone\nset x to (554)\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-2)\n    go to [back v] layer\n    go [forward v] (9) layers\n    change x by (-1)\n    if <(x position) = [0]> then\n        create clone of (_myself_ v)\n    end\n    if <(x position) = [-554]> then\n        delete this clone\n    end\nend\nforever\n    set [ghost v] effect to (80)\n    go to [back v] layer\n    go [forward v] (9) layers\n    change x by (-1)\n    if <(x position) = [0]> then\n        create clone of (_myself_ v)\n    end\n    if <(x position) = [-554]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\n\nwhen I receive [green flag v]\nset [ghost v] effect to (80)\ngo to x: (0) y: (0)\nshow\ncreate clone of (_myself_ v)\nforever\n    change x by (-1)\n    if <(x position) = [-554]> then\n        hide\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\ndelete this clone\n\nwhen I receive [stoap v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@TN\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n
Happy Halloween!!! Part 2 #20\n\nCredits - Major thanks to @Kool_Kodes for 360 engine!!! Also @TimMcCool For fog. And @CoderMcCode for my amazing Intro\n\nControls - WASD/Keys/Mobile to move the player. Press R to restart.\n\nPlease love and fave for more\n\n#games #art #music