Ice - A Platformer [pt.3]
@Stage\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@End\n\nwhen flag clicked\nhide\nrepeat (10)\n    switch costume to (costume1 v)\n    switch costume to (costume1 v)\nend\nwait until <(Level) = [11]>\nshow\nwait until <touching (sprite1 v)?>\nbroadcast (End v)\nnext costume\n\n@Sprite4\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nchange y by (100000)\ngo to (random position v)\ngo to [back v] layer\nrepeat (100)\n    change y by (-3)\nend\ndelete this clone\n\n@Sprite1\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (300)\nset [level v] to [1]\nbroadcast (NEXT LEVEL v)\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [x vel v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume3 v)\n        change [x vel v] by (1)\n    end\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x vel) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(x vel) > [0]> then\n                set [x vel v] to [-10]\n            else\n                set [x vel v] to [10]\n            end\n            set [y vel v] to [15]\n        else\n            set [x vel v] to [0]\n        end\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching (ground v)?> then\n        change y by ((y vel) - ((y vel) * (2)))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <key (up arrow v) pressed?>> then\n        set [y vel v] to [15]\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [230]> then\n        if <not <(Level) = [11]>> then\n            change [level v] by (1)\n            broadcast (restart v)\n            broadcast (NEXT LEVEL v) and wait\n        end\n    end\n    if <touching (danger v)?> then\n        broadcast (restart v)\n    end\n    if <touching (enemy v)?> then\n        broadcast (restart v)\n    end\nend\n\nwhen I receive [restart v]\nset size to (100) %\ngo to x: (-241) y: (0)\n\nchange [level v] by (-1)\n\nwhen flag clicked\nforever\n    play sound [audio_42447bce15 v] until done\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Thumb\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.001)\nshow\ngo to [front v] layer\ngo to x: (0) y: (375)\nrepeat until <(y position) = [0]>\n    change y by (((y position) / (5)) * (-1))\nend\n\n
This is my second platformer!\n\nFirst platformer: https://scratch.mit.edu/projects/484220454/\nSecond platformer:\nhttps://scratch.mit.edu/projects/486289443/\nAnother Game you may like: \nhttps://scratch.mit.edu/projects/485796562/\nAll levels are possible.\n\nSTORY\nEarth has now perished trying to retrieve the Ice Crystal. Fire has received the Fire Crystal already so its up to you to get the Ice Crystal.\n\n\n IMPORTANT INFO\n• Arrow keys to move on PC\n• NO ADVERTISING OR SPAMMING (All comments of that type WILL be deleted and reported. You may do that if I don't do it first.)\n• Please don't say stuff like, "That was REALLY easy", "This is stupid", or "This game sucks". Those comments will be deleted.