Cube Platformer [V4.0] #Platformer #Mobile #Game
@Stage\n\nwhen flag clicked\nforever\n    if <<(current [hour v]) > [3]> and <(current [hour v]) < [10]>> then\n        switch backdrop to (morning v)\n    end\n    if <<(current [hour v]) > [9]> and <(current [hour v]) < [16]>> then\n        switch backdrop to (day v)\n    end\n    if <<(current [hour v]) > [15]> and <(current [hour v]) < [20]>> then\n        switch backdrop to (evening v)\n    end\n    if <<<(current [hour v]) > [21]> and <(current [hour v]) < [25]>> and <<(current [hour v]) > [-1]> and <(current [hour v]) < [4]>>> then\n        switch backdrop to (evening v)\n    end\nend\n\n@GB\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@ground\n\nwhen flag clicked\ngo [forward v] (1) layers\nforever\n    switch costume to (LEVEL)\nend\n\nset [level v] to [12]\n\nwhen flag clicked\n\n@Player\n\nwhen flag clicked\nset [playzonecounter v] to [0]\nforever\n    if <<(x position) = [-180]> and <(PlayZoneCounter) = [0]>> then\n        broadcast (New Level v)\n        change [playzonecounter v] by (1)\n    end\nend\n\nset [level v] to [13]\n\ndefine Platformer physics\nchange [yv v] by (-1)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [xv v] by (-1)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xv v] by (1)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (-4)\n    change x by ((Xv) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        set [yv v] to [15]\n        broadcast (jump_effect v)\n        if <(Xv) > [0]> then\n            set [xv v] to [-10]\n        else\n            set [xv v] to [10]\n        end\n    end\nend\nchange y by (Yv)\nif <<touching (ground v)?> or <touching (moving platforms v)?>> 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 <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> and <<touching (ground v)?> or <touching (moving platforms v)?>>> then\n    broadcast (jump_effect v)\n    set [yv v] to [15]\nend\nchange y by (1)\nif <touching (spikes v)?> then\n    create clone of (_myself_ v)\n    go to x: (-180) y: (0)\n    broadcast (dead_sound v)\nend\nif <touching (saws v)?> then\n    create clone of (_myself_ v)\n    go to x: (-180) y: (0)\n    broadcast (dead_sound v)\nend\nif <touching (lava v)?> then\n    create clone of (_myself_ v)\n    go to x: (-180) y: (0)\n    broadcast (dead_sound v)\nend\nif <(y position) < [-180]> then\n    go to x: (-180) y: (0)\nend\nif <(x position) > [220]> then\n    change [level v] by (1)\n    set [playzonecounter v] to [0]\n    go to x: (-180) y: (0)\nend\nif <touching (trampolins v)?> then\n    set [yv v] to [25]\nend\nif <touching (water v)?> then\n    set [yv v] to [-0.5]\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [yv v] to [5]\n    end\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n        set [yv v] to [-5]\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (107) y: (-68)\nset [level v] to [3]\npoint in direction (90)\nset rotation style [don't rotate v]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (costume1 v)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        switch costume to (costume2 v)\n    end\nend\n\npoint in direction (90)\n\npoint in direction (-90)\n\nwhen I receive [start v]\nset [level v] to [1]\ngo to x: (-180) y: (0)\nforever\n    Platformer physics\nend\n\nwhen I start as a clone\nclear graphic effects\npoint in direction (90)\nset rotation style [all around v]\nrepeat (10)\n    change y by (6)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [spawn v]\nif <(LEVEL) < [11]> then\n    broadcast (start v)\n    broadcast (New Live v)\nend\nif <<(LEVEL) < [21]> and <[10] < (LEVEL)>> then\n    broadcast (Start 2 v)\n    broadcast (New Live v)\nend\nif <<(LEVEL) < [50]> and <[20] < (LEVEL)>> then\n    broadcast (Start3 v)\n    broadcast (New Live v)\nend\n\nwhen I receive [start 2 v]\nset [level v] to [11]\ngo to x: (-180) y: (0)\n\nwhen I receive [start3 v]\nset [level v] to [21]\ngo to x: (-180) y: (0)\n\nset [level v] to [11]\n\nwhen flag clicked\nforever\n    set [player x v] to (x position)\n    set [player y v] to (y position)\nend\n\nwhen this sprite clicked\nbroadcast (Cheat code v)\n\nsay [ ] for (2) seconds\n\n@Spikes\n\nchange [turndegrees v] by (-5)\n\nwait (0.1) seconds\n\ngo to x: (19) y: (-104)\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [5]> then\nend\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nrepeat (20)\n    change [turndegrees v] by (0.5)\nend\n\n\n\nwhen flag clicked\nshow\n\nhide\n\nturn right (9) degrees\n\n@Saws\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [new level v]\nif <(LEVEL) = [5]> then\n    Clone At X: [19] [-104]\nend\nif <(LEVEL) = [15]> then\n    Clone At X: [19] [-104]\nend\nif <(LEVEL) = [17]> then\n    Clone At X: [19] [-110]\nend\nif <(LEVEL) = [26]> then\n    Clone At X: [100] [-45]\nend\nif <(LEVEL) = [28]> then\n    Clone At X: [-75] [50]\n    Clone At X: [100] [-45]\nend\nif  then\n    delete this clone\nend\n\nwhen I start as a clone\nshow\ngo [forward v] (1) layers\ngo to [back v] layer\nforever\n    change [line v] by (1)\n    point in direction ((90) + (([sin v] of ((line) * (2)) ) * (300)))\nend\n\nwhen flag clicked\n\nwait (0.1) seconds\n\nwhen I receive [start v]\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [start v]\n\nset [level v] to [1]\n\nset [level v] to [9]\n\nwhen I receive [spawn v]\nstop [other scripts in sprite v]\nbroadcast (START v)\n\n@Lava\n\nwhen I start as a clone\ngo [backward v] (1) layers\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    switch costume to (LEVEL)\n    set y to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\n@Console\n\nwhen I receive [cheat code v]\ndelete all of [console v]\nadd (join (join [Hello, ] (username)) [, what do you want?]) to [console v]\nhide list [console v]\nif < (Admins) contains (username)?> then\n    Admin Start\n    ask [] and wait\n    show list [console v]\nelse\n    add [Sorry, you are not included in the list of admins so you cannot use the console.] to [console v]\n    add [ To get into the list of admins you need] to [console v]\n    add [ 1 - like and mark as favorites several \(2-3\) of my projects] to [console v]\n    add [ 2 - write comments \(1-2\)] to [console v]\n    add [ 3 - share with a friend / distribute in a group / write this project on your page] to [console v]\n    add [4 - follow me] to [console v]\n    add [That is all] to [console v]\n    add [ Write in the comments as you are ready] to [console v]\n    add [ to close the console just click on the checkmark on the blue background] to [console v]\n    add [or click on the green flag ] to [console v]\n    ask [] and wait\n    repeat until <(answer) = []>\n    end\n    show list [console v]\nend\n\nsay [Cheat code not find.] for (2) seconds\n\nwhen flag clicked\nshow list [console v]\ndelete all of [console v]\n\nadd [Write a cheat code:] to [coder v]\nhide list [coder v]\nset [cheat code v] to [~WBjzks{5aHQgi7?PKb8q7Dc~WbCqtA4hWDkota{IGQ@KE%7pT?O#xOvuN6a}%lx3}dtx7|%25WiLvjc8t}IDy~C~U6I00e9b6]\nask [Cheat code:] and wait\nif <<[codes v] contains (answer)?> and <(answer) = (join (item # of [3~WBjzks{5aHQgi7?PKb8q7Dc~WbCqtA4hWDkota{IGQ@K] in [codes v]) ([e ^ v] of (letter (length of (Cheat Code)) of (Cheat Code)) ))>> then\n    broadcast (Cheat code + v)\n    add [Code acepted] to [coder v]\n    wait (1) seconds\n    add [3] to [coder v]\n    wait (1) seconds\n    add [2] to [coder v]\n    wait (1) seconds\n    add [1] to [coder v]\n    wait (1) seconds\n    show list [coder v]\n    delete all of [coder v]\n    set [cheat code? v] to [0]\nelse\n    add (join [Cheat code] (join ["] (join (answer) (join ["] [dont find.])))) to [coder v]\n    wait (1) seconds\n    add [3] to [coder v]\n    wait (1) seconds\n    add [2] to [coder v]\n    wait (1) seconds\n    add [1] to [coder v]\n    wait (1) seconds\n    show list [coder v]\n    delete all of [coder v]\n    set [cheat code? v] to [0]\nend\n\nwhen flag clicked\ndelete all of [admins v]\nshow list [admins v]\nadd [the_magic_Bonus] to [admins v]\nadd [Pro_100_Bonus] to [admins v]\nadd [Mousepad_1500] to [admins v]\n\nwait (16) seconds\n\ndefine Admin Start\nMenu\nrepeat until <(Answer) = [5]>\n    ask [] and wait\n    set [answer v] to (answer)\n    if <(Answer) = [1]> then\n        add [infinity lives mode turned on] to [console v]\n        broadcast (Cheat code + v)\n        wait (2) seconds\n        Menu\n    end\n    if <(Answer) = [2]> then\n        add [infinity lives mode turned off] to [console v]\n        add [Sorry this function doesnt work now] to [console v]\n        wait (3) seconds\n        Menu\n    end\n    if <(Answer) = [3]> then\n        list start\n    end\n    if <(length of [console v]) > [11]> then\n        add [Clearing console...] to [console v]\n        wait (2) seconds\n        Menu\n    end\nend\nadd [Closing console... ] to [console v]\nwait (2) seconds\nshow list [console v]\nif <(Answer) = [4]> then\n    message\nend\n\ndefine Menu\nset [answer v] to []\ndelete all of [console v]\nadd (join (join [Hello, ] (username)) [, what do you want?]) to [console v]\nadd [1 - infinity lives on] to [console v]\nadd [2 - infinity lives off] to [console v]\nadd [3 -  show list of administrators ] to [console v]\nadd [4 - leave a message to the_Magic_Bonus player] to [console v]\nadd [5 - close console] to [console v]\n\ndefine list start\nadd [list mode switched on] to [console v]\nwait (3) seconds\ndelete all of [console v]\nadd [Admins list:] to [console v]\nhide list [admins v]\nrepeat (8)\n    add [  ] to [console v]\nend\nadd [press the checkmark on the blue background  to close admin list] to [console v]\nask [] and wait\nrepeat until <not <(answer) = [3]>>\ndelete all of [console v]\nadd [list mode switched off] to [console v]\nshow list [admins v]\nwait (3) seconds\nMenu\n\nask [Как тебя зовут?] and wait\n\ndefine message\n\n@Water\n\nset [ghost v] effect to (30)\n\nwhen I receive [start v]\ngo to [back v] layer\nforever\n    go [backward v] (88) layers\n    switch costume to (LEVEL)\n    set [ghost v] effect to (30)\n    set y to (([sin v] of ((timer) * (100)) ) * (5))\nend\n\n@shadows\n\nwhen flag clicked\ngo to x: (25) y: (13)\nshow\nforever\n    go to [back v] layer\n    switch costume to (LEVEL)\n    set [ghost v] effect to (50)\nend\n\nbroadcast (START v)\n\nwhen I receive [start v]\n\n@decorations\n\nwhen flag clicked\nshow\nforever\n    switch costume to (LEVEL)\nend\n\ngo [backward v] (3) layers\n\ngo to [front v] layer\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\n@Button\n\nwhen flag clicked\nset size to (60) %\nwait (0.2) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (start_idk v)\n        repeat until <not <touching (mouse-pointer v)?>>\n            switch costume to (kostüm2 v)\n            repeat until <(size) = [80]>\n                change size by (5)\n            end\n        end\n    else\n        repeat until <(size) = [60]>\n            change size by (-5)\n        end\n        set size to (60) %\n        switch costume to (kostüm1 v)\n    end\nend\n\nturn right (15) degrees\nwait (0.1) seconds\nturn left (15) degrees\nwait (0.3) seconds\n\nwhen flag clicked\nhide\nwait (6) seconds\npoint in direction (90)\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nbroadcast (start v)\nbroadcast (START GAME v)\nturn right (15) degrees\nrepeat (2)\n    turn right (15) degrees\n    change size by (-30)\n    change [ghost v] effect by (40)\nend\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [instructions_closed v]\nshow\n\nwhen I receive [online start v]\nhide\n\n@Button2\n\nwhen flag clicked\nset size to (60) %\nwait (0.2) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <not <touching (mouse-pointer v)?>>\n            switch costume to (kostüm2 v)\n            repeat until <(size) = [80]>\n                change size by (5)\n            end\n        end\n    else\n        repeat until <(size) = [60]>\n            change size by (-5)\n        end\n        set size to (60) %\n        switch costume to (kostüm1 v)\n    end\nend\n\nturn right (15) degrees\nwait (0.1) seconds\nturn left (15) degrees\nwait (0.3) seconds\n\nwhen flag clicked\nhide\nwait (6) seconds\npoint in direction (90)\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nbroadcast (Online start v)\nturn right (15) degrees\nrepeat (2)\n    turn right (15) degrees\n    change size by (-30)\n    change [ghost v] effect by (40)\nend\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [instructions_closed v]\nshow\n\nwhen I receive [start v]\nhide\n\n@heart\n\nwhen I receive [dead_sound v]\nchange [lives v] by (-1)\n\nwhen I receive [new live v]\nset [stop heart move v] to [0]\nset [lives v] to [6]\nswitch costume to (heart v)\npoint in direction (90)\nset size to (300) %\ngo to [front v] layer\ngo to x: (-202) y: (-150)\nshow\nbroadcast (Start Heart 2 v)\nrepeat until <[6] > (Lives)>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 1 v)\nrepeat until <[5] > (Lives)>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 2 v)\nrepeat until <(Stop Heart move) = [1]>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 2 v)\n\ngo to x: (-152) y: (-150)\ngo to x: (-102) y: (-150)\n\nwhen flag clicked\nset [cheat code? v] to [0]\nhide\n\nforever\n    if <(Cheat code?) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            if <mouse down?> then\n                change [cheat code? v] by (1)\n                broadcast (Cheat code v)\n            end\n        end\n    end\nend\n\nwhen I receive [cheat code + v]\nstop [other scripts in sprite v]\nswitch costume to (костюм 3 v)\nrepeat until <(Stop Heart move) = [1]>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\n    forever\n        go to x: ((Player X) - (25)) y: ((Player Y) + (40))\n    end\nend\n\nwhen I receive [start v]\nbroadcast (New Live v)\n\nwhen flag clicked\nforever\n    go to x: ((Player X) - (25)) y: ((Player Y) + (40))\nend\n\n@heart2\n\nwhen flag clicked\nhide\nswitch costume to (heart v)\n\nwhen I receive [start heart 2 v]\nswitch costume to (heart v)\npoint in direction (90)\nset size to (300) %\ngo to [front v] layer\ngo to x: (-152) y: (-150)\nshow\nrepeat until <[4] > (Lives)>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 1 v)\nrepeat until <[3] > (Lives)>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 2 v)\nrepeat until <(Stop Heart move) = [1]>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 2 v)\n\nwhen I receive [cheat code + v]\nstop [other scripts in sprite v]\nswitch costume to (костюм 3 v)\nrepeat until <(Stop Heart move) = [1]>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\n    forever\n        go to x: (Player X) y: ((Player Y) + (40))\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (Player X) y: ((Player Y) + (40))\nend\n\n@heart3\n\nwhen flag clicked\nhide\n\nwhen I receive [start heart 2 v]\npoint in direction (90)\nset size to (300) %\ngo to [front v] layer\ngo to x: (-102) y: (-150)\nshow\nswitch costume to (костюм 1 v)\nrepeat until <[2] > (Lives)>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 2 v)\nrepeat until <[1] > (Lives)>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\nswitch costume to (костюм 3 v)\nbroadcast (Spawn v)\nrepeat until <(Stop Heart move) = [1]>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\n\nwhen I receive [cheat code + v]\nstop [other scripts in sprite v]\nswitch costume to (костюм 4 v)\nrepeat until <(Stop Heart move) = [1]>\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\n    forever\n        go to x: ((Player X) - (-25)) y: ((Player Y) + (40))\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: ((Player X) - (-25)) y: ((Player Y) + (40))\nend\n\n@Achievments\n\ndefine Acheivment id: (id)\nset [id v] to (id)\ncreate clone of (_myself_ v)\nbroadcast (Achievement v)\n\nwhen I start as a clone\nset [t v] to [0]\nset size to (100000) %\ngo to x: (-140) y: (-195)\nshow\nclear graphic effects\nset size to (85) %\ngo to [front v] layer\nswitch costume to (id)\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nrepeat until <(t) > [7]>\n    change [t v] by (0.08)\n    go to [front v] layer\nend\nrepeat (20)\n    change [ghost v] effect by (5)\n    go to [front v] layer\nend\ndelete this clone\n\nwhen I receive [achievement v]\nchange y by (65)\n\nwhen I receive [message v]\nAcheivment id: [2]\n\nwhen flag clicked\nwait (8) seconds\nAcheivment id: [1]\n\nif <(item (id) of [completed achievments v]) = [0]> then\n    replace item (id) of [completed achievments v] with [1]\nend\n\nsay [1] for (2) seconds\n\nwhen flag clicked\n\nwait (8) seconds\n\nwhen I receive [start 2 v]\n\nwhen I receive [start3 v]\n\nwhen flag clicked\nrepeat until <(LEVEL) = [11]>\nAcheivment id: [3]\nrepeat until <(LEVEL) = [21]>\nAcheivment id: [4]\nrepeat until <(LEVEL) = [30]>\nAcheivment id: [5]\n\n@Music Sprite\n\nwhen I receive [dead_sound v]\nstart sound [Oops v]\n\nwhen flag clicked\nset volume to (100) %\nhide\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo to x: (-212) y: (130)\nset [music? v] to [yes]\nshow\nforever\n    if <(music?) = [yes]> then\n        switch costume to (costume1 v)\n        if <touching (mouse-pointer v)?> then\n            if <mouse down?> then\n                set [music? v] to [no]\n                wait until <not <mouse down?>>\n            end\n        end\n    end\n    if <(music?) = [no]> then\n        switch costume to (costume2 v)\n        if <touching (mouse-pointer v)?> then\n            if <mouse down?> then\n                set [music? v] to [yes]\n                wait until <not <mouse down?>>\n            end\n        end\n    end\nend\n\ndefine Musicscript play\nif < (☁ Music?) contains [yes]?> then\n    set volume to (100) %\n    broadcast (Inro Sound v)\nend\nif < (☁ Music?) contains [no]?> then\n    set volume to (0) %\n    broadcast (Inro Sound off v)\nend\nforever\n    if <(music?) = [yes]> then\n        set volume to (100) %\n        set [☁ music? v] to (join (username) (join [ ] (join [yes] (join [ ] [music]))))\n    end\n    if <(music?) = [no]> then\n        set volume to (0) %\n        set [☁ music? v] to (join (username) (join [ ] (join [no] (join [ ] [music]))))\n    end\nend\n\nwhen I receive [jump_effect v]\nstart sound [Jump2 v]\n\nwhen flag clicked\nforever\n    play sound [Alex Skrindo - Jumbo \[NCS Release\] v] until done\nend\n\nwhen flag clicked\nMusicscript play\n\nwhen I receive [jump v]\nstart sound [Big Boing v]\n\nwhen I receive [intro sound start v]\nstart sound [Prismo - Stronger v]\nset volume to (100) %\n\nif <touching (mouse-pointer v)?> then\n    if <mouse down?> then\n        set [music? v] to [no]\n        wait until <not <mouse down?>>\n    end\nend\n\nif <touching (mouse-pointer v)?> then\n    if <mouse down?> then\n        set [music? v] to [no]\n        wait until <not <mouse down?>>\n    end\nend\n\n@Music Sprite2\n\ngo to x: (-212) y: (160)\n\nset size to (40) %\n\nwhen this sprite clicked\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            next costume\n            Nickname\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\ndefine Nickname\nif <(NickName) = [1]> then\n    set [nickname v] to [0]\nelse\n    set [nickname v] to [1]\nend\n\n@Спрайт 1\n\nwhen flag clicked\nforever\n    go to x: (Player X) y: ((Player Y) + (60))\nend\n\nwhen flag clicked\n\nwhen I receive [start v]\nforever\n    if <(NickName) = [1]> then\n        say (username)\n    else\n        say []\n    end\nend\n\n@detector\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\nset [timer2 v] to [0]\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nbroadcast (Message v)\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    change [timer2 v] by (0.1)\n    wait (0.1) seconds\nend\n\nshow\ngo to [front v] layer\ngo to x: (0) y: (50)\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nset [timer2 v] to [0]\nrepeat until <(timer2) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nset [timer2 v] to [0]\nrepeat until <(timer2) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\n@Intro\n\nwhen I start as a clone\nif <(Clone) = [Particles]> then\n    switch costume to (pick random (29) to (31))\n    set size to (pick random (50) to (150)) %\n    set [ghost v] effect to (pick random (0.) to (5.))\n    set [brightness v] effect to (pick random (-25.) to (100.))\n    go to x: (0) y: (0)\n    point in direction (pick random (-180) to (180))\n    set [x v] to (pick random (10.) to (12.))\n    set [i v] to (pick random (2.) to (9.))\n    go to [front v] layer\n    show\n    repeat until <touching (_edge_ v)?>\n        move (X) steps\n        change y by (I)\n        change [i v] by (-0.4)\n        set [x v] to ((X) * (0.95))\n    end\n    delete this clone\nend\n\ndefine Particles\nset [clone v] to [Particles]\nrepeat (50)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone) = [Name]> then\n    switch costume to (name v)\n    set size to (50) %\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (-100)\n    point in direction (0)\n    show\n    repeat (50)\n        go to [front v] layer\n        change size by (((130) - (size)) / (8))\n        change y by (((0) - (y position)) / (8))\n        turn right (((90) - (direction)) / (8)) degrees\n    end\n    set [i v] to [-1]\n    repeat (10)\n        go to [front v] layer\n        change size by (I)\n        change [i v] by (join [-] (([abs v] of (I) ) / (2)))\n        turn right (I) degrees\n    end\n    switch costume to (logo v)\n    repeat (40)\n        go to [front v] layer\n        change size by (((130) - (size)) / (8))\n        turn right (((90) - (direction)) / (8)) degrees\n    end\n    set [i v] to [-1]\n    repeat (20)\n        go to [front v] layer\n        change size by ((I) / (3))\n        change [i v] by (join [-] (([abs v] of (I) ) / (4)))\n        turn right ((I) / (-3)) degrees\n    end\n    delete this clone\nend\n\nwhen flag clicked\nreset timer\nhide\nbroadcast (INTRO SOUND START v)\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\nset [clone v] to [Square]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [clone v] to [Name]\ncreate clone of (_myself_ v)\nwait (0) seconds\nrepeat (2)\n    Spiral spline explosion\n    Particles\n    Rect\n    Spiral spline explosion\nend\nCircle\nrepeat (4)\n    Spiral spline explosion\n    Particles\n    Rect\n    Spiral spline explosion\nend\nCircle\nrepeat (2)\n    Spiral spline explosion\n    Rect\n    Spiral spline explosion\nend\n\nstart sound [Prismo - Stronger v]\nset volume to (100) %\n\nwhen I start as a clone\nif <(Clone) = [Square]> then\n    clear graphic effects\n    show\n    set size to (0) %\n    go to x: (0) y: (300)\n    point in direction (0)\n    switch costume to (square v)\n    repeat (20)\n        change size by (((100) - (size)) / (5))\n        turn right (((90) - (direction)) / (5)) degrees\n        change y by (((0) - (y position)) / (5))\n    end\n    point in direction (90)\n    repeat (12)\n        next costume\n    end\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\n    wait (3) seconds\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((100) - (size)) / (5))\n        switch costume to (square13 v)\n    end\n    repeat (12)\n        switch costume to ((costume [number v]) - (1))\n        change size by (-5)\n    end\n    set [i v] to [-1]\n    repeat (20)\n        change size by ((I) / (3))\n        change [i v] by (join [-] (([abs v] of (I) ) / (4)))\n        turn right ((I) / (-3)) degrees\n        change y by ((I) / (3))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Bursts]> then\n    switch costume to (lineexplosion1 v)\n    clear graphic effects\n    go to [front v] layer\n    go [backward v] (1) layers\n    set [i v] to (pick random (1) to (3))\n    if <(I) = [1]> then\n        set [brightness v] effect to (100)\n    else\n        if <(I) = [2]> then\n            set [brightness v] effect to (25)\n        else\n            set [brightness v] effect to (-25)\n        end\n    end\n    show\n    set [i v] to [20]\n    Animate   x: [0] y: [0] size: [0] rotate: (pick random (-180) to (180)) speed: [1]\n    repeat (2)\n        set [i v] to ((I) * (0.9))\n        move (I) steps\n        Size: [100] speed: [5]\n    end\n    repeat (10)\n        set [i v] to ((I) * (0.9))\n        move (I) steps\n        Size: [100] speed: [5]\n        change [ghost v] effect by (10)\n        next costume\n    end\n    delete this clone\nend\n\ndefine Animate   x: (x) y: (y) size: (s) rotate: (r) speed: (s)\nchange x by (((round (x)) - (round (x position))) / (s))\nchange y by (((round (y)) - (round (y position))) / (s))\nchange size by (((round (s)) - (round (size))) / (s))\nturn right (((round (r)) - (round (direction))) / (s)) degrees\n\ndefine Spiral spline explosion\nset [clone v] to [Bursts]\nrepeat (5)\n    create clone of (_myself_ v)\nend\n\ndefine Size: (s) speed: (spd)\nchange size by (((round (s)) - (round (size))) / (spd))\n\ndefine Rect\nset [clone v] to [Rect]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone) = [Rect]> then\n    clear graphic effects\n    show\n    set size to (0) %\n    go to (random position v)\n    point in direction (90)\n    switch costume to (background rect v)\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Circle]> then\n    clear graphic effects\n    set [brightness v] effect to (100)\n    go to [front v] layer\n    go [backward v] (2) layers\n    show\n    set size to (0) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (circle explosion 1 v)\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((300) - (size)) / (5))\n        switch costume to (circle explosion 1 v)\n    end\n    delete this clone\nend\n\ndefine Circle\nset [clone v] to [Circle]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nset [clone v] to [Circle 2]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone) = [Circle 2]> then\n    clear graphic effects\n    set [brightness v] effect to (0)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    set size to (0) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (circle explosion 1 v)\n    repeat (20)\n        switch costume to (blank v)\n        change size by (((300) - (size)) / (5))\n        switch costume to (circle explosion 1 v)\n    end\n    delete this clone\nend\n\nwhen I receive [inro sound v]\nset volume to (100) %\n\nwhen I receive [inro sound off v]\nset volume to (0) %\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@trampolins\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (kostüm2 v)\n        broadcast (Jump v)\n        wait (0.1) seconds\n    else\n        switch costume to (kostüm1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [6]> then\n        go to x: (85) y: (-170)\n        show\n    else\n        if <(LEVEL) = [8]> then\n            go to x: (-35) y: (-73)\n            show\n        else\n            if <(LEVEL) = [9]> then\n                show\n                set x to (-100)\n            else\n                if <(LEVEL) = [18]> then\n                    go to x: (-5) y: (-73)\n                    show\n                else\n                    if <(LEVEL) = [19]> then\n                        show\n                        set x to (-70)\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (0) y: (90)\nforever\n    point in direction ((([sin v] of ((timer) * (150)) ) * (3)) + (90))\nend\n\nwhen I receive [start v]\nhide\n\nforever\n    point in direction ((([sin v] of ((timer) * (150)) ) * (3)) + (90))\nend\n\n@Level Number\n\nwhen flag clicked\ngo to [front v] layer\nhide\npoint in direction (90)\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nhide\n\nshow\n\ngo to x: (222) y: (139)\n\nset [level v] to [21]\n\n@Online\n\n@Spikes and saws\n\nchange [turndegrees v] by (-5)\n\nwait (0.1) seconds\n\ngo to x: (19) y: (-104)\npoint in direction (90)\n\nwhen flag clicked\n\nforever\n    if <(LEVEL) = [5]> then\n        go to x: (19) y: (-104)\n        turn right (9) degrees\n    else\n        if <(LEVEL) = [7]> then\n            go to x: (19) y: (-180)\n            turn right (9) degrees\n        else\n            if <(LEVEL) = [15]> then\n                go to x: (19) y: (-104)\n                turn right (9) degrees\n            else\n                if <(LEVEL) = [17]> then\n                    go to x: (19) y: (-110)\n                    turn right (9) degrees\n                else\n                    go to x: (19) y: (-104)\n                    point in direction (90)\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nrepeat (20)\n    change [turndegrees v] by (0.5)\nend\n\nwhen flag clicked\nhide\n\n@Text\n\nwhen flag clicked\n\ngo to [front v] layer\nhide\npoint in direction (90)\n\nwhen I receive [start v]\n\nshow\n\nshow\n\nhide\n\nforever\n    switch costume to (LEVEL)\nend\n\n@Secret achivment\n\n@backdrop2\n\nwhen I receive [online start v]\nshow\n\nwhen flag clicked\nhide\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nreset timer\n\nwhen I receive [joining v]\nforever\n    switch costume to (costume3 v)\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\n    next costume\nend\n\nwhen I receive [joining v]\nforever\n    point in direction ((timer) * (200))\nend\n\nwhen I receive [joining v]\nforever\n    repeat until <(round (size)) = [110]>\n        change size by (((110) - (size)) / (10))\n    end\n    repeat until <(round (size)) = [90]>\n        change size by (((90) - (size)) / (10))\n    end\nend\n\nwhen I receive [online start v]\nshow\nbroadcast (joining v)\n\nwhen I receive [joining v]\nforever\n    set y to ((-20) + (([cos v] of ((timer) * (100)) ) * (20)))\nend\n\nwhen I receive [joining v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nstop [other scripts in sprite v]\nhide\nbroadcast (joining v)\n\n@Sprite11\n\nwhen flag clicked\nhide\n\nreset timer\n\nwhen I receive [joining v]\nforever\n    switch costume to (costume8 v)\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\n    switch costume to (costume7 v)\nend\n\nwhen I receive [joining v]\nforever\n    repeat until <(round (size)) = [110]>\n        change size by (((105) - (size)) / (10))\n    end\n    repeat until <(round (size)) = [90]>\n        change size by (((95) - (size)) / (10))\n    end\nend\n\nwhen I receive [begin v]\n\nwhen I receive [joining v]\nforever\n    set y to ((-10) + (([cos v] of ((timer) * (100)) ) * (10)))\nend\n\nshow\n\nwhen I receive [joining v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nstop [other scripts in sprite v]\nhide\n\n
Cube plarformer\nClick the flag, \nPress arrow keys or W A S D to move \nAvoid the spikes, saws and lava, jump on tumpline and go to the end for the next level! \n=================\nBackgrounds changing with your time.\nMorning - from 4am to 9am\nDaytime -  from 10am to 15pm\nEvening - from 16pm to 19pm\nNight - Switched off\n=================\n*crouching is glitchy right now\n**Will probably add more levels