LOST CUBE-- A PLATFORMER

Instructions: I Added a story line\n-Use arrow keys only\n-Not mobile friendly\n-Bounce on water\n-Avoid lava and saws\n      The hardest part of this was either trying to make the water realistic or making the saws cemetrical so they don't look weird while they spin or coding the big black square go down pretty fast, slow down, stop, and then go back up at a good speed.\n       My absolute favorite part about making this project was making the art which I always love to do\n\n   And if you have successfully scrolled all the way down to here please Heart, Star, Comment and Follow!!!

@Stage\n\n@Sprite1\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\nclear graphic effects\nshow\nset [⇤xv v] to [0]\nset [↓yv v] to [0]\nset [✺level v] to [1]\nReset\nforever\n    if <key (right arrow v) pressed?> then\n        change [⇤xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [⇤xv v] by (-1)\n    end\n    set [⇤xv v] to ((⇤Xv) * (0.85))\n    change x by (⇤Xv)\n    if <touching (sprite2 v)?> then\n        change y by (1)\n        if <touching (sprite2 v)?> then\n            change y by (1)\n            if <touching (sprite2 v)?> then\n                change y by (1)\n                if <touching (sprite2 v)?> then\n                    change y by (1)\n                    if <touching (sprite2 v)?> then\n                        change y by (1)\n                        if <touching (sprite2 v)?> then\n                            change x by ((⇤Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(⇤Xv) > [0]> then\n                                    set [⇤xv v] to [-5]\n                                else\n                                    set [⇤xv v] to [5]\n                                end\n                                set [↓yv v] to [12]\n                            else\n                                set [⇤xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [↓yv v] by (-1)\n    change y by (↓Yv)\n    if <touching (sprite2 v)?> then\n        change y by ((↓Yv) * (-1))\n        set [↓yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (sprite2 v)?> then\n        if <key (up arrow v) pressed?> then\n            set [↓yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching (sprite4 v)?> then\n        Reset\n    end\n    if <(x position) > [240]> then\n        broadcast (next level v)\n        change [✺level v] by (1)\n        wait (1) seconds\n        Reset\n    end\n    if <touching (sprite9 v)?> then\n        Reset\n    end\nend\n\ndefine Reset\ngo to x: (-200) y: (-100)\nset [↓yv v] to [0]\nset [⇤xv v] to [0]\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#14d5ef)?> then\n        if <key (up arrow v) pressed?> then\n            change [↓yv v] by (1)\n        else\n            change [↓yv v] by (.1)\n        end\n    end\n    if <touching color (#02b0fd)?> then\n        if <key (up arrow v) pressed?> then\n            change [↓yv v] by (1)\n        else\n            change [↓yv v] by (.25)\n        end\n    end\n    if <touching color (#007fff)?> then\n        if <key (up arrow v) pressed?> then\n            change [↓yv v] by (1)\n        else\n            change [↓yv v] by (.5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Relaxing Anti-Stress Music - slow and positive - rd N°026 v] until done\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nwait (.5) seconds\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\nforever\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nwait (.5) seconds\nnext costume\n\nwhen I receive [play v]\nswitch costume to (costume10 v)\n\n@Sprite4\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(✺LEVEL) = [6]> then\n        hide\n    else\n        show\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nset [yyyyyyyyvvvvvvvv v] to [0]\ngo to x: (0) y: (100000)\nhide\n\nwhen I receive [next level v]\nshow\nset [yyyyyyyyvvvvvvvv v] to [-30]\nrepeat until <(y position) < [-215]>\n    change [yyyyyyyyvvvvvvvv v] by (1)\nend\nset [yyyyyyyyvvvvvvvv v] to [0]\nwait (.1) seconds\nrepeat until <(y position) > [132]>\n    change [yyyyyyyyvvvvvvvv v] by (1)\n    change y by (yyyyyyyyvvvvvvvv)\n    go to [front v] layer\nend\nset [yyyyyyyyvvvvvvvv v] to [0]\nhide\n\nrepeat until <(y position) < [-176]>\n    change [yyyyyyyyvvvvvvvv v] by (1)\n    change y by (yyyyyyyyvvvvvvvv)\n    go to [front v] layer\nend\nset [yyyyyyyyvvvvvvvv v] to [0]\nwait (.1) seconds\nrepeat until <(y position) > [132]>\n    change [yyyyyyyyvvvvvvvv v] by (1)\n    change y by (yyyyyyyyvvvvvvvv)\n    go to [front v] layer\nend\nset [yyyyyyyyvvvvvvvv v] to [0]\nhide\n\nchange y by (yyyyyyyyvvvvvvvv)\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    change y by (yyyyyyyyvvvvvvvv)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite6\n\n@Sprite7\n\nwhen flag clicked\nshow\nset [✺level v] to [0]\n\nwhen this sprite clicked\nhide\nbroadcast (Play v)\n\n@Sprite8\n\nwhen flag clicked\nshow\n\nwhen I receive [play v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nforever\n    turn right (7) degrees\nend\n\nwhen flag clicked\nhide\ngo to x: (-4) y: (-134)\nwait until <(✺LEVEL) = [5]>\nwait (.5) seconds\nshow\nwait until <(✺LEVEL) = [6]>\nwait (.5) seconds\ngo to [front v] layer\ncreate clone of (_myself_ v)\ngo to x: (-40) y: (-134)\nwait until <(✺LEVEL) = [7]>\nwait (.5) seconds\nhide\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo to x: (100) y: (-134)\nwait until <(✺LEVEL) = [7]>\nwait (.5) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    turn right (7) degrees\nend\n\n@Sprite10\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    set [ghost v] effect to (10)\nend\n\nwhen flag clicked\nhide\nwait until <(✺LEVEL) = [6]>\nwait (.5) seconds\nshow\nwait until <(✺LEVEL) = [7]>\nwait (.5) seconds\nhide\n\n@Sprite11\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    set [ghost v] effect to (10)\nend\n\nwhen flag clicked\nhide\nwait until <(✺LEVEL) = [6]>\nwait (.5) seconds\nshow\nwait until <(✺LEVEL) = [7]>\nwait (.5) seconds\nhide\n\n@Sprite12\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (1) layers\nforever\n    set [ghost v] effect to (10)\nend\n\nwhen flag clicked\nhide\nwait until <(✺LEVEL) = [6]>\nwait (.5) seconds\nshow\nwait until <(✺LEVEL) = [7]>\nwait (.5) seconds\nhide\n\n@Sprite13\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.000001)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nforever\n    hide\nend\n\n@Sprite14\n\n@Sprite15\n\nwhen flag clicked\nGenerate clones\n\nwhen I start as a clone\nset size to (pick random (50) to (100)) %\nset [ghost v] effect to (pick random (70) to (95))\ngo to [back v] layer\nshow\nforever\n    wait (pick random (5.0000) to (10.0000)) seconds\n    switch costume to (costume2 v)\n    set [ghost v] effect to (75)\n    wait (.1) seconds\n    set [ghost v] effect to (pick random (70) to (95))\n    switch costume to (costume1 v)\nend\n\ndelete this clone\n\ndefine Generate clones\nswitch costume to (costume1 v)\ngo to x: (-220) y: (150)\nhide\nrepeat (5)\n    change y by (-5)\n    repeat (5)\n        create clone of (_myself_ v)\n        wait (0) seconds\n        change x by (100)\n        change y by (1)\n    end\n    change y by (-5)\n    change y by (-50)\n    repeat (5)\n        create clone of (_myself_ v)\n        wait (0) seconds\n        change x by (-100)\n        change y by (1)\n    end\n    change y by (-50)\nend\n\n