Sky | The Scrolling Platformer v1.5
@Stage\n\nwhen flag clicked\nforever\n    set [time v] to (round (timer))\n    set [points v] to (join (COLLECTED) (join [/] (COLLECTED MAX)))\nend\n\nwhen flag clicked\nreset timer\nshow variable [time v]\nshow variable [points v]\nshow variable [level v]\nhide variable [mouse v]\n\nwhen I receive [thx for playing  v]\nstop [other scripts in sprite v]\nforever\n    play sound [Platformer Scrolling v] until done\nend\n\nwhen flag clicked\nforever\n    play sound [Platformer Scrolling v] until done\nend\n\n@Player\n\nwhen flag clicked\nbroadcast (Green Flag v)\nbroadcast (Play Game v)\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (RESET v)\n    broadcast (Set Up v)\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v)\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\nbroadcast (Tick v) and wait\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\npoint in direction (90)\nset size to (40) %\nset [ghost v] effect to (0)\nshow\n\ndefine Tick\nif <key (left arrow v) pressed?> then\n    change [sx v] by (-2)\n    switch costume to (left v)\nend\nif <key (right arrow v) pressed?> then\n    change [sx v] by (2)\n    switch costume to (right v)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <key (up arrow v) pressed?> then\n    if <(in air) < [4]> then\n        change [sy v] by (6)\n    end\nend\nchange [sy v] by (-2)\nChange Player y by (sy)\nPosition\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nstart sound [Oops v]\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Test - Die\nif <touching (danger v)?> then\n    set [exit v] to [die]\n    start sound [Oops v]\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <<<(LEVEL) = [5]> and <((x) + (SCROLL X)) > [4500]>> and <((y) + (SCROLL Y)) < [0]>> then\n        broadcast (End v) and wait\n        stop [this script v]\n    end\nend\n\nchange [sx v] by (1)\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [set up v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x [450] y: [0]\n    Clone at x [470] y: [0]\n    Clone at x [470] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x [50] y: [260]\n        Clone at x [120] y: [200]\n        Clone at x [150] y: [90]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x [400] y: [0]\n            Clone at x [500] y: [20]\n            Clone at x [400] y: [100]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x [200] y: [72]\n                Clone at x [300] y: [100]\n                Clone at x [300] y: [100]\n                Clone at x [300] y: [100]\n                Clone at x [300] y: [100]\n                Clone at x [100] y: [-400]\n                Clone at x [300] y: [100]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x [500] y: [100]\n                    Clone at x [435] y: [-100]\n                    Clone at x [300] y: [90]\n                    Clone at x [300] y: [90]\n                    Clone at x [300] y: [90]\n                    Clone at x [300] y: [90]\n                    Clone at x [200] y: [-300]\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x [150] y: [90]\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [end v]\nswitch costume to (level 5 9 v)\nbroadcast (Thx for playing  v)\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [set up v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x [450] y: [0]\n    Clone at x [470] y: [0]\n    Clone at x [470] y: [50]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x [180] y: [19]\n        Clone at x [-225] y: [88]\n        Clone at x [190] y: [288]\n        Clone at x [150] y: [155]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x [350] y: [0]\n            Clone at x [150] y: [0]\n            Clone at x [400] y: [50]\n            Clone at x [320] y: [100]\n            Clone at x [100] y: [0]\n            Clone at x [100] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x [400] y: [97]\n                    Clone at x [450] y: [-100]\n                    Clone at x [1510] y: [250]\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x [150] y: [0]\nClone at x [400] y: [50]\nClone at x [320] y: [100]\nClone at x [100] y: [0]\nClone at x [100] y: [0]\n\nwhen I receive [end v]\nchange [y v] by (99999)\n\n@Collectables\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    start sound [Coin v]\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [set up v]\nhide\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (coin v)\n    Clone at x [0] y: [41]\n    Clone at x [220] y: [41]\n    Clone at x [669] y: [41]\n    Clone at x [444] y: [41]\n    Clone at x [915] y: [56]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (coin v)\n        Clone at x [109] y: [25]\n        Clone at x [-41] y: [168]\n        Clone at x [16] y: [217]\n        Clone at x [-25] y: [305]\n        Clone at x [62] y: [444]\n        Clone at x [299] y: [560]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (coin v)\n            Clone at x [429] y: [-53]\n            Clone at x [329] y: [130]\n            Clone at x [502] y: [3]\n            Clone at x [717] y: [109]\n            Clone at x [1087] y: [105]\n            Clone at x [1085] y: [226]\n            Clone at x [1369] y: [195]\n            Clone at x [1269] y: [195]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (coin v)\n                Clone at x [0] y: [50]\n                Clone at x [114] y: [80]\n                Clone at x [423] y: [132]\n                Clone at x [585] y: [239]\n                Clone at x [720] y: [268]\n                Clone at x [1024] y: [340]\n                Clone at x [1323] y: [434]\n                Clone at x [1627] y: [353]\n                Clone at x [1726] y: [128]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (coin v)\n                    Clone at x [119] y: [-9]\n                    Clone at x [238] y: [-9]\n                    Clone at x [520] y: [80]\n                    Clone at x [965] y: [-14]\n                    Clone at x [1234] y: [126]\n                    Clone at x [1832] y: [295]\n                    Clone at x [2286] y: [231]\n                    Clone at x [2286] y: [167]\n                    Clone at x [2286] y: [104]\n                    Clone at x [1537] y: [216]\n                    Clone at x [2220] y: [86]\n                    Clone at x [2220] y: [40]\n                    Clone at x [2220] y: [-5]\n                    Clone at x [2300] y: [86]\n                    Clone at x [2300] y: [40]\n                    Clone at x [2300] y: [-5]\n                    Clone at x [2380] y: [86]\n                    Clone at x [2380] y: [40]\n                    Clone at x [2380] y: [-5]\n                    Clone at x [2440] y: [86]\n                    Clone at x [2440] y: [40]\n                    Clone at x [2440] y: [-5]\n                end\n            end\n        end\n    end\nend\nset [x v] to [-9999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x [-41] y: [168]\nClone at x [16] y: [217]\nClone at x [-25] y: [305]\nClone at x [62] y: [444]\nClone at x [299] y: [560]\n\nClone at x [329] y: [130]\nClone at x [502] y: [3]\nClone at x [717] y: [109]\nClone at x [1087] y: [105]\nClone at x [1085] y: [226]\nClone at x [1369] y: [195]\nClone at x [1269] y: [195]\n\nClone at x [114] y: [80]\nClone at x [423] y: [132]\nClone at x [585] y: [239]\nClone at x [720] y: [268]\nClone at x [1024] y: [340]\nClone at x [1323] y: [434]\nClone at x [1627] y: [353]\nClone at x [1726] y: [128]\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [win]\n    start sound [Magic Spell v]\nend\n\nwhen I receive [set up v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Clone at x [1655] y: [30]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (closed v)\n        Clone at x [620] y: [500]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (closed v)\n            Clone at x [1676] y: [146]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (closed v)\n                Clone at x [2095] y: [243]\n            else\n                set [x v] to [-99999]\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (open v)\n\n@Figur1\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <(LEVEL) = [3]> then\n        show\n        Clone at x [100] y: [-55]\n        forever\n            if <touching (player v)?> then\n                say [Jump immediately when you touch the ground between the spikes]\n            else\n                say []\n            end\n        end\n    else\n        hide\n    end\nend\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<<(x) = (x position)> and <(y) = (y position)>> and <(LEVEL) = [3]>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [green flag v]\nhide\n\n@Figur2\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <(LEVEL) = [4]> then\n        show\n        Clone at x [1520] y: [470]\n        forever\n            if <touching (player v)?> then\n                say [Trust Fall]\n            else\n                say []\n            end\n        end\n    else\n        hide\n    end\nend\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<<(x) = (x position)> and <(y) = (y position)>> and <(LEVEL) = [4]>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [green flag v]\nhide\n\n@Figur3\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nshow\n\n@Figur4\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <(LEVEL) = [5]> then\n        show\n        Clone at x [2192] y: [294]\n        forever\n            if <touching (player v)?> then\n                say [The last Trust Fall]\n            else\n                say []\n            end\n        end\n    else\n        hide\n    end\nend\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<<(x) = (x position)> and <(y) = (y position)>> and <(LEVEL) = [5]>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [green flag v]\nhide\n\n@Figur5\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\nset size to (75) %\nset [ghost v] effect to (100)\n\nwhen I receive [green flag v]\nset [ghost v] effect to (100)\n\nwhen I receive [end v]\nClone at x [2340] y: [120]\nrepeat (100)\n    change [ghost v] effect by (-1)\n    change size by (0.25)\nend\n\n@Clouds\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (3) layers\nwait (0.01) seconds\nforever\n    wait (1.5) seconds\n    create clone of (_myself_ v)\nend\n\nhide\n\nwhen I start as a clone\nshow\ngo to x: (400) y: (pick random (60) to (160))\nswitch costume to (pick random (1) to (3))\nset size to (80) %\nchange [ghost v] effect by (pick random (25) to (75))\nrepeat until <(x position) < [-200]>\n    change x by (pick random (-1) to (-4))\n    set y to ((y alt) - (SCROLL Y))\n    if <(y position) < [-180]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [startgame v]\n\nset [y alt v] to (y position)\n\nset [y alt v] to [100]\n\nset [level v] to [5]\n\n@confetti\n\nwhen flag clicked\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-233) to (233)) y: (180)\nswitch costume to (pick random (1) to (4))\nset [color v] effect to (pick random (0) to (100))\nset size to (pick random (100) to (125)) %\nglide (pick random (0.5) to (2)) secs to x: (x position) y: (-177)\ndelete this clone\n\nwhen I receive [end v]\nhide\nforever\n    create clone of (_myself_ v)\nend\n\n
ONE OF THE HARDEST PLATFORMER IN THE WORLD!\nIf you managed to pass level 5 comment "ez" and your time. :)\n========================================\nIf YOU want to help me to get this popular just put it in your curated studios. Thank you very much!!!\n=========================================\nArrow-Keys to move; spikes and lava kill you. No wall jump!\n=========================================\nLevel 3 is very hard but please don't go crazy cuz I don't wanna be held responsible for broken screens and keyboards ;)\n=========================================\nEVERY LEVEL IS POSSIBLE !!! My best time is \n70 sec. What's your time? Write a comment