A Materialistic Platformer
@Stage\n\nwhen I receive [start v]\nforever\n    play sound [8-Bit Numa Numa v] until done\nend\n\n@Cube\n\nwhen I receive [start v]\nshow\nset size to (70) %\ngo to x: (-207) y: (-34)\nforever\n    change [yv v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        if <(water) = [0]> then\n            change [xv v] by (0.7)\n        end\n    end\n    go to [front v] layer\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n        change y by (1)\n        if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n            change y by (1)\n            if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n                change y by (1)\n                if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n                    change y by (1)\n                    if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n                        change y by (1)\n                    end\n                    if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n                        change x by ((Xv) * (-1))\n                        change x by (-1)\n                        change y by (-5)\n                        change x by (1)\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            if <(Xv) < [0]> then\n                                set [yv v] to [10]\n                                set [xv v] to [10]\n                            else\n                                set [yv v] to [10]\n                                set [xv v] to [-10]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <<touching color (#dddddd)?> or <touching color (#bcbcbc)?>> then\n            if <(water) = [0]> then\n                set [yv v] to [8]\n            end\n        end\n    end\n    if <touching color (#250000)?> then\n        set [yv v] to [15]\n    end\n    change y by (1)\n    if <touching (level_sensor v)?> then\n        broadcast (NextLevel v)\n        go to x: (-207) y: (-130)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-207) y: (-130)\n        broadcast (Position v) and wait\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (-207) y: (-34)\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nbroadcast (Position v) and wait\n\nwhen I receive [position v]\nif <([costume # v] of [world v]) = [10]> then\n    go to x: (-218) y: (37)\nend\nstop [this script v]\n\nwhen I receive [skip level v]\ngo to x: (-207) y: (-130)\n\n@-Thumbnail-\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\n@World\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [nextlevel v]\nnext costume\nwait (0.5) seconds\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [start v]\nshow\n\n@Level_sensor\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [shocky thing v]\nswitch costume to (costume2 v)\nwait (0.2) seconds\nswitch costume to (costume1 v)\n\nwhen I receive [almost start v]\nwait (2) seconds\nhide\n\nwhen flag clicked\nstart sound [Still Standing v]\n\nwhen I receive [almost start v]\nrepeat until <(volume) = [0]>\n    change volume by (-5)\nend\nclear sound effects\n\nwhen flag clicked\nset volume to (100) %\n\nwait (0.3) seconds\n\n@Sprite1\n\nwhen flag clicked\npoint in direction (90)\npoint in direction (90)\nset size to (100) %\nset [move v v] to [21]\ngo to [front v] layer\nhide\nwait (0.3) seconds\ngo to x: (-302) y: (0)\nshow\nrepeat until <(move v) < [1]>\n    change x by (move v)\n    change [move v v] by (-0.8)\nend\nset size to (100) %\nset [size z v] to [-6]\nwait (1) seconds\nbroadcast (Rotate v)\nbroadcast (shocky thing v)\nrepeat until <(SIZE z) > [7]>\n    change [size z v] by (0.7)\n    change size by (SIZE z)\nend\nrepeat until <(SIZE z) < [1]>\n    change [size z v] by (-0.7)\n    change size by (SIZE z)\nend\nbroadcast (Breeze v)\nwait (0.8) seconds\nrepeat until <(x position) > [290]>\n    change x by (10)\n    turn right (15) degrees\nend\nhide\nwait (1.5) seconds\nbroadcast (logo v)\n\nwhen I receive [rotate v]\npoint in direction (90)\nrepeat (15)\n    turn right (24) degrees\nend\n\n@Breeze\n\nwhen I start as a clone\ngo to [front v] layer\npoint in direction (pick random (105) to (75))\nset [ghost v] effect to (pick random (50) to (70))\nshow\ngo to x: (-236) y: (pick random (-36) to (29))\nglide (1.6) secs to x: (236) y: (pick random (-48) to (37))\ndelete this clone\n\nwhen I receive [breeze v]\nhide\nrepeat (35)\n    create clone of (_myself_ v)\nend\n\nwait (0.1) seconds\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [logo v]\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nwait (2) seconds\nbroadcast (almost start v)\nwait (2) seconds\nbroadcast (start v)\nhide\n\n@Sprite3\n\nwhen I receive [start v]\ngo to [front v] layer\nset [ghost v] effect to (50)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\nend\n\nwhen flag clicked\ngo to x: (-35) y: (167)\nhide\n\nwhen I receive [skip level v]\nbroadcast (NextLevel v)\n\nwhen flag clicked\nforever\n    if <not <([costume # v] of [world v]) = [13]>> then\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (Skip Level v)\n            wait (1) seconds\n        end\n    end\nend\n\n
****Added skip level button + new intro****\n-A Materialistic Platformer-\nWelcome to my newest Platformer! This was a pretty fun game to make. I hope you enjoy it! :)\n-Instructions-\nArrow keys or WASD keys to move your character and jump-\nAvoid the lasers-\nJump on the tires to bounce-\n\nIf you enjoyed this project make sure to leave a love and fav, also be sure to check out my other games as well! Thank you.