ice platformer™ (2.2)                   #platformer # 

Instructions: Add to your own studios\nsuggest updates and report bugs here:\nhttps://scratch.mit.edu/discuss/topic/481389/\ns to throw snowball\nuse arrow keys or mobile to guide your cube to the finish\nSequel if this get 1000 views so help me get there\ngo into the portal to get to the next level \nspace to change color\navoid spikes and falling in the abyss\nhave fun!\nthis is already my 1 most loved project in two days\n300 views thanks! feb 10 2021\n\n

@Stage\n\n@player\n\ndefine Tick\nswitch costume to (costume1 v)\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xv v] by (1)\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [xv v] by (-1)\n    switch costume to (costume5 v)\nend\nchange x by (Xv)\nset [xv v] to ((Xv) * (0.9))\nif <touching color (#00daff)?> then\n    change y by (1)\n    if <touching color (#00daff)?> then\n        change y by (1)\n        if <touching color (#00daff)?> then\n            change y by (1)\n            if <touching color (#00daff)?> then\n                change y by (1)\n                if <touching color (#00daff)?> then\n                    change y by (1)\n                    if <touching color (#00daff)?> then\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (Yv)\nif <touching color (#00daff)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <touching color (#00daff)?> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\nchange [scroll x v] by ((x position) * (-1))\nchange [scroll y v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <<touching color (#d60000)?> or <touching color (#ff0000)?>> then\n    set [ghost v] effect to (100)\n    set [scroll x v] to [891]\n    set [scroll y v] to [563]\nend\nif <touching color (#0021ff)?> then\n    set [scroll x v] to [891]\n    set [scroll y v] to [563]\nend\nif <(Scroll Y) > [800]> then\n    set [scroll x v] to [891]\n    set [scroll y v] to [563]\nend\n\nchange [yv v] by (7)\n\nif <touching color (#00e4ff)?> then\n    change [xv v] by (3)\nend\n\nstart sound [Airy Echo Metallic Alert v]\n\nwhen I receive [tick v]\nTick\n\nwhen flag clicked\ngo to [back v] layer\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#10ff00)?> then\n        broadcast (Next level v) and wait\n    end\n    set [ghost v] effect to (0)\nend\n\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (.2) seconds\nend\n\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (.2) seconds\nend\nset [ghost v] effect to (100)\n\nif <touching color (#005fff)?> then\n    change [yv v] by (7)\nend\nif <touching color (#00e4ff)?> then\n    change [xv v] by (3)\nend\n\nwhen flag clicked\n\nwhen I start as a clone\n\nwhen flag clicked\nforever\n    do nothing\nend\n\nwhen [space v] key pressed\nchange [color v] effect by (25)\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nnext costume\n\n@Cloud Moving 2\n\nwhen I start as a clone\nshow\nforever\n    set size to (pick random (80) to (100)) %\n    go to x: (pick random (-210) to (210)) y: (277)\n    glide (5) secs to x: (x position) y: (-300)\n    if <<touching (_edge_ v)?> or <touching (level v)?>> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\ngo to [back v] layer\nforever\n    create clone of (_myself_ v)\n    wait (0.0001) seconds\nend\n\nwhen flag clicked\nforever\n    clear graphic effects\nend\n\nwhen backdrop switches to [end v]\n\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    do nothing\nend\n\n@Screen Shot 2021-01-26 at 2\n\nwhen flag clicked\nset [ghost v] effect to (0)\nwait (1) seconds\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    go [forward v] (2000000) layers\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Next level v)\nhide\n\nwhen flag clicked\nforever\n    go [forward v] (99999) layers\nend\n\n@Sprite2\n\nPosition\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (restart v)\n\nhide\n\nwhen flag clicked\nforever\n    go [forward v] (99999) layers\nend\n\n@Cloud Moving 3\n\nwhen I start as a clone\nshow\nforever\n    set size to (pick random (80) to (100)) %\n    go to x: (400) y: (pick random (50) to (168))\n    glide (5) secs to x: (-300) y: (y position)\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\ngo to [back v] layer\nrepeat (1)\n    create clone of (_myself_ v)\n    wait (pick random (1) to (7)) seconds\nend\n\nwhen flag clicked\nforever\n    clear graphic effects\nend\n\nwhen backdrop switches to [end v]\nhide\nstop [other scripts in sprite v]\n\n@Level\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    if <(turbo sensor) < [20]> then\n        set [turbo sensor v] to [0]\n    else\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nset [turbo sensor v] to [0]\nforever\n    change [turbo sensor v] by (1)\nend\n\nwhen flag clicked\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (level 1 v)\nPosition\nforever\n    go to x: (Scroll X) y: (Scroll Y)\nend\n\ndefine Position\nset [scroll x v] to [891]\nset [scroll y v] to [563]\n\nwhen I receive [next level v]\nnext costume\nPosition\n\nwhen I receive [change color \(bullet\) v]\nswitch costume to (level 4 v)\n\nwhen flag clicked\nforever\n    do nothing\nend\n\ndefine do nothing\n\nwhen I receive [restart v]\nPosition\n\n@snowball\n\nwhen flag clicked\nhide\n\nwhen [s v] key pressed\nshow\ngo to (player v)\ngo to x: (21) y: (19)\nwait (1) seconds\nrepeat (10)\n    move (20) steps\nend\nhide\n\n@False Report Detector\n\ndefine Go To (x) (y)\nset size to (400) %\ngo to x: (x) y: (y)\nset size to (100) %\n\nwhen flag clicked\nset voice to (tenor v)::tts\ncreate clone of (_myself_ v)\nswitch costume to (report button v)\ngo to [front v] layer\nset [animation v] to [0]\nforever\n    Go To [485] [-210]\n    if <touching (mouse-pointer v)?> then\n        wait (0.3) seconds\n        if <touching (mouse-pointer v)?> then\n            set [report button v] to [1]\n        end\n    else\n        set [report button v] to [0]\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nswitch costume to (report detect v)\nforever\n    if <(REPORT BUTTON) = [1]> then\n        set [ghost v] effect to (0)\n        go to x: (0) y: (0)\n        speak [Please do not report this project. There is nothing wrong with it, and false reporting is wrong. Thank you.]::tts\n        set [report button v] to [0]\n    end\nend\n\n