HISTORY  1 - Stone Age (A platformer)
@Stage\n\n@Player\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        if <key (down arrow v) pressed?> then\n            change [y-speed v] by (-10.5)\n        end\n        if <key (up arrow v) pressed?> then\n            change [y-speed v] by (10)\n        end\n        set [y-speed v] to ((y-speed) * (0.6))\n        change [y-speed v] by (((y-speed) / (15)) + (2))\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    show\n    set [ghost v] effect to (0)\n    go to x: (-235) y: (0)\n    set [level v] to [1]\n    forever\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x-spped v] by (1)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x-spped v] by (-1)\n        end\n        set [x-spped v] to ((x-spped) * (0.9))\n        change x by (x-spped)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change y by (2)\n                        if <touching (ground v)?> then\n                            change y by (2)\n                            if <touching (ground v)?> then\n                                change y by (-5)\n                                change x by ((x-spped) * (-1))\n                                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                    if <(x-spped) > [0]> then\n                                        set [x-spped v] to [-5]\n                                    else\n                                        set [x-spped v] to [5]\n                                    end\n                                    set [y-speed v] to [10]\n                                else\n                                    set [x-spped v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y-speed v] by (-1)\n        change y by (y-speed)\n        if <touching (ground v)?> then\n            change y by ((y-speed) * (-1))\n            set [y-speed v] to [0]\n        end\n        change y by (-1)\n        if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y-speed v] to [15]\n        end\n        change y by (1)\n        if <<touching (lava v)?> or <touching (spike v)?>> then\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            go to x: (-235) y: (0)\n            set [ghost v] effect to (0)\n        end\n        if <(y position) < [-150]> then\n            broadcast (message1 v)\n            go to x: (-200) y: (50)\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-200) y: (50)\nset [y-speed v] to [0]\nforever\n    create clone of (_myself_ v)\n    if <[240] < (x position)> then\n        change [level v] by (1)\n        broadcast (next level v)\n        go to x: (-200) y: (50)\n        set [x-spped v] to [0]\n        set [y-speed v] to [0]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume7 v)\nclear graphic effects\nset [ghost v] effect to (0)\nrepeat (25)\n    change [ghost v] effect by (4)\n    change size by (-4)\n    change [color v] effect by (4)\nend\ndelete this clone\n\nwhen flag clicked\nreset timer\nset [level v] to [1]\nforever\n    if <(y-speed) < [1]> then\n        if <[1] < (x-spped)> then\n            switch costume to (costume2 v)\n        else\n            if <(x-spped) < [-1]> then\n                switch costume to (costume3 v)\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    else\n        if <[1] < (x-spped)> then\n            switch costume to (costume4 v)\n        else\n            if <(x-spped) < [-1]> then\n                switch costume to (costume5 v)\n            else\n                switch costume to (costume6 v)\n            end\n        end\n    end\nend\n\nwhen I receive [message1 v]\ndelete this clone\n\nwhen flag clicked\nset [skip v] to [0]\n\nwhen I receive [bounce v]\nset [y-speed v] to [20]\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Bg/text\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (level)\nend\n\n@lava\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    switch costume to (level)\n    set y to (round (([sin v] of ((timer) * (100)) ) * (10)))\nend\n\n@spike\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    switch costume to (level)\nend\n\n@dark\n\nwhen flag clicked\nforever\n    switch costume to (small v)\n    set size to (200) %\n    if <(level) = [4]> then\n        switch costume to (dark v)\n    else\n        switch costume to (dark2 v)\n    end\n    if <(level) = [4]> then\n        go to (player v)\n    else\n        go to x: (100) y: (0)\n    end\n    if <<(level) = [4]> or <(level) = [5]>> then\n        show\n    else\n        hide\n    end\nend\n\n@music\n\nwhen flag clicked\nforever\n    play sound [Vicetone - United We Dance v] until done\nend\n\n@skip\n\nwhen this sprite clicked\nif <(level) < [8]> then\n    change [level v] by (1)\nend\nchange [skip v] by (1)\n\n@cloud\n\nwhen I receive [next level v]\nif <(level) = [8]> then\n    if <(timer) < (☁ world reccord)> then\n        if <(skip) = [0]> then\n            set [☁ world reccord v] to (timer)\n        end\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen [t v] key pressed\nif <(username) = [--Jung--]> then\n    show\nend\n\n@trampoline\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (bounce v)\n        glide (0.1) secs to x: (0) y: (30)\n        glide (0.1) secs to x: (0) y: (0)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nglide (0.1) secs to x: (0) y: (-30)\n\n
My record 21.384\nPart 2 : https://scratch.mit.edu/projects/564469292/\nPart 3 Soon\n#games #trending #all #platformer