Sonic ll Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen I receive [nothing to see here v]\nswitch backdrop to (1 v)\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [12]> then\n        broadcast (. v)\n    end\nend\n\n@Level\n\nwhen I receive [nothing to see here v]\nhide variable [time v]\nhide variable [☁ fastest time v]\nforever\n    hide variable [time v]\n    hide variable [☁ fastest time v]\n    repeat until <(costume [number v]) = [11]>\n        wait (1) seconds\n        change [time v] by (1)\n    end\n    show variable [time v]\n    show variable [☁ fastest time v]\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [intro v]\nhide\n\nwhen I receive [nothing to see here v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [skip v]\nnext costume\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [☁ fastest time v]\nhide variable [time v]\n\nwhen I receive [. v]\nshow variable [☁ fastest time v]\nshow variable [time v]\n\nwhen I receive [. v]\nforever\n    if <(Time) < (☁ fastest time)> then\n        set [☁ fastest time v] to (Time)\n        broadcast (You beat the fastest time v)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\n\nwhen I receive [nothing to see here v]\nhide\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (30) to (40)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Finish line\n\nhide\n\nwhen I receive [intro v]\nhide\n\nwhen I receive [nothing to see here v]\nshow\n\nwhen flag clicked\n\nwhen backdrop switches to [10 v]\nshow\n\n@Spike\n\nwhen I receive [nothing to see here v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [intro v]\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [skip v]\nnext costume\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (36) y: (28)\n\n@Ring\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [nothing to see here v]\nshow\nswitch costume to (1 v)\n\n@Lava\n\n@Player\n\nwhen I receive [nothing to see here v]\nforever\n    show\nend\n\nwhen flag clicked\nset [level v] to [1]\nset size to (100) %\nReset player variables\nreset\n\nwhen flag clicked\nset [level v] to [1]\nset size to (100) %\nReset player variables\nreset\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <not <key (space v) pressed?>>> then\n        change [x v v] by (.8)\n        switch costume to (costume2 v)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <not <key (space v) pressed?>>> then\n        change [x v v] by (-.8)\n        switch costume to (costume1 v)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (time v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (time v)?>> then\n            change y by (1)\n            if <<touching (time v)?> or <touching (level v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (time v)?>> then\n                    change y by (1)\n                    if <<touching (time v)?> or <touching (level v)?>> then\n                        change y by (1)\n                        if <<touching (time v)?> or <touching (level v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [15]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-1)\n    change y by (Y v)\n    if <<touching (level v)?> or <<touching (rotating platform v)?> or <touching (time v)?>>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <<touching (rotating platform v)?> or <touching (time v)?>>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching (spike v)?> then\n        reset\n        go to x: (-186) y: (-48)\n    end\n    if <touching (jump pad v)?> then\n        set [y v v] to [20]\n    end\n    if <touching (finish line v)?> then\n        go to x: (-186) y: (-48)\n        broadcast (Next level v)\n    end\n    if <touching (lava v)?> then\n        glide (1) secs to x: (-186) y: (-48)\n    end\n    if <<touching (minion2 v)?> or <touching (minion1 v)?>> then\n        reset\n        go to x: (-206) y: (-54)\n    end\n    if <<not <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<not <<key (d v) pressed?> or <key (left arrow v) pressed?>>> and <not <<key (a v) pressed?> or <key (right arrow v) pressed?>>>>> then\n        switch costume to (costume4 v)\n    end\n    if <<touching (ring v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y v v] to [13]\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (costume7 v)\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (costume6 v)\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.005) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\ngo to x: (-186) y: (-48)\n\nwhen I receive [nothing to see here v]\nshow\ngo to x: (-186) y: (-48)\n\nwhen I start as a clone\nswitch costume to (costume3 v)\nrepeat (10)\n    change size by (0)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen I receive [intro v]\nhide\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen I receive [intro v]\nhide\n\nwhen flag clicked\nforever\n    turn video (off v)\nend\n\nwhen flag clicked\nforever\n    set [y v] to (y position)\n    set [x v] to (x position)\nend\n\n@Jump Pad\n\nwhen flag clicked\nhide\nforever\n    go to x: (7) y: (-13)\nend\n\nwhen backdrop switches to [9 v]\nshow\nforever\n    go to x: (7) y: (-13)\nend\n\nwhen backdrop switches to [10 v]\nhide\n\nwhen I receive [nothing to see here v]\nforever\n    if <touching (player v)?> then\n        repeat (1)\n            switch costume to (costume1 v)\n            wait (0.1) seconds\n            switch costume to (costume2 v)\n            wait (0.1) seconds\n            switch costume to (costume3 v)\n            wait (0.1) seconds\n            switch costume to (costume3 v)\n            wait (0.1) seconds\n            switch costume to (costume2 v)\n            wait (0.1) seconds\n            switch costume to (costume1 v)\n        end\n    end\nend\n\ngo to x: (0) y: (0)\n\n@Cloud\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (-287) y: (pick random (93) to (17))\nshow\nrepeat until <(x position) > [268]>\n    change x by (pick random (3) to (5))\nend\ndelete this clone\n\nwhen I receive [nothing to see here v]\nhide\ngo [backward v] (8) layers\nforever\n    create clone of (_myself_ v)\n    wait (pick random (1) to (3)) seconds\nend\n\nwhen I receive [nothing to see here v]\nforever\n    show\nend\n\n@Intro\n\nwhen flag clicked\nstart sound ((0) + (1))\nset volume to (100) %\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\ncreate clone of (_myself_ v)\nrepeat (2)\n    Screen Refresh # [1] i [100]\n    wait (0.6) seconds\n    Screen Refresh # [1] i [0]\n    wait (0.6) seconds\nend\ngo to x: (0) y: (0)\nswitch costume to (c1 v)\ncreate clone of (_myself_ v)\nset [brightness v] effect to (0)\nrepeat (30)\n    switch costume to (c2 v)\n    create clone of (_myself_ v)\nend\nwait (0.5) seconds\nswitch costume to (name v)\ncreate clone of (_myself_ v)\nScreen Refresh # [2] i [0]\nwait (2.5) seconds\nset [brightness v] effect to (5)\nswitch costume to (slide v)\ngo to x: (0) y: (-300)\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\n    change [brightness v] effect by (30)\nend\n\nbroadcast (message1 v)\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    repeat (2)\n        clear graphic effects\n        wait (0.6) seconds\n        set [brightness v] effect to (100)\n        wait (0.6) seconds\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        set [ghost v] effect to (0)\n        wait (i1) seconds\n        repeat (10)\n            change size by (-6)\n            change [ghost v] effect by (10)\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            set [brightness v] effect to (0)\n            set size to (0) %\n            repeat (30)\n                change size by (((100) - (size)) / (10))\n                change [ghost v] effect by (-4)\n            end\n            repeat (18)\n                switch costume to (blank v)\n                change size by ((size) / (4))\n                switch costume to (c1 v)\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                go to (random position v)\n                repeat (10)\n                    change x by ((x position) / (-4))\n                    change y by ((y position) / (-4))\n                    change [ghost v] effect by (-10)\n                end\n                delete this clone\n            else\n                if <(costume [number v]) = [6]> then\n                    set [i1 v] to [50]\n                    set size to (0) %\n                    clear graphic effects\n                    repeat (64)\n                        change size by (((100) - (size)) / (4))\n                        point in direction ((90) + (([tan v] of (i1) ) * (5)))\n                        change [i1 v] by (5)\n                    end\n                    repeat (9)\n                        turn right (((180) - (direction)) / (4)) degrees\n                        change size by ((size) / (-4))\n                        change [ghost v] effect by (20)\n                    end\n                else\n                    if <<(costume [number v]) > [6]> and <(costume [number v]) < [9]>> then\n                        clear graphic effects\n                        set size to (pick random (40) to (50)) %\n                        repeat (30)\n                            change x by (i1)\n                            change y by (i2)\n                            change [i2 v] by (-1)\n                            change [ghost v] effect by (3.5)\n                        end\n                    else\n                        if <(costume [number v]) = [9]> then\n                            set [ghost v] effect to (0)\n                            repeat (18)\n                                change x by ((x position) / (-4))\n                                change y by ((y position) / (-4))\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Screen Refresh # (#) i (i)\nif <(#) = [1]> then\n    set [i1 v] to [0.03]\n    switch costume to (costume2 v)\n    set [brightness v] effect to (i)\n    go to x: (0) y: (-150)\n    repeat (10)\n        create clone of (_myself_ v)\n        change y by (40)\n        change [i1 v] by (0.03)\n    end\nelse\n    if <(#) = [2]> then\n        repeat (30)\n            set [i1 v] to (pick random (-5) to (5))\n            set [i2 v] to (pick random (10) to (15))\n            switch costume to (pick random (7) to (8))\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nbroadcast (End of intro v)\n\nwhen flag clicked\nbroadcast (Intro v)\nwait (8) seconds\nbroadcast (Nothing to see here v)\n\nwhen I receive [intro v]\nshow\n\nwhen I receive [nothing to see here v]\nhide\n\nwhen flag clicked\nset volume to (100) %\nplay sound [Eiffel 65 - Blue \(KNY Factory Remix\) v] until done\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [. v]\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\n\nwhen I receive [you beat the fastest time v]\nswitch costume to (costume2 v)\n\n@Background\n\nwhen flag clicked\nhide\n\nwhen I receive [end of intro v]\nforever\n    show\n    go to [back v] layer\n    go to x: ((X) / (15)) y: ((Y) / (15))\nend\n\n
Use WASD or arrow keys to move\nHold space while moving will give you speed boost\nUse the Trampolines to jump to higher place\nDon't die\nOther instruction in the game\nNo cheating,no hacking,no advertising,no hate.\nComment your time in the comments below\nTell me if you already beaten the high score\nTry to beat my fastest time 24 secs\nThis is on trending !! 27# on platformer!