Volcano | #Platformer #All #Games
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [intro ended v]\nnext backdrop\n\n@Player\n\nwhen I start as a clone\nswitch costume to (black v)\nrepeat (7)\n    change [ghost v] effect by (7)\n    change size by (-3)\nend\ndelete this clone\n\nwhen I receive [intro ended v]\nshow\ngo to x: (-154) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    switch costume to (player v)\n    go to [front v] layer\n    create clone of (_myself_ v)\n    if <<<mouse down?> and <(mouse x) > (x position)>> or <key (right arrow v) pressed?>> then\n        change [x v] by (2)\n        switch costume to (right v)\n    end\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n        switch costume to (left v)\n        change [x v] by (-2)\n    end\n    set [x v] to ((x) * (0.8))\n    change x by (round (x))\n    if <touching (level v)?> then\n        change x by (round ((x) * (-1)))\n        if <<<mouse down?> and <(mouse y) > (y position)>> or <key (up arrow v) pressed?>> then\n            switch costume to (up v)\n            if <(x) > [0]> then\n                set [x v] to [-13]\n            else\n                set [x v] to [13]\n            end\n            set [y v] to [14]\n        else\n            set [x v] to [0]\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<<mouse down?> and <(mouse y) > (y position)>> or <key (up arrow v) pressed?>>> then\n        set [y v] to [12]\n    end\n    change y by (1)\n    if <(x position) > [233]> then\n        set x to (-240)\n        broadcast (next level v)\n    end\n    if <<<touching (danger v)?> or <touching (lava v)?>> or <(y position) < [-180]>> then\n        change [ghost v] effect by (50)\n        go to x: (-206) y: (-30)\n        wait (0.05) seconds\n        set [ghost v] effect to (0)\n    end\n    if <touching (bounce v)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen flag clicked\nhide\n\n@Level\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nwhen I receive [intro ended v]\nshow\nset [level v] to [1]\ngo to x: (0) y: (10)\nswitch costume to (1 v)\n\nwhen flag clicked\nhide\n\n@Danger\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [intro ended v]\nshow\ngo to x: (0) y: (10)\nswitch costume to (1 v)\n\nwhen flag clicked\nhide\n\n@Lava\n\nwhen I receive [next level v]\nforever\n    if <([costume # v] of [level v]) = [6]> then\n        wait (0) seconds\n        show\n        set size to (100) %\n        go to x: (11) y: (-62)\n        forever\n            glide (0.8) secs to x: (11) y: (-50)\n            wait (0.05) seconds\n            glide (0.8) secs to x: (11) y: (-62)\n            wait (0.05) seconds\n        end\n    end\n    if <([costume # v] of [level v]) = [8]> then\n        show\n        set size to (100) %\n        go to x: (11) y: (-62)\n        forever\n            glide (0.8) secs to x: (11) y: (-50)\n            wait (0.05) seconds\n            glide (0.8) secs to x: (11) y: (-62)\n            wait (0.05) seconds\n        end\n    end\n    if <([costume # v] of [level v]) = [17]> then\n        show\n        set size to (200) %\n        go to x: (48) y: (-173)\n        forever\n            glide (0.8) secs to x: (48) y: (-153)\n            wait (0.05) seconds\n            glide (0.8) secs to x: (48) y: (-173)\n            wait (0.05) seconds\n        end\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <([costume # v] of [level v]) = [7]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [9]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [18]> then\n        hide\n    end\nend\n\nwhen I receive [intro ended v]\ngo to [back v] layer\nhide\n\n@Bounce\n\nwhen I receive [intro ended v]\nswitch costume to (1 v)\nforever\n    if <<(Level) = [11]> or <(Level) = [13]>> then\n        show\n        if <(Level) = [11]> then\n            go to x: (-113) y: (-66)\n        end\n        if <(Level) = [13]> then\n            go to x: (-145) y: (-66)\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [intro ended v]\nforever\n    if <touching (player v)?> then\n        start sound [Big Boing v]\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\n@vol\n\nwhen [s v] key pressed\nchange [music v] by (1)\n\nwhen I receive [intro ended v]\nset [music v] to [1]\nhide\ngo to x: (213) y: (-112)\nforever\n    if <(music) = [2]> then\n        show\n    end\n    if <(music) = [3]> then\n        hide\n    end\n    if <(music) > [2]> then\n        set [music v] to [1]\n    end\nend\n\nwhen flag clicked\nhide\n\n@slider\n\nwhen flag clicked\nhide\nset volume to (volume) %\ngo to (vol v)\ngo to [front v] layer\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat until <not <mouse down?>>\n            set [volume v] to ((mouse y) - (-169))\n            if <(volume) < [0]> then\n                set [volume v] to [0]\n            else\n                if <(volume) > [100]> then\n                    set [volume v] to [100]\n                end\n            end\n            slider\n            set y to (mouse y)\n            if <(y position) > [-80]> then\n                set [-80]\n            end\n            if <(y position) < [-146]> then\n                set [-146]\n            end\n        end\n    end\nend\n\ndefine set (y)\nset y to (y)\n\ndefine slider\ngo to x: (213) y: ((-169) + (volume))\n\nwhen I receive [intro ended v]\nhide\nforever\n    if <(music) = [2]> then\n        show\n    end\n    if <(music) = [3]> then\n        hide\n    end\nend\n\nwhen I receive [intro ended v]\nhide\nforever\n    set volume to (volume) %\nend\n\nwhen I receive [intro ended v]\nset [volume v] to [50]\nforever\n    play sound (pick random (1) to (2)) until done\nend\n\n@YOUR Intro\n\nwhen flag clicked\nhide\nReset\nset [waiting v] to [0]\nset [clonenumber v] to [0]\nset [sides v] to [0]\nset [value v] to [0]\nset [velocity v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (name v)\nstart sound [Electro-Light - Symbolism v]\nwait (1.82) seconds\nset [clonenumber v] to [1]\nset [i v] to [5]\nrepeat (10)\n    create clone of (_myself_ v)\n    if <(sides) = [1]> then\n        set [sides v] to [0]\n        change [value v] by (10)\n        change [i v] by (-.4)\n    else\n        set [sides v] to [1]\n    end\nend\nset [clonenumber v] to [2]\nwait (.3) seconds\nrepeat (4)\n    create clone of (_myself_ v)\n    change [value v] by (10)\n    wait (0.1) seconds\nend\nclear graphic effects\nswitch costume to (name v)\ngo [forward v] (99) layers\ngo to [front v] layer\nset size to (0) %\nshow\nrepeat until <(round (size)) = [50]>\n    change size by (((50) - (size)) / (3))\nend\ncreate clone of (_myself_ v)\nwait until <touching color (#fbffe6)?>\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\nset [velocity v] to [17]\nset [waiting v] to [1]\nset [clonenumber v] to [3]\ncreate clone of (_myself_ v)\nset [clonenumber v] to [4]\ncreate clone of (_myself_ v)\nset [waiting v] to [2]\nrepeat (25)\n    go [forward v] (99) layers\n    set [velocity v] to ((velocity) * (.95))\n    set size to ((100) + (velocity)) %\nend\nreset timer\nrepeat until <(timer) > [3]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((150) - (size)) / (3))\nend\npoint in direction (90)\nset [value v] to [5]\nrepeat (16)\n    turn right (value) degrees\n    change [value v] by (1)\nend\nrepeat until <(round (direction)) = [90]>\n    turn right (((90) - (direction)) / (5)) degrees\nend\nrepeat until <(timer) > [6]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((175) - (size)) / (3))\nend\nset [velocity v] to [12]\nrepeat (30)\n    change size by (velocity)\n    change [velocity v] by (-1)\n    change [ghost v] effect by (3.3)\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\nend\nbroadcast (Intro End Animation v)\nhide\n\nwhen I start as a clone\nif <(clonenumber) = [0]> then\n    Reset\n    show\n    set size to (0) %\n    point in direction (-15)\n    switch costume to (square v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    repeat (15)\n        change [value v] by (1)\n        turn right (value) degrees\n        change [velocity v] by (1)\n        change size by (velocity)\n    end\n    set [value v] to [8]\n    repeat (30)\n        set [value v] to (((value) * (0.69)) + ((90) - (direction)))\n        turn right (value) degrees\n    end\n    repeat (12)\n        next costume\n    end\n    repeat until <(round (size)) = [2000]>\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\nend\n\ndefine Reset\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [1]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    switch costume to (square13 v)\n    set [brightness v] effect to (value)\n    go to x: (0) y: (0)\n    set [i v] to (i)\n    if <(sides) = [1]> then\n        repeat until <(round (y position)) = [180]>\n            change y by (((180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat until <(round (y position)) = [-180]>\n            change y by (((-180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [2]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (240) y: (-180)\n    point in direction (-135)\n    switch costume to (screen v)\n    repeat until <(round (direction)) = [90]>\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait until <(waiting) = [1]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [3]> then\n    Reset\n    show\n    go to [front v] layer\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nif <(clonenumber) = [4]> then\n    Reset\n    clear graphic effects\n    show\n    go to [front v] layer\n    go [forward v] (999) layers\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Move and Clones\nset [clonenumber v] to [5]\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [5]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    point in direction (90)\n    switch costume to (sidesquareline v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    go to [front v] layer\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait until <(waiting) = [2]>\nreset timer\nrepeat until <(timer) > [6]>\n    Move and Clones\n    wait (1) seconds\nend\n\nwhen I receive [intro end animation v]\nif <not <(costume [number v]) = [14]>> then\n    repeat (20)\n        change size by (((0) - (size)) / (5))\n        change [ghost v] effect by (5)\n    end\nelse\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n        switch costume to (blank v)\n        switch costume to (square v)\n    end\n    set [velocity v] to [12]\n    repeat (30)\n        change size by (velocity)\n        change [velocity v] by (-1)\n        change [ghost v] effect by (3.3)\n        turn right (([abs v] of (velocity) ) / (2)) degrees\n    end\n    delete this clone\nend\nwait (1.80) seconds\nbroadcast (INTRO ENDED v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n
  How to play:                      \n •  Arrow keys to move\n •  Avoid spikes and lava\n •  S to show the sound slider\n •  Try to play till the end\n\n\nHope you enjoy the game! :)\n\n\n\n#volcano #platfomer #trending #popular #all \n#games\n\n