Thunderstorm - a platformer [Part 2]
@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\nset [level :d v] to [1]\nforever\n    switch backdrop to (level :D)\nend\n\nwhen flag clicked\nforever\n    play sound [Imagine Dragons - Thunder \(Lyrics\) v] until done\nend\n\nwhen [m v] key pressed\nset volume to (0) %\n\nwhen [u v] key pressed\nset volume to (70) %\n\nwhen flag clicked\nset volume to (70) %\n\nwhen flag clicked\nif <(backdrop [number v]) = [9]> then\n    broadcast (clouds v)\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        broadcast (clouds v)\n        stop [this script v]\n    end\nend\n\n@thumb\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nchange [ghost v] effect by (100)\n\n@rain\n\nwhen flag clicked\nforever\n    wait (.1) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nshow\ngo to x: (70) y: (165)\nforever\n    change y by (-1)\nend\n\nwhen I start as a clone\npoint in direction (90)\ngo to (random position v)\nswitch costume to (pick random (1) to (2))\nforever\n    change y by (-1)\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-150]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait (2) seconds\ndelete this clone\n\nwhen flag clicked\nforever\n    wait (.1) seconds\n    go to [front v] layer\n    wait (.1) seconds\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@player\n\ndefine Platformer engine\nchange [y v] by (-0.5)\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x v] by (-0.8)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x v] by (0.8)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (-6)\n                        change x by ((x) * (-1))\n                        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                            set [y v] to [10]\n                            if <(x) > [0]> then\n                                set [x v] to [-10]\n                            else\n                                set [x v] to [10]\n                            end\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y)\nif <touching (ground v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <(x position) > [200]> then\n    change [level :d v] by (1)\n    go to x: (x \(spawn\)) y: (y \(spawn\))\nend\nif <touching (trampoline v)?> then\n    start sound [Big Boing v]\n    set [y v] to [15]\nend\nif <[-195] > (y position)> then\n    go to x: (x \(spawn\)) y: (y \(spawn\))\nend\nif <touching (obstacles v)?> then\n    start sound [Crunch v]\n    go to x: (x \(spawn\)) y: (y \(spawn\))\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nshow\nforever\n    if <(y position) < [-128]> then\n        go to x: (x position) y: (-128)\n    end\nend\n\nwhen flag clicked\nswitch costume to (normal v)\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (right v)\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        switch costume to (up v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (left v)\n    end\nend\n\nwhen flag clicked\nset [level :d v] to [1]\npoint in direction (90)\nset [x \(spawn\) v] to [-164]\nset [y \(spawn\) v] to [-82]\ngo to x: (x \(spawn\)) y: (y \(spawn\))\nshow\nset size to (50) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Platformer engine\nend\n\n@ground\n\nset [level :d v] to [2]\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\nset [level :d v] to [1]\nforever\n    switch costume to (level :D)\nend\n\n@obstacles\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [level :d v] to [1]\nforever\n    switch costume to (level :D)\nend\n\nset [level :d v] to [6]\n\n@trampoline\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [level :d v] to [1]\nforever\n    switch costume to (level :D)\nend\n\n@light\n\nwhen flag clicked\nforever\n    if <(level :D) = [8]> then\n        wait (pick random (1) to (10)) seconds\n        show\n        change [ghost v] effect by (10)\n        wait (.03) seconds\n        clear graphic effects\n        hide\n        go to x: (0) y: (0)\n        hide\n    end\nend\n\n@clouds!\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (20) to (40))\n\nwhen I start as a clone\nshow\nglide (pick random (4) to (6)) secs to x: (-284) y: (y position)\ndelete this clone\n\nwhen I receive [start game v]\nset x to (190)\nhide\n\nwhen I receive [clouds v]\nforever\n    set y to (pick random (100) to (120))\n    create clone of (_myself_ v)\n    wait (pick random (2) to (3)) seconds\nend\n\n
Iris - 2021\n\n‧̍̊·̊‧̥°̩̥˚̩̩̥͙°̩̥‧̥·̊‧̍̊ ♡ °̩̥˚̩̩̥͙°̩̥ ·͙*̩̩͙˚̩̥̩̥*̩̩̥͙·̩̩̥͙*̩̩̥͙˚̩̥̩̥*̩̩͙‧͙ °̩̥˚̩̩̥͙°̩̥ ♡ ‧̍̊·̊‧̥°̩̥˚̩̩̥͙°̩̥‧̥·̊‧̍̊\n\n\n꧁Hi!꧂\n\n\n───✱*.｡:｡✱*.:｡✧*.｡✰*.:｡✧*.｡:｡*.｡✱ ───\n\n⌨ Info\nThunderstorm - a platformer\nYay! Part 2 is finally out!! :D\nPart 1 - https://scratch.mit.edu/projects/493332841/\n\n⌦Instructions:\nArrow keys, WASD to move. \nPress M for no music, and U for music! :)\nOop! This time no skips :P\n\n⚠️Warnings:\nEpilepsy warning - Flashing Lights\nPls don't steal or use anything without credit. Else you will be reported :| Also, pls don't steal or use this description.\n\n☊ Recommendations:\n✔️ Laptop, Headphones, Speaker\n✖️ Full screen, Mobile, iPads\n\n✉ Notes:\nAll levels are possible!\nSome may be hard, but they're ALL possible.\nDifficulty: Medium-ish\n\n☎ Credits:\nMusic: Thunder - Imagine Dragons\nMe for code and art.\nDescription by: Me!\n\n✂ Inspiration:\nNoneee!\n\n✈ Extras:\nPls no cheating.\nI worked on this for 70+ hours! A love, fave and follow will be appreciated :) \nFeel free to remix! Just, change something and give credit :P \n\n↬ End:\nYou have reached the end!\nI Hope you enjoyed playing!\n\n❤ Iris logged off =^..^=