Volcano || a platformer
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\n    wait (.2) seconds\n    if <key (p v) pressed?> then\n        set [level v] to ((Level) + (1))\n        broadcast (Screen v)\n    end\nend\n\nwhen I receive [screen v]\nwait (1) seconds\nif <(Level) = [9]> then\n    broadcast (g v)\nend\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nswitch backdrop to (9 v)\n\n@dude\n\nwhen flag clicked\nset [deaths v] to [0]\ndelete all of [lethal v]\nwait (1) seconds\nadd [lava] to [lethal v]\nadd [spinny] to [lethal v]\nadd [boom] to [lethal v]\nadd [boomx2] to [lethal v]\nadd [rocket] to [lethal v]\nset size to (500) %\ngo to x: (-150) y: (0)\nset [jump v] to [no]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    if <(Play-Game) = [yes]> then\n        show\n        if <key (right arrow v) pressed?> then\n            change [x velocity v] by (2)\n            switch costume to (costume1 v)\n        end\n        if <key (left arrow v) pressed?> then\n            change [x velocity v] by (-2)\n            switch costume to (costume3 v)\n        end\n        change x by (X Velocity)\n        if <touching (platform v)?> then\n            change x by ((X Velocity) * (-1))\n            set [x velocity v] to [0]\n        else\n            set [x velocity v] to ((X Velocity) * (0.8))\n        end\n        change y by (Y Velocity)\n        if <touching (platform v)?> then\n            change y by ((Y Velocity) * (-1))\n            set [y velocity v] to [0]\n            if <(Jump) = [yes]> then\n                if <key (up arrow v) pressed?> then\n                    set [y velocity v] to [15]\n                    set [jump v] to [no]\n                    switch costume to (costume2 v)\n                end\n            end\n        else\n            change [y velocity v] by (-1)\n            set [jump v] to [yes]\n        end\n        if <(x position) > [230]> then\n            broadcast (Screen v)\n            wait (1) seconds\n            set [level v] to ((Level) + (1))\n            go to x: (-200) y: (-42)\n            set [x velocity v] to [0]\n            set [x velocity v] to [0]\n        end\n        if <<<<touching ((item (1) of [lethal v]) v)?> or <<<touching ((item (2) of [lethal v]) v)?> or <touching ((item (3) of [lethal v]) v)?>> or <touching ((item (4) of [lethal v]) v)?>>> or <touching ((item (5) of [lethal v]) v)?>> or <touching ((item (6) of [lethal v]) v)?>> then\n            set [deaths v] to ((deaths) + (1))\n            go to x: (-200) y: (-42)\n            set [x velocity v] to [0]\n            set [y velocity v] to [0]\n        end\n        if <(y position) = [-181]> then\n            go to x: (-200) y: (-118)\n            set [x velocity v] to [0]\n            set [y velocity v] to [0]\n        end\n        if <(Level) = [16]> then\n            set [backdrop v] to [4]\n            set [play-game v] to [no]\n        end\n    else\n        hide\n    end\nend\n\nadd [platform] to [lethal v]\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@intro\n\nwhen flag clicked\nset [level v] to [intro]\npoint in direction (90)\nset size to (50) %\nhide\nswitch costume to (- v)\ngo to x: (0) y: (0)\nstart sound [keyboard v]\nrepeat (10)\n    show\n    next costume\n    wait (0.02) seconds\nend\nset [intro v] to [gogo]\nbroadcast (message1 v)\nwait (2) seconds\npoint in direction (90)\nset [intro v] to [nil]\nstart sound [kedr_sfx_ui_computer_complex_confirm_3 v]\nrepeat (50)\n    change size by (1)\n    wait (.001) seconds\nend\nset [intro v] to [gogo]\nstart sound [science_fiction_engine_shut_down v]\nrepeat (75)\n    change size by (-1)\n    wait (.0001) seconds\nend\nhide\nset [intro v] to [nil]\nshow\npoint in direction (90)\nstart sound [zapsplat_foley_wood_bambo_swoosh_through_air_001 v]\nset [level v] to [1]\nset [play-game v] to [yes]\nrepeat (25)\n    turn right (15) degrees\n    change x by (10)\nend\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    if <(intro) = [gogo]> then\n        repeat until <not <(intro) = [gogo]>>\n            point in direction (([sin v] of ((timer) * (700)) ) + (90))\n        end\n    end\nend\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@lava\n\nwhen flag clicked\nforever\n    if <(Play-Game) = [yes]> then\n        show\n        switch costume to (Level)\n    else\n        hide\n    end\n    wait (.3) seconds\nend\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@platform\n\nwhen flag clicked\nset [play-game v] to [no]\nforever\n    if <(Play-Game) = [yes]> then\n        switch costume to (Level)\n        show\n        go to x: (0) y: (0)\n    else\n        hide\n    end\nend\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@droplet\n\nwhen flag clicked\nhide\nforever\n    wait (1) seconds\n    if <(Play-Game) = [yes]> then\n        if <<(Level) = [2]> or <(Level) = [1]>> then\n            wait (pick random (1) to (4)) seconds\n            set [drop pos x v] to (pick random (1) to (4))\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nif <(drop pos x) = [1]> then\n    go to x: (-144) y: (126)\nend\nif <(drop pos x) = [2]> then\n    go to x: (-49) y: (101)\nend\nif <(drop pos x) = [3]> then\n    go to x: (56) y: (123)\nend\nif <(drop pos x) = [4]> then\n    go to x: (153) y: (135)\nend\nshow\nrepeat until <touching (platform v)?>\n    change y by (-5)\n    if <not <<(Level) = [1]> or <(Level) = [2]>>> then\n        delete this clone\n    end\nend\nswitch costume to (costume2 v)\nstart sound [zapsplat_cartoon_water_spill_001_46689 v]\nwait (0.01) seconds\ndelete this clone\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@Screen\n\nwhen flag clicked\nhide\n\nwhen I receive [screen v]\ngo to [front v] layer\ngo to x: (0) y: (412)\nshow\nglide (.5) secs to x: (0) y: (0)\nwait (.75) seconds\nglide (.5) secs to x: (0) y: (-400)\nwait (.75) seconds\nhide\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@spinny\n\nwhen flag clicked\nhide\nforever\n    wait (.1) seconds\n    if <<(Level) = [4]> or <(Level) = [7]>> then\n        go to x: (pick random (-248) to (248)) y: (188)\n        wait (pick random (1) to (4)) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\npoint towards (dude v)\nturn right (pick random (-20) to (20)) degrees\nstart sound [shing! v]\nrepeat (60)\n    move (10) steps\n    if <not <<(Level) = [4]> or <(Level) = [7]>>> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nrepeat (60)\n    next costume\n    wait (0.01) seconds\nend\n\nwhen I receive [screen v]\ndelete this clone\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@boom\n\nwhen flag clicked\nset size to (50) %\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nhide\nforever\n    wait (.1) seconds\n    if <<<(Level) = [5]> or <(Level) = [6]>> or <(Level) = [7]>> then\n        show\n        repeat until <not <<<(Level) = [5]> or <(Level) = [6]>> or <(Level) = [7]>>>\n            start sound [zapsplat_nature_water_blowing_air_bubbles_in_bowl_of_water_foam_001_46837 v]\n            repeat (40)\n                wait (0.01) seconds\n                create clone of (_myself_ v)\n            end\n            wait (5) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (2 v)\nif <(Level) = [5]> then\n    go to x: (pick random (-17) to (20)) y: (-80)\n    glide (.2) secs to x: (pick random (-17) to (20)) y: (0)\n    wait (.01) seconds\n    glide (.4) secs to x: (pick random (-17) to (20)) y: (-80)\n    delete this clone\nend\nif <<(Level) = [6]> or <(Level) = [7]>> then\n    go to x: (pick random (-95) to (-55)) y: (-80)\n    glide (.2) secs to x: (pick random (-95) to (-55)) y: (0)\n    wait (.01) seconds\n    glide (.4) secs to x: (pick random (-95) to (-55)) y: (-80)\n    delete this clone\nend\n\nset [level v] to [6]\n\nwhen flag clicked\nforever\n    if <(Play-Game) = [yes]> then\n        wait (.1) seconds\n        if <(Level) = [6]> then\n            go to x: (-75) y: (0)\n        end\n    end\nend\n\nwhen I receive [screen v]\ndelete this clone\n\nwhen I receive [g v]\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@boomx2\n\nwhen flag clicked\nset size to (50) %\ngo to x: (70) y: (0)\nswitch costume to (1 v)\nhide\nforever\n    wait (.1) seconds\n    if <<(Level) = [6]> or <(Level) = [7]>> then\n        show\n        repeat until <not <<(Level) = [6]> or <(Level) = [7]>>>\n            wait (2) seconds\n            start sound [lava v]\n            repeat (40)\n                wait (0.01) seconds\n                create clone of (_myself_ v)\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nswitch costume to (2 v)\ngo to x: (pick random (50) to (90)) y: (-80)\nglide (.2) secs to x: (pick random (50) to (90)) y: (0)\nwait (.01) seconds\nglide (.4) secs to x: (pick random (50) to (90)) y: (-80)\ndelete this clone\n\nset [level v] to [4]\n\nwhen I receive [screen v]\ndelete this clone\n\nwhen I receive [g v]\nstop [other scripts in sprite v]\nhide\n\n@like and fave\n\nwhen I receive [g v]\ngo to x: (0) y: (0)\nshow\nforever\n    point in direction (([sin v] of ((timer) * (400)) ) + (90))\nend\n\nwhen flag clicked\nhide\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\nset size to (105) %\n\n@oofs\n\nwhen flag clicked\nset [oofs id v] to [0]\nset [deaths v] to [0]\nforever\n    wait (.1) seconds\n    if <<(Play-Game) = [yes]> and <(Level) = [8]>> then\n        go to [front v] layer\n        wait (.8) seconds\n        show\n        if <(deaths) < [10]> then\n            go to x: (-151) y: (69)\n            switch costume to (deaths)\n        end\n        if <<(deaths) > [9]> and <(deaths) < [100]>> then\n            set [oofs id v] to [1]\n            go to x: (-180) y: (69)\n            switch costume to (letter (1) of (deaths))\n            create clone of (_myself_ v)\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(oofs id) = [1]> then\n        go to [front v] layer\n        go to x: (-130) y: (69)\n        switch costume to (letter (2) of (deaths))\n    else\n        delete this clone\n    end\nend\n\nwhen I receive [g v]\nhide\nstop [other scripts in sprite v]\n\ngo to x: (2) y: (-153)\n\n
Should I make a part two?\nsorry I accidentally unshared...\narrow keys to move\nlevel too hard? press p to skip.\nreport any bugs or glitches to me!\nI am adding levels every day!\n1 like- ✔️\n5 likes- ✔️\n10 likes- ✔️\n15 likes- ✔️ thanks @colfri !\n20 likes- ✔️  thanks @Thefirstonearth !\n25 likes- ✔️ thanks @rebeelli !\n30 likes- ✔️ thanks @Koper_213 !\n35 likes- ✔️ thanks @felix3001 !\n40 likes-✔️ thanks @Sentient1776 !