| Super Cube World | Scrolling platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound (join [1] []) until done\nend\n\nwhen flag clicked\nbroadcast (play v)\nbroadcast (end v)\n\nwhen I receive [restart v]\nset [idk wats this v] to [0]\n\nwhen flag clicked\nreset timer\n\nwhen I receive [noice v]\nbroadcast (-1 v)\ncreate clone of (coin v)\n\nwhen I receive [-0 v]\nchange [coins v] by (1)\n\n@Character\n\ndefine Go (direction) (speed)\nif <(ded) = [0]> then\n    point in direction (direction)\n    change x by (speed)\n    set [sthoppp v] to [0]\n    set [slope v] to [0]\n    repeat until <<(slope) = [8]> or <<not <touching (platformwer v)?>> and <not <touching (bricks v)?>>>>\n        change y by (1)\n        change [slope v] by (1)\n        set [touched? v] to [1]\n    end\n    if <(slope) = [8]> then\n        change x by ((0) - (speed))\n        change y by ((0) - (slope))\n        if <(sthoppp) = [1]> then\n            set [xvel v] to ((scroll xvel) * (-1))\n        end\n    end\n    if <(scrolling mode?) = [1]> then\n        if <(x position) < [-100]> then\n            if <[0] > (scroll x)> then\n                set [sthoppp v] to [1]\n                change [scroll xvel v] by (6)\n                change x by (scroll xvel)\n            end\n        end\n        if <[100] < (x position)> then\n            if <(scroll x) > [-1930]> then\n                set [sthoppp v] to [1]\n                change [scroll xvel v] by (-6)\n                change x by (scroll xvel)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [play v]\nset [brightness v] effect to (100)\ngo to x: (0) y: (0)\nset [yvel v] to [0]\nshow\nset [xvel v] to [0]\nforever\n    change [yvel v] by (-0.8)\n    change y by (yvel)\n    set [touched? v] to [0]\n    touch ground <(yvel) > [0]>\nend\n\nwhen I receive [play v]\nforever\n    set [idk wats this v] to ((idk wats this) * (0.8))\n    change y by (idk wats this)\n    change [y v] by (idk wats this)\n    if <<key (up arrow v) pressed?> and <(is it falling?) < [3]>> then\n        set [yvel v] to [14]\n    end\n    if <(scrolling mode?) = [1]> then\n        if <[70] < (y position)> then\n            change [idk wats this v] by (-3)\n        end\n        if <(y position) < [-70]> then\n            change [idk wats this v] by (5)\n        end\n    end\n    if <touching (flag v)?> then\n        stop [other scripts in sprite v]\n        broadcast (next v)\n        broadcast (play v)\n        start sound [Connect v]\n        hide\n        go to x: (0) y: (0)\n    end\nend\n\nwhen I receive [play v]\nforever\n    set rotation style [left-right v]\n    set [xvel v] to [0]\n    set [ded v] to [0]\n    if <key (right arrow v) pressed?> then\n        Go [90] [6]\n        set [xvel v] to [6]\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        Go [90] [-6]\n        set [xvel v] to [-6]\n        point in direction (-90)\n    end\n    if <<touching (platformwer v)?> or <touching (bricks v)?>> then\n        set [xvel v] to ((xvel) * (-1))\n        change x by (xvel)\n        if <key (up arrow v) pressed?> then\n            set [yvel v] to [14]\n        end\n        set [touched? v] to [1]\n    end\nend\n\ndefine touch ground <up?>\nchange [is it falling? v] by (1)\nrepeat until <<not <touching (platformwer v)?>> and <not <touching (bricks v)?>>>\n    if <up?> then\n        change y by (-1)\n        set [touched? v] to [1]\n    else\n        change y by (1)\n        set [is it falling? v] to [0]\n        set [touched? v] to [1]\n    end\n    set [yvel v] to [0]\n    set [touched? v] to [1]\n    if <touching color (#009aff)?> then\n        insert (y) at (1) of [save scroll y v] \n        insert (scroll x) at (1) of [save scroll x v] \n        insert (x position) at (1) of [save x v] \n        insert (y position) at (1) of [save y v] \n    end\nend\n\nwhen I receive [play v]\ngo to x: (item (1) of [save x v]) y: (item (1) of [save y v])\nforever\n    change [scroll x v] by (scroll xvel)\n    change [e v] by (scroll xvel)\n    change [ee v] by (scroll xvel)\nend\n\nwhen I receive [play v]\nset [die? v] to [0]\nset [scroll x v] to (item (1) of [save scroll x v])\nset [y v] to (item (1) of [save scroll y v])\nforever\n    if <(y) > [300]> then\n        start sound [Crunch v]\n        die\n    end\n    if <touching (water v)?> then\n        start sound [water splash v]\n        die\n    end\n    if <touching (spikey spikes v)?> then\n        if <not <(health) = [0]>> then\n            start sound [Crunch v]\n            broadcast (ugh v)\n            change [health v] by (-1)\n        end\n        if <not <(health) = [0]>> then\n            wait (1) seconds\n        end\n        if <(health) = [0]> then\n            die\n        end\n    end\nend\n\nwhen I receive [play v]\nset [brightness v] effect to (100)\ngo to x: (item (1) of [save x v]) y: (item (1) of [save y v])\nshow\nset [xvel v] to [0]\nset [yvel v] to [0]\nset size to (110) %\nrepeat (10)\n    change [brightness v] effect by (-10)\n    change size by (-1)\nend\n\nwhen I receive [play v]\nset size to (110) %\nset [brightness v] effect to (100)\n\nwhen I receive [clicc v]\nbroadcast (play v)\n\nwhen I receive [restart v]\nbroadcast (play v)\n\nwhen I receive [play v]\nforever\n    if <<[1] > (yvel)> and <(yvel) > [-1]>> then\n        if <(touched?) = [1]> then\n            set volume to (100) %\n            start sound [ hit v]\n            wait until <not <<[1] > (yvel)> and <(yvel) > [-1]>>>\n        end\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <<key (up arrow v) pressed?> and <(is it falling?) < [3]>> then\n        set volume to (100) %\n        start sound [ hit v]\n        wait until <not <<key (up arrow v) pressed?> and <(is it falling?) < [3]>>>\n    end\nend\n\nwhen flag clicked\ndelete all of [save scroll x v]\ndelete all of [save x v]\ndelete all of [save y v]\ndelete all of [save scroll y v]\ninsert [0] at (1) of [save scroll x v] \ninsert [0] at (1) of [save x v] \ninsert [0] at (1) of [save y v] \ninsert [0] at (1) of [save scroll y v] \n\nwhen I receive [play v]\nforever\n    set [scroll xvel v] to [0]\n    set [nani v] to <(yvel) > [0.1]>\nend\n\nwhen flag clicked\nset [score v] to [0]\n\nwhen I receive [next v]\nset [scrolling mode? v] to [0]\n\nwhen flag clicked\nset [scrolling mode? v] to [1]\n\nwhen I receive [next v]\ndelete all of [save scroll x v]\ndelete all of [save x v]\ndelete all of [save y v]\ndelete all of [save scroll y v]\ninsert [0] at (1) of [save scroll x v] \ninsert [0] at (1) of [save x v] \ninsert [0] at (1) of [save y v] \ninsert [0] at (1) of [save scroll y v] \n\nwhen I receive [oof v]\nset volume to (0) %\n\ndefine die\nhide\nstop [other scripts in sprite v]\nset [health v] to [3]\nrepeat until <(round (scroll x)) = (item (1) of [save scroll x v])>\n    set [brightness v] effect to (100)\n    set [scroll x v] to (item (1) of [save scroll x v])\n    set [y v] to (item (1) of [save scroll y v])\n    stop [other scripts in sprite v]\n    set [ded v] to [1]\nend\nbroadcast (restart v)\n\nwhen I receive [ugh v]\nrepeat (3)\n    set [ghost v] effect to (50)\n    wait (0.15) seconds\n    set [ghost v] effect to (0)\n    wait (0.15) seconds\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nwhen I receive [play v]\nforever\n    set [scrolling mode? v] to [1]\nend\n\nwhen I receive [play v]\nset [health v] to [3]\n\n@Bricks\n\ndefine e\nrepeat (6)\n    create clone of (_myself_ v)\n    turn right (1) degrees\nend\n\nwhen I start as a clone\nshow\nforever\n    set rotation style [don't rotate v]\n    if <(direction) = [1]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (3))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [2]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (4))) y: (((y) + (3)) + ((47) * (-1)))\n        if <[100] > (size)> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    if <(direction) = [3]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (5))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [4]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (22))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [5]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (23))) y: (((y) + (3)) + ((47) * (-1)))\n        if <[100] > (size)> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    if <(direction) = [6]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (24))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [7]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (13))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [8]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (14))) y: (((y) + (3)) + ((47) * (-1)))\n        if <[100] > (size)> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    if <(direction) = [9]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (15))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [10]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (30))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [11]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (31))) y: (((y) + (3)) + ((47) * (-1)))\n        if <[100] > (size)> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    if <(direction) = [12]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (32))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [13]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (4))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [14]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (5))) y: (((y) + (3)) + ((47) * (-1)))\n        if <[100] > (size)> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    if <(direction) = [15]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (6))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [16]> then\n        go to x: (((scroll x) + (-10)) + ((47) * (27))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) = [17]> then\n        go to x: (((scroll x) + (-10)) + ((47) * (28))) y: (((y) + (3)) + ((47) * (-1)))\n        if <[100] > (size)> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\n    if <(direction) = [18]> then\n        go to x: (((scroll x) + (-10)) + ((47) * (29))) y: (((y) + (3)) + ((47) * (-1)))\n        switch costume to (costume2 v)\n    end\n    if <(direction) > [18]> then\n        go to x: (((scroll x) + (-10)) + ((999) * (29))) y: (((y) + (3)) + ((47) * (999)))\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I start as a clone\nwait (0.1) seconds\nset size to (100) %\nforever\n    if <(costume [number v]) = [1]> then\n        if <touching (thing v)?> then\n            set size to (99) %\n            set [x v] to (x position)\n            set [y v] to (y position)\n            start sound [Crunch v]\n            broadcast (noice v)\n        end\n    end\n    if <(costume [number v]) = [2]> then\n        if <touching (thing v)?> then\n            set [yvel v] to [0]\n            set [x v] to (x position)\n            set [y v] to (y position)\n            broadcast (bvOOm v)\n            start sound [Crunch v]\n            delete this clone\n        end\n    end\nend\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\nbroadcast (woah v)\ndelete this clone\n\nwhen I receive [woah v]\nif <(?) = [0]> then\n    repeat (6)\n        create clone of (_myself_ v)\n        turn right (1) degrees\n    end\nend\n\nwhen I receive [end v]\npoint in direction (1)\nhide\ne\n\nwhen I receive [0000 v]\nhide\n\n@Platformwer\n\nwhen I start as a clone\nshow\nforever\n    if <(letter (1) of (costume [name v])) = [1]> then\n        go to x: ((scroll x) + (((costume [number v]) - (1)) * (480))) y: (y)\n    end\n    if <(letter (1) of (costume [name v])) = [2]> then\n        go to x: ((scroll x) + (((costume [number v]) - (6)) * (480))) y: (y)\n    end\n    if <(letter (1) of (costume [name v])) = [3]> then\n        go to x: ((scroll x) + (((costume [number v]) - (11)) * (480))) y: (y)\n    end\n    if < (costume [name v]) contains [end]?> then\n        go to x: ((scroll x) + (((costume [number v]) - (16)) * (480))) y: (y)\n    end\nend\n\nwhen I receive [play v]\nset [yvel v] to [0]\n\ndefine create game\nswitch costume to (1-1 v)\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\n\nwhen I receive [next v]\nnext costume\nnext costume\nnext costume\nnext costume\nnext costume\n\nwhen I receive [end v]\nhide\ncreate game\n\n@thing\n\nwhen flag clicked\nforever\n    go to (character v)\n    set [ghost v] effect to (99.99)\nend\n\n@;-;\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nforever\n    go to [front v] layer\n    go [backward v] (2) layers\nend\n\n@Particles\n\ndefine ee\nrepeat (10)\n    go to x: (X) y: (Y)\n    point in direction (pick random (180) to (-180))\n    create clone of (_myself_ v)\n    next costume\nend\n\nwhen I start as a clone\nshow\nrepeat (pick random (1) to (3))\n    change y by (3)\nend\nrepeat (pick random (1) to (3))\n    change y by (2)\nend\nrepeat (pick random (1) to (3))\n    change y by (1)\nend\nrepeat (2)\n    change y by (-1)\nend\nrepeat (2)\n    change y by (-2)\nend\nrepeat (2)\n    change y by (-3)\nend\nrepeat (2)\n    change y by (-5)\nend\nrepeat (3)\n    change y by (-8)\nend\nrepeat (5)\n    change y by (-10)\nend\nrepeat (5)\n    change y by (-12)\nend\nrepeat (5)\n    change y by (-15)\nend\nrepeat (5)\n    change y by (-20)\nend\n\nwhen I start as a clone\nforever\n    move (3) steps\nend\n\nwhen I start as a clone\nforever\n    if on edge, bounce\nend\n\nwhen I receive [start v]\nstop [other scripts in sprite v]\nbroadcast (epik v)\ndelete this clone\n\nwhen I receive [bvoom v]\nbroadcast (0 v)\nwait (0) seconds\nswitch costume to (costume1 v)\ngo to [front v] layer\nset [ghost v] effect to (0)\nee\n\nwhen I start as a clone\nforever\n    set rotation style [don't rotate v]\nend\n\nwhen I receive [0 v]\ndelete this clone\n\nwhen I start as a clone\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [noice v]\nbroadcast (0 v)\nwait (0) seconds\nswitch costume to (costume11 v)\ngo to [front v] layer\nset [ghost v] effect to (0)\ne\n\ndefine e\nrepeat (25)\n    go to x: (X) y: (Y)\n    point in direction (pick random (180) to (-180))\n    create clone of (_myself_ v)\nend\n\n@Stuff\n\nwhen flag clicked\nset [health v] to [3]\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\n@Visuals\n\ndefine Write (text)\nset [my variable v] to [1]\ngo to [front v] layer\nrepeat (length of (text))\n    switch costume to (letter (my variable) of (text))\n    create clone of (_myself_ v)\n    change [my variable v] by (1)\n    change x by (12)\n    if <(x position) > [219]> then\n        change y by (-20)\n        set x to (-220)\n    end\nend\nhide\n\nwhen flag clicked\nshow\nforever\n    set size to (100) %\n    go to x: (-160) y: (152)\n    set [brightness v] effect to (0)\n    Write (round (timer))\n    set size to (100) %\n    go to x: (-3) y: (152)\n    set [brightness v] effect to (0)\n    Write (coins)\n    set size to (100) %\n    go to x: (153) y: (152)\n    set [brightness v] effect to (0)\n    Write (health)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (50) %\nshow\nwait (0) seconds\ndelete this clone\n\n@Coin\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\nset size to (300) %\nforever\n    next costume\n    wait (0) seconds\nend\n\nwhen I start as a clone\nset size to (300) %\nshow\nset [00 v] to (X)\nset [000 v] to (Y)\nforever\n    set rotation style [don't rotate v]\n    go to x: ((00) + (ee)) y: ((direction) + (((000) * (-1)) + (y)))\nend\n\nwhen I start as a clone\npoint in direction (0)\nforever\n    go to [back v] layer\n    turn right ((((000) + (20)) - (direction)) / (5)) degrees\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0) seconds\nend\n\nwhen I receive [-1 v]\nset [e v] to [0]\nset [ee v] to [0]\ndelete this clone\n\nwhen flag clicked\nset [e v] to [0]\nset [ee v] to [0]\n\nwhen I start as a clone\nwait (0.5) seconds\nforever\n    if <touching (character v)?> then\n        start sound [Coin v]\n        broadcast (-0 v)\n        set [a v] to (y position)\n        set [b v] to (x position)\n        repeat (10)\n            change size by (-20)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [0000 v]\nhide\n\nif <(direction) > [18]> then\n    go to x: (((scroll x) + (-10)) + ((999) * (29))) y: (((y) + (3)) + ((47) * (999)))\n    switch costume to (costume2 v)\nend\n\n@effact\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [coins v] to [0]\nhide\n\nwhen I receive [-0 v]\nset [ghost v] effect to (0)\nif <(costume [number v]) = [1]> then\n    e\nend\n\ndefine e\nset [wowzie v] to [0]\ngo to x: (b) y: (a)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nshow\nset [wowzie v] to [0]\nset [e v] to [0]\nforever\n    change [wowzie v] by (((50) - (wowzie)) / (5))\n    go to x: (((b) + (e)) - (0)) y: (((a) + (wowzie)) - (0))\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Coin2\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\nset size to (300) %\nforever\n    next costume\n    wait (0) seconds\nend\n\nwhen I start as a clone\nset size to (300) %\nshow\nforever\n    set rotation style [don't rotate v]\n    if <(direction) = [1]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (1))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [2]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (15))) y: (((y) + (3)) + ((47) * (-1)))\n    end\n    if <(direction) = [3]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (29))) y: (((y) + (3)) + ((47) * (-2)))\n    end\n    if <(direction) = [4]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (9))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [5]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (10))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [6]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (11))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [7]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (34))) y: (((y) + (3)) + ((47) * (0)))\n    end\n    if <(direction) = [8]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (36))) y: (((y) + (3)) + ((47) * (0)))\n    end\n    if <(direction) = [9]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (1))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [10]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (5))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [11]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (9))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [12]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (13))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [13]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (14))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [14]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (15))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [15]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (35))) y: (((y) + (3)) + ((47) * (-1)))\n    end\n    if <(direction) = [16]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (37))) y: (((y) + (3)) + ((47) * (-1)))\n    end\n    if <(direction) = [17]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (1))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [18]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (5))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [19]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (9))) y: (((y) + (3)) + ((47) * (-3)))\n    end\n    if <(direction) = [20]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (13))) y: (((y) + (3)) + ((47) * (3)))\n    end\n    if <(direction) = [21]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (14))) y: (((y) + (3)) + ((47) * (3)))\n    end\n    if <(direction) = [22]> then\n        go to x: (((scroll x) + (-3)) + ((47) * (15))) y: (((y) + (3)) + ((47) * (3)))\n    end\n    if <(direction) = [23]> then\n        go to x: (((scroll x) + (-15)) + ((47) * (32))) y: (((y) + (3)) + ((47) * (-2)))\n    end\n    if <(direction) = [24]> then\n        go to x: (((scroll x) + (-10)) + ((47) * (35))) y: (((y) + (3)) + ((47) * (-2)))\n    end\n    if <(direction) > [24]> then\n        go to x: (((scroll x) + (-10)) + ((999) * (35))) y: (((y) + (3)) + ((47) * (999)))\n    end\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0) seconds\nend\n\nwhen I start as a clone\nwait (0.5) seconds\nforever\n    if <touching (character v)?> then\n        start sound [Coin v]\n        broadcast (-0 v)\n        set [a v] to (y position)\n        set [b v] to (x position)\n        repeat (10)\n            change size by (-20)\n            change [ghost v] effect by (10)\n        end\n        hide\n        delete this clone\n    end\nend\n\nwhen flag clicked\npoint in direction (1)\nrepeat (8)\n    create clone of (_myself_ v)\n    turn right (1) degrees\nend\n\nwhen I receive [next v]\nstop [other scripts in sprite v]\nbroadcast (wow v)\ndelete this clone\n\nwhen I receive [wow v]\nif <(?) = [0]> then\n    repeat (8)\n        create clone of (_myself_ v)\n        turn right (1) degrees\n    end\nend\n\nwhen I receive [0000 v]\nhide\n\n@water\n\nwhen flag clicked\npoint in direction (1)\nhide\nrepeat (3)\n    create clone of (_myself_ v)\n    turn right (1) degrees\nend\n\nwhen I start as a clone\nshow\nforever\n    set [ghost v] effect to (70)\n    set y to ((([cos v] of (((tic) * (0.5)) + ((direction) * (100))) ) * (10)) + ((y) - (300)))\n    set rotation style [don't rotate v]\n    set x to (([cos v] of (((tic) * (0.5)) + (((direction) + (2)) * (100))) ) * (200))\nend\n\nwhen flag clicked\nset [tic v] to [0]\nforever\n    change [tic v] by (10)\nend\n\n@Spikey spikes\n\nwhen I start as a clone\nshow\nforever\n    if <(letter (1) of (costume [name v])) = [1]> then\n        go to x: ((scroll x) + (((costume [number v]) - (1)) * (480))) y: (y)\n        set [? v] to [0]\n    end\n    if <(letter (1) of (costume [name v])) = [2]> then\n        go to x: ((scroll x) + (((costume [number v]) - (6)) * (480))) y: (y)\n        set [? v] to [0]\n    end\n    if <(letter (1) of (costume [name v])) = [3]> then\n        go to x: ((scroll x) + (((costume [number v]) - (11)) * (480))) y: (y)\n        set [? v] to [0]\n    end\n    if < (costume [name v]) contains [end]?> then\n        go to x: ((scroll x) + (((costume [number v]) - (16)) * (480))) y: (y)\n        set [? v] to [1]\n    end\nend\n\nwhen I receive [end v]\nhide\ncreate game\n\ndefine create game\nswitch costume to (1-1 v)\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\n\nwhen I receive [next v]\nnext costume\nnext costume\nnext costume\nnext costume\nnext costume\n\nwhen flag clicked\nforever\n    if < (costume [name v]) contains [end]?> then\n        broadcast (0000 v)\n    end\nend\n\n@TN\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@flag\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((scroll x) + (-3)) + ((47) * (44))) y: (((y) + (3)) + ((47) * (-2)))\n    go to [back v] layer\nend\n\nwhen I receive [end v]\nhide\ncreate clone of (_myself_ v)\n\n
| Super Cube World | Scrolling platformer\nHave fun\n⚠ No advertising. ⚠\nTry to collect all the coins, there are 30.