Flat Cat Adventures - Scrolling Platformer
@Stage\n\nwhen flag clicked\nset [soundtoggler v] to [1]\nswitch backdrop to (backdrop1 v)\nset volume to (70) %\nforever\n    play sound [Dramatic music.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    wait until <key (m v) pressed?>\n    change [soundtoggler v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <((SoundToggler) mod (2)) = [1]> then\n        set volume to (70) %\n    else\n        set volume to (0) %\n    end\nend\n\nnext backdrop\nerase all\nstop [all v]\n\n@Pen Platformer                                                                              This is 100% Noroz. No copying allowed\n\ndefine None\nset pen size to (pen size)\nif <(color) = [black]> then\n    set pen color to (#000000)\nelse\n    if <(color) = [blue]> then\n        set pen color to (#003fff)\n    else\n        if <(color) = [red]> then\n            set pen color to (#ff0000)\n        else\n            if <(color) = [green]> then\n                set pen color to (#27d82b)\n            else\n                if <(color) = [orange]> then\n                    set pen color to (#ff9400)\n                else\n                    if <(color) = [white]> then\n                        set pen color to (#ffffff)\n                    else\n                        if <(color) = [yellow]> then\n                            set pen color to (#ffff00)\n                        else\n                            if <(color) = [red2]> then\n                                set pen color to (#990000)\n                            else\n                                if <<(color) = [grey]> or <(color) = [gray]>> then\n                                    set pen color to (#666666)\n                                else\n                                    if <(color) = [light blue]> then\n                                        set pen color to (#00ffff)\n                                    else\n                                        if <(color) = [dark green]> then\n                                            set pen color to (#1fa176)\n                                        else\n                                            if <(color) = [light green]> then\n                                                set pen color to (#00ff55)\n                                            else\n                                                if <(color) = [dark blue]> then\n                                                    set pen color to (#001966)\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nrepeat (50)\n    go to x: ((([sin v] of (a) ) * (rx)) + (x)) y: ((([cos v] of (a) ) * (ry)) + (y))\n    pen down\n    change [a v] by (7.2)\nend\npen up\n\ndefine None\nset pen size to (size)\nif <(color) = [black]> then\n    set pen color to (#000000)\nelse\n    if <(color) = [blue]> then\n        set pen color to (#003fff)\n    else\n        if <(color) = [red]> then\n            set pen color to (#ff0000)\n        else\n            if <(color) = [green]> then\n                set pen color to (#27d82b)\n            else\n                if <(color) = [orange]> then\n                    set pen color to (#ff9400)\n                else\n                    if <(color) = [white]> then\n                        set pen color to (#ffffff)\n                    else\n                        if <(color) = [yellow]> then\n                            set pen color to (#ffff00)\n                        else\n                            if <(color) = [purple]> then\n                                set pen color to (#7f00ff)\n                            else\n                                if <(color) = [pink]> then\n                                    set pen color to (#ff00bf)\n                                else\n                                    if <(color) = [light blue]> then\n                                        set pen color to (#00ffff)\n                                    else\n                                        if <(color) = [dark green]> then\n                                            set pen color to (#1fa176)\n                                        else\n                                            if <(color) = [light green]> then\n                                                set pen color to (#00ff55)\n                                            else\n                                                if <(color) = [dark blue]> then\n                                                    set pen color to (#001966)\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\ngo to x: (x) y: (y)\npen down\ngo to x: (x2) y: (y2)\npen up\n\ndefine None\nadd (x1) to [linex v]\nadd (y1) to [liney v]\nadd (x2) to [linex2 v]\nadd (y2) to [liney2 v]\nadd (size) to [size v]\nadd (color) to [color v]\n\ndefine List\nadd [-50-99-50100-50100050100050100050-99-50000050000] to [characters v]\nadd [-50100050100050100050015050015035000035000050-15050-15050-99050-99-50-99-50-99-50100-50000035000] to [characters v]\nadd [050100-50100-50100-50-99-50-99050-99] to [characters v]\nadd [-50100040100040100050090050090050-90050-90040-99040-99-50-99-50-99-50100] to [characters v]\nadd [-50100050100-50000025000-50100-50-99-50-99050-99] to [characters v]\nadd [-50100-50-99-50100050100-50000025] to [characters v]\nadd [050075050100050100-50100-50100-50-99-50-99050-99050-99050-40050-40030-40] to [characters v]\nadd [-50100-50-99-50000050000050100050-99] to [characters v]\nadd [-50100050100000100000-99-50-99050-99] to [characters v]\nadd [050100050-99050-99-50-99-50-99-50-15] to [characters v]\nadd [-50100-50-99-50000050100-50-00050-99] to [characters v]\nadd [-50100-50-99-50-99050-99] to [characters v]\nadd [-50-99-50100-50100000000000000050100050100050-99] to [characters v]\nadd [-50-99-50100-50100050-99050-99050100] to [characters v]\nadd [-50100050100-50100-50-99-50-99050-99050100050-99] to [characters v]\nadd [-50-99-50100-50100050100050100050000050000-50000] to [characters v]\nadd [-50100050100050-90-50-90-50100-50-90050100050-90015-80030-99] to [characters v]\nadd [-50-99-50100-50100050100050100050000-50000050000000000050-99] to [characters v]\nadd [050100-50100-50100-50000-50000050000050000050-99050-99-50-99] to [characters v]\nadd [-50100050100000100000-99] to [characters v]\nadd [-50100-50-99-50-99050-99050100050-99] to [characters v]\nadd [-50100000-99000-99050100] to [characters v]\nadd [-50100-50-99-50-99050-99050100050-99000000000-99] to [characters v]\nadd [-50100050-99050100-50-99] to [characters v]\nadd [-50100000000050100000000000000000-99] to [characters v]\nadd [-50100050100050100-50-99-50-99050-99] to [characters v]\nadd [-50100050100-50100-50-99-50-99050-99050100050-99] to [characters v]\nadd [000100-50075000100000-99-50-99050-99] to [characters v]\nadd [-50075-25100-25100025100025100050075050075050025050025-50-99-50-99050-99] to [characters v]\nadd [-50100050100050100050-99-25000050000-50-99050-99] to [characters v]\nadd [-50100-50000-50000050000050100050-99] to [characters v]\nadd [050100-50100-50100-50000-50000025000025000050-25050-25050-99050-99-50-99] to [characters v]\nadd [050100-50100-50100-50-99-50-99050-99050-99050000050000-50000] to [characters v]\nadd [-50100050100050100-25-99] to [characters v]\nadd [-50100050100-50100-50-99-50-99050-99050100050-99-50000050000] to [characters v]\nadd [-50-99050-99050-99050100050100-50100-50100-50000-50000050000] to [characters v]\nadd [] to [characters v]\nadd [-45-95-45-95] to [characters v]\nadd [-40000040000] to [characters v]\nadd [-50-99050-99] to [characters v]\nadd [000100000-70000-98000-99] to [characters v]\n\ndefine None\nif <(clear) = [1]> then\n    erase all\nend\nset [wutletterofitemoflist v] to [1]\nset [i v] to [1]\nset [kewlx v] to (x)\nif <(cen?) = [1]> then\n    change [kewlx v] by ((0) - ((((length of (input)) - (1)) * ((size) / (0.65))) / (2)))\nend\nrepeat (length of (input))\n    Find letter (letter (i) of (input))\n    repeat ((length of (item (j) of [characters v])) / (12))\n        set [x1 v] to (((join (letter ((wutletterofitemoflist) + (0)) of (item (j) of [characters v])) (join (letter ((wutletterofitemoflist) + (1)) of (item (j) of [characters v])) (letter ((wutletterofitemoflist) + (2)) of (item (j) of [characters v])))) * ((size) / (100))) + ((kewlx) + (((i) * ((size) / (0.65))) - ((size) / (0.65)))))\n        change [wutletterofitemoflist v] by (3)\n        set [y1 v] to ((((join (letter ((wutletterofitemoflist) + (0)) of (item (j) of [characters v])) (join (letter ((wutletterofitemoflist) + (1)) of (item (j) of [characters v])) (letter ((wutletterofitemoflist) + (2)) of (item (j) of [characters v])))) * ((size) / (100))) * (heightr)) + (y))\n        change [wutletterofitemoflist v] by (3)\n        set [x2 v] to (((join (letter ((wutletterofitemoflist) + (0)) of (item (j) of [characters v])) (join (letter ((wutletterofitemoflist) + (1)) of (item (j) of [characters v])) (letter ((wutletterofitemoflist) + (2)) of (item (j) of [characters v])))) * ((size) / (100))) + ((kewlx) + (((i) * ((size) / (0.65))) - ((size) / (0.65)))))\n        change [wutletterofitemoflist v] by (3)\n        set [y2 v] to ((((join (letter ((wutletterofitemoflist) + (0)) of (item (j) of [characters v])) (join (letter ((wutletterofitemoflist) + (1)) of (item (j) of [characters v])) (letter ((wutletterofitemoflist) + (2)) of (item (j) of [characters v])))) * ((size) / (100))) * (heightr)) + (y))\n        change [wutletterofitemoflist v] by (3)\n        if <(heightr) > [0]> then\n            Draw Line (x1) (y1) (x2) (y2) (pen size) (color)\n        else\n            Draw Line (x1) (y1) (x2) (y2) (pen size) (color)\n        end\n    end\n    change [i v] by (1)\n    set [wutletterofitemoflist v] to [1]\nend\nif <shadow> then\n    (input) ((x) + ((0) - ((((length of (input)) - (1)) * ((size) / (0.65))) / (2)))) ((y) - ((1.9) * (size))) (size) [grey] ((pen size) + (-1)) (0) cent. (1) hr? (-0.6) shadow \nend\n\ndefine None\nset [j v] to [1]\nrepeat until <(letter (j) of (characters)) = (_)>\n    change [j v] by (1)\nend\n\ndefine None\nset pen size to (2)\nset [glsscounter v] to [0]\nset pen shade to (50)\npen up\nrepeat (102)\n    go to x: ((([sin v] of (glssCounter) ) * (xr)) + (x)) y: ((([cos v] of (glssCounter) ) * (yr)) + (y))\n    pen down\n    go to x: (x) y: (y)\n    change [glsscounter v] by (3.6)\nend\npen up\nset [glsscounter v] to [-90]\nchange pen shade by (50)\nrepeat (51)\n    go to x: ((([sin v] of (glssCounter) ) * (xr)) + (x)) y: ((([cos v] of (glssCounter) ) * (yr)) + (y))\n    pen down\n    go to x: ((([sin v] of (glssCounter) ) * (xr)) + (x)) y: ((([cos v] of (glssCounter) ) * (() - (gh))) + (y))\n    change [glsscounter v] by (3.6)\nend\npen up\n\ndefine Draw Lines\nset [linecounter v] to [1]\nrepeat (length of [linex v])\n    if <not <<<((item (lineCounter) of [linex v]) + (ScrollX)) > [250]> or <((item (lineCounter) of [liney2 v]) + (ScrollY)) > [190]>> or <<((item (lineCounter) of [linex2 v]) + (ScrollX)) < [-250]> or <((item (lineCounter) of [liney v]) + (ScrollY)) < [-190]>>>> then\n        Collision ( (lineCounter) )\n    end\n    change [linecounter v] by (1)\nend\nset [linecounter v] to [1]\nrepeat (length of [linex v])\n    if <not <<<((item (lineCounter) of [linex v]) + (ScrollX)) > [250]> or <((item (lineCounter) of [liney2 v]) + (ScrollY)) > [190]>> or <<((item (lineCounter) of [linex2 v]) + (ScrollX)) < [-250]> or <((item (lineCounter) of [liney v]) + (ScrollY)) < [-190]>>>> then\n        Draw Line ((item (lineCounter) of [linex v]) + (ScrollX)) ((item (lineCounter) of [liney v]) + (ScrollY)) ((item (lineCounter) of [linex2 v]) + (ScrollX)) ((item (lineCounter) of [liney2 v]) + (ScrollY)) (item (lineCounter) of [size v]) (item (lineCounter) of [color v])\n    end\n    change [linecounter v] by (1)\nend\n\ndefine None\nif <<((X) - (ScrollX)) > ((item (\(\)) of [linex v]) - (15))> and <((X) - (ScrollX)) < ((item (\(\)) of [linex2 v]) + (15))>> then\n    if <(item (\(\)) of [linex v]) = (item (\(\)) of [linex2 v])> then\n        if <<((Y) - (ScrollY)) > ((item (\(\)) of [liney2 v]) - (15))> and <((Y) - (ScrollY)) < ((item (\(\)) of [liney v]) + (15))>> then\n            change [scrollx v] by ((((() - (ScrollX)) - (item (\(\)) of [linex v])) / ([abs v] of ((() - (ScrollX)) - (item (\(\)) of [linex v])) )) * (-15))\n            set [scrollx v] to (ScrollX)\n            set [xv v] to ((Xv) * (-0.85))\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [-8]\n                set [xv v] to ((Xv) * (2))\n            end\n            if <(item (\(\)) of [color v]) = [yellow]> then\n                broadcast (completed v)\n                stop [this script v]\n            end\n        end\n    else\n        set [_y_assi v] to ((item (\(\)) of [liney v]) + ((((item (\(\)) of [liney2 v]) - (item (\(\)) of [liney v])) / ((item (\(\)) of [linex2 v]) - (item (\(\)) of [linex v]))) * ((() - (ScrollX)) - (item (\(\)) of [linex v]))))\n        if <<((Y) - (ScrollY)) > ((_y_assi) - (15))> and <((Y) - (ScrollY)) < ((_y_assi) + (15))>> then\n            set [scrolly v] to ((Y) - ((_y_assi) + (15)))\n            set [y v] to ((Y) * (0.9))\n            set [yv v] to [0]\n            if <<key (up arrow v) pressed?> or <(item (\(\)) of [color v]) = [pink]>> then\n                set [yv v] to [-8]\n                if <(item (\(\)) of [color v]) = [pink]> then\n                    change [yv v] by (-2)\n                end\n            end\n        else\n            change [y v] by ((Yv) * (-0.5))\n        end\n    end\nend\n\nif  then\nend\n\nchange [scrollx v] by ((Xv) * (-1))\n\ndefine Startup/Swag\ndelete (all) of [linex v]\ndelete (all) of [liney v]\ndelete (all) of [linex2 v]\ndelete (all) of [liney2 v]\ndelete (all) of [size v]\ndelete (all) of [color v]\ndelete (all) of [characters v]\ndelete (all) of [text v]\ndelete (all) of [textx v]\ndelete (all) of [texty v]\ndelete (all) of [textsize v]\ndelete (all) of [textcolor v]\ndelete (all) of [textpensize v]\nList\nset [characters v] to [ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .-_!]\nset [scrollx v] to [0]\nset [scrolly v] to [-50]\nset [xv v] to [0]\nset [yv v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nerase all\nhide\nset [ghost v] effect to (0)\npen up\nAdd Text at (50) (100) with size (10) pen size (3) TEXT: [use arrow keys to move] color [red]\nAdd Text at (450) (-175) with size (10) pen size (3) TEXT: [you can wall jump] color [green]\nAdd Text at (1150) (60) with size (14) pen size (3.5) TEXT: [jump!] color [red]\nAdd Text at (1700) (0) with size (10) pen size (3) TEXT: [hop] color [green]\nAdd Text at (1900) (50) with size (10) pen size (3) TEXT: [hop] color [red]\nAdd Text at (2150) (100) with size (10) pen size (3) TEXT: [and hop!] color [red]\nAdd Text at (3400) (200) with size (10) pen size (3) TEXT: [get a running start!] color [green]\nAdd Text at (4400) (200) with size (10) pen size (3) TEXT: [drop] color [red]\nLine (-100) (-25) (50) (-25) (15) [blue]\nLine (50) (25) (200) (0) (15) [blue]\nLine (50) (20) (50) (-25) (15) [blue]\nLine (-100) (-25) (-100) (-50) (15) [blue]\nLine (200) (0) (200) (-250) (15) [blue]\nLine (200) (-250) (350) (-300) (15) [blue]\nLine (350) (-300) (650) (-300) (15) [blue]\nLine (650) (0) (850) (25) (15) [blue]\nLine (650) (0) (650) (-300) (15) [blue]\nLine (850) (25) (1050) (25) (15) [blue]\nLine (1050) (25) (1050) (-200) (15) [blue]\nLine (1250) (25) (1500) (25) (15) [blue]\nLine (1250) (25) (1250) (-200) (15) [blue]\nLine (1500) (25) (1500) (-300) (15) [blue]\nLine (1650) (75) (1750) (75) (15) [blue]\nLine (1650) (75) (1650) (50) (15) [blue]\nLine (1650) (50) (1750) (50) (15) [blue]\nLine (1750) (75) (1750) (50) (15) [blue]\nLine (1850) (125) (1950) (125) (15) [blue]\nLine (1850) (125) (1850) (100) (15) [blue]\nLine (1850) (100) (1950) (100) (15) [blue]\nLine (1950) (125) (1950) (100) (15) [blue]\nLine (2100) (175) (2200) (175) (15) [blue]\nLine (2100) (175) (2100) (150) (15) [blue]\nLine (2100) (150) (2200) (150) (15) [blue]\nLine (2200) (175) (2200) (150) (15) [blue]\nLine (2350) (225) (2350) (200) (15) [blue]\nLine (2350) (225) (2500) (225) (15) [blue]\nLine (2500) (450) (2750) (425) (15) [blue]\nLine (2500) (450) (2500) (225) (15) [blue]\nLine (2750) (425) (2750) (0) (15) [blue]\nLine (2750) (0) (2950) (-25) (15) [blue]\nLine (2950) (25) (3000) (25) (15) [blue]\nLine (2950) (25) (2950) (-25) (15) [blue]\nLine (3000) (25) (3000) (-25) (15) [blue]\nLine (3000) (-25) (3100) (-25) (15) [blue]\nLine (3100) (75) (3150) (75) (15) [blue]\nLine (3100) (75) (3100) (-25) (15) [blue]\nLine (3150) (75) (3150) (-25) (15) [blue]\nLine (3150) (-25) (3250) (-25) (15) [blue]\nLine (3250) (150) (3600) (150) (15) [blue]\nLine (3250) (150) (3250) (-25) (15) [blue]\nLine (3600) (150) (3600) (-300) (15) [blue]\nLine (4000) (150) (4200) (150) (15) [blue]\nLine (4000) (150) (4000) (125) (15) [blue]\nLine (4200) (150) (4200) (125) (15) [blue]\nLine (4000) (125) (4200) (125) (15) [blue]\nLine (4350) (-250) (4350) (-275) (15) [blue]\nLine (4350) (-250) (5000) (-250) (15) [blue]\nLine (5000) (-250) (5000) (-275) (15) [blue]\nLine (4900) (-235) (5000) (-235) (15) [pink]\nLine (4950) (-100) (4950) (-100) (15) [yellow]\n\ndefine Player + Movement\nchange [yv v] by (0.4)\nif <key (right arrow v) pressed?> then\n    change [xv v] by (-1)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (1)\nend\nset [xv v] to ((Xv) * (0.9))\nchange [x v] by ((Xv) * (-0.5))\nset [x v] to ((X) * (0.8))\nset [y v] to ((Y) * (0.8))\nchange [scrollx v] by ((Xv) + ((X) * (-0.06)))\nchange [scrolly v] by ((Yv) + ((Y) * (-0.2)))\nset pen color to (#ee7d16)\nDraw Gloss at (X) (Y) with xr of (7.5) and yr of (7.5) and the gloss height (2)\nDraw Line ((X) - (2.5)) ((Y) + (2.5)) ((X) - (2.5)) (Y) (2) [black]\nDraw Line ((X) + (2.5)) ((Y) + (2.5)) ((X) + (2.5)) (Y) (2) [black]\nif <(ScrollY) > [350]> then\n    set [scrollx v] to [0]\n    set [scrolly v] to [-50]\n    set [xv v] to [0]\nend\nif <(Yv) > [12]> then\n    set [yv v] to [12]\nend\n\nset [scrollx v] to [-2900]\n\ndefine Draw All Text\nset [glsscounter v] to [1]\nrepeat (length of [textsize v])\n    if <<not <(((item (glssCounter) of [textx v]) + (ScrollX)) - ((0) - ((((length of (item (glssCounter) of [text v])) - (1)) * ((item (glssCounter) of [textsize v]) / (0.65))) / (2)))) < [-240]>> and <not <(((item (glssCounter) of [textx v]) + (ScrollX)) + (() - ((((length of (item (glssCounter) of [text v])) - (1)) * ((item (glssCounter) of [textsize v]) / (0.65))) / (2)))) > [250]>>> then\n        if <<not <(((item (glssCounter) of [texty v]) - (item (glssCounter) of [textsize v])) + (ScrollY)) > [190]>> and <not <(((item (glssCounter) of [texty v]) + (item (glssCounter) of [textsize v])) + (ScrollY)) < [-190]>>> then\n            (item (glssCounter) of [text v]) ((item (glssCounter) of [textx v]) + (ScrollX)) ((item (glssCounter) of [texty v]) + (ScrollY)) (item (glssCounter) of [textsize v]) (item (glssCounter) of [textcolor v]) (item (glssCounter) of [textpensize v]) (0) cent. (1) hr? (1) shadow \n        end\n    end\n    change [glsscounter v] by (1)\nend\n\nwhen flag clicked\nStartup/Swag\nforever\n    go to x: (0) y: (0)\n    erase all\n    Draw Lines\n    Draw All Text\n    Player + Movement\nend\n\nwhen I receive [completed v]\nstop [other scripts in sprite v]\n[you won!] (1) (0) (35) [red] (14) (1) cent. (1) hr? (1) shadow \n[you won!] (1) (0) (35) [green] (9) (0) cent. (1) hr? (1) shadow \n[congrats!] (1) (-125) (15) [red] (9) (0) cent. (1) hr? (1) shadow \n[congrats!] (1) (-125) (15) [black] (5) (0) cent. (1) hr? (1) shadow \n[platformer] (1) (125) (20) [green] (12) (0) cent. (1) hr? (1) shadow \n[platformer] (1) (125) (20) [red] (8) (0) cent. (1) hr? (1) shadow \nDraw Line (-225) (75) (225) (75) (5) [red]\n\nwhen [r v] key pressed\nStartup/Swag\n\ndefine None\nadd (x) to [textx v]\nadd (y) to [texty v]\nadd (text) to [text v]\nadd (size) to [textsize v]\nadd (color) to [textcolor v]\nadd (ps) to [textpensize v]\n\nset [color v] effect to (0)\n\n
Please suggest anything in the comments Over 200+ Blocks! was #4(now #9) on trending all and #6(now #5) trending on games!\nNo Ads\nS to Skip R to Reset