Text a platformer || #game #games #all-2
@Stage\n\nwhen flag clicked\nswitch backdrop to (arrière plan1 v)\nwait (11.47) seconds\nnext backdrop\n\n@Sprite3\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nswitch costume to (costume2 v)\ngo to x: (-193) y: (161)\nset [ghost v] effect to (0)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [x v] by (1.5)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1.5)\n    end\n    set [x v] to ((X) * (.9))\n    change x by (X)\n    if <touching (sprite1 v)?> then\n        change y by (1)\n        if <touching (sprite1 v)?> then\n            change y by (1)\n            if <touching (sprite1 v)?> then\n                change y by (1)\n                if <touching (sprite1 v)?> then\n                    change y by (1)\n                    if <touching (sprite1 v)?> then\n                        if <touching (sprite1 v)?> then\n                            change x by ((X) * (-1))\n                            change x by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (sprite1 v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (sprite1 v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [y v] by (12)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-193) y: (161)\n        broadcast (New costume v)\n    end\n    if <touching (sprite2 v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-193) y: (161)\n    end\nend\n\nwhen flag clicked\nforever\n    wait (11.47) seconds\n    play sound [Alan Walker - Fade \[NCS Release\].mp3 v] until done\n    set volume to (100) %\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nrepeat (10)\n    change size by (-3)\n    change [ghost v] effect by (15)\nend\ndelete this clone\n\nwhen I receive [outro  v]\nchange volume by (-100)\nhide\n\n@ \n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\ndefine Frame Tween Size: (s) speed: (spd)\nchange size by (((round (s)) - (round (size))) / (spd))\n\ndefine Bounce, Size: (s) Speed: (spd)\nset size to (1000) %\nrepeat (30)\n    set [bounce v] to (((Bounce) * (0.7)) + (((s) - (size)) / (spd)))\n    change size by (Bounce)\nend\n\ndefine Smooth Size Change, Size: (s) Speed: (spd)\nif <(s) > (size)> then\n    repeat until <(size) > ((s) - (.1))>\n        Frame Tween Size: (s) speed: (spd)\n    end\nend\nif <(size) > (s)> then\n    Frame Tween Size: (s) speed: (spd)\nend\nset size to (s) %\n\nwhen flag clicked\nset [\[intro\] playing v] to [false]\nwait (.2) seconds\nrepeat until <(\[INTRO\] Playing) = [false]>\nerase all\npen up\nstop all sounds\nclear sound effects\nset volume to (100) %\nstart sound [Robin Hustin x TobiMorrow - Light It Up \(feat v]\nset size to (100) %\ngo to [front v] layer\nshow\nswitch costume to (blank v)\nswitch backdrop to (  v)\nclear graphic effects\ngo to x: (0) y: (0)\npoint in direction (90)\nset [i v] to [0]\nset [// v] to [-180]\nset [ypos v] to [-146]\nset [counter v] to [0]\nset [bounce v] to [0]\nset [bar id v] to [0]\nset [slide id v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (1) seconds\nchange [clone id v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [0]> then\n    switch costume to (slide v)\n    set size to (5) %\n    go to x: (//) y: (0)\n    set [ghost v] effect to (100)\n    repeat until <(size) > [50]>\n        Frame Tween Size: [100] speed: [4]\n        change [ghost v] effect by (-7)\n    end\n    if <(Slide ID) < [3]> then\n        change [slide id v] by (1)\n        change [// v] by (120)\n        create clone of (_myself_ v)\n    end\n    repeat until <(size) > [99]>\n        Frame Tween Size: [100] speed: [4]\n        change [ghost v] effect by (-7)\n    end\n    repeat until <(size) < [16]>\n        Frame Tween Size: [15] speed: [4]\n        change [ghost v] effect by (7)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    switch costume to (bar v)\n    set [ghost v] effect to (100)\n    set size to (0) %\n    go to x: (0) y: (YPos)\n    repeat (3)\n        change [ghost v] effect by (-5)\n        Frame Tween Size: [102] speed: [5]\n    end\n    if <(Bar ID) < [5]> then\n        change [bar id v] by (1)\n        change [ypos v] by (60)\n        create clone of (_myself_ v)\n    end\n    repeat until <(size) > [101]>\n        change [ghost v] effect by (-5)\n        Frame Tween Size: [102] speed: [5]\n    end\n    repeat until <(size) < [20]>\n        change [ghost v] effect by (5)\n        Frame Tween Size: [19] speed: [5]\n    end\n    stamp\n    delete this clone\nend\n\nwait (.2) seconds\n\nwhen flag clicked\nwait (.2) seconds\nrepeat until <(\[INTRO\] Playing) = [false]>\nwait (3.03) seconds\nchange [clone id v] by (1)\ncreate clone of (_myself_ v)\nwait (.1) seconds\nchange [clone id v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [2]> then\n    set size to (40) %\n    switch costume to (logo v)\n    go to [front v] layer\n    Bounce, Size: [100] Speed: [5]\n    set [counter v] to [0]\n    reset timer\n    set [clone id v] to [FlashBang]\n    create clone of (_myself_ v)\n    repeat until <(timer) > [2]>\n        change [counter v] by (3)\n        point in direction ((([tan v] of (Counter) ) / (.1)) + (90))\n    end\n    set [clone id v] to [4]\n    create clone of (_myself_ v)\n    Smooth Glide x: [-50] y: [-] speed: [5]\n    stamp\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [3]> then\n    switch costume to (screen v)\n    go to x: (0) y: (500)\n    Smooth Glide x: [-] y: [-] speed: [5]\n    stamp\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [FlashBang]> then\n    switch costume to (flashbang v)\n    set size to (50) %\n    Smooth Size Change, Size: [130] Speed: [5]\n    repeat until <(size) > [404]>\n        switch costume to (blank v)\n        Frame Tween Size: [405] speed: [5]\n        switch costume to (flashbang v)\n    end\n    stamp\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [4]> then\n    switch costume to (username v)\n    go to [back v] layer\n    Smooth Glide x: [30] y: [-] speed: [5]\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\n    stamp\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [5]> then\n    go to x: (0) y: (0)\n    switch costume to (flashbang2 v)\n    set size to (50) %\n    Smooth Size Change, Size: [130] Speed: [5]\n    repeat until <(size) > [404]>\n        switch costume to (blank v)\n        Frame Tween Size: [405] speed: [5]\n        switch costume to (flashbang2 v)\n    end\n    set [bar id v] to [0]\n    set [ypos v] to [-146]\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\n    stamp\n    delete this clone\nend\n\nstamp\ndelete this clone\n\nwhen I start as a clone\nif <(Clone ID) = [6]> then\n    switch costume to (bar v)\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (100)\n    set size to (0) %\n    go to x: (0) y: (YPos)\n    repeat (3)\n        change [ghost v] effect by (-5)\n        Frame Tween Size: [102] speed: [5]\n    end\n    if <(Bar ID) < [5]> then\n        change [bar id v] by (1)\n        change [ypos v] by (60)\n        create clone of (_myself_ v)\n    end\n    repeat until <(size) > [101]>\n        change [ghost v] effect by (-5)\n        Frame Tween Size: [102] speed: [5]\n    end\n    erase all\n    clear graphic effects\n    repeat until <(size) < [20]>\n        change [ghost v] effect by (5)\n        Frame Tween Size: [19] speed: [5]\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait (.2) seconds\nrepeat until <(\[INTRO\] Playing) = [false]>\nwait (11.47) seconds\nbroadcast (Intro done v)\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nswitch costume to (costume1 v)\ngo to x: (36) y: (28)\n\nwhen I receive [new costume v]\nnext costume\nif <(costume [number v]) = [9]> then\n    broadcast (Outro  v)\nend\n\nwhen I receive [outro  v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nswitch costume to (costume1 v)\ngo to x: (36) y: (28)\n\nwhen I receive [new costume v]\nnext costume\n\nwhen I receive [outro  v]\nhide\n\n@Free Outro #2\n\nwhen I receive [outro  v]\nset [username v] to (username)\nSetup Lists\npoint in direction (90)\nset [sizelimit v] to [200]\nset [clone id v] to [Letter 1]\nType (Username) [0] [140] [0] [0] [-100] [0]\nset [clone id v] to [Letter]\nType (Username) [0] [140] [0] [0] [100] [0]\nstart sound [Jim Yosef - Link \[NCS Release\] v]\nreset timer\nclear graphic effects\nset size to (100) %\nset [clone id v] to [1-1]\ncreate clone of (_myself_ v)\nset [clone id v] to [Logo]\ncreate clone of (_myself_ v)\nwait until <(timer) > [1.5]>\nClone Particles\nset [clone id v] to [Back]\ncreate clone of (_myself_ v)\nset [clone id v] to [Ghost]\ncreate clone of (_myself_ v)\nforever\n    set [clone id v] to (pick random (1001) to (1004))\n    create clone of (_myself_ v)\n    wait (0.01) seconds\nend\n\nwhen I receive [intros v]\nstop [other scripts in sprite v]\nstop all sounds\nhide\ndelete this clone\n\ndefine Clone Particles\nset [clone id v] to [Particle]\nrepeat (75)\n    create clone of (_myself_ v)\n    turn right (4.8) degrees\nend\npoint in direction (90)\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed) (ghost)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\n    change [ghost v] effect by (ghost)\nend\ngo to x: (x) y: (y)\n\ndefine Type: System (text) (x) (y) (size) (color) (brightness) (speed)\nswitch costume to (master v)\nhide\ngo to x: (x) y: (y)\nset size to (size) %\nset [# v] to [1]\nset [color v] effect to (color)\nset [brightness v] effect to (brightness)\nset [length v] to (length of (text))\nrepeat (length of (text))\n    if <(letter (#) of (text)) > [ ]> then\n        switch costume to (letter (#) of (text))\n        create clone of (_myself_ v)\n        change x by ((size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    else\n        switch costume to ( v)\n        create clone of (_myself_ v)\n        change x by ((size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    end\n    wait (speed) seconds\nend\n\ndefine Setup Lists\ndelete all of [character widths v]\nadd [thing] to [character widths v]\nadd [29] to [character widths v]\nadd [24] to [character widths v]\nadd [28] to [character widths v]\nadd [27] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [28] to [character widths v]\nadd [28] to [character widths v]\nadd [7] to [character widths v]\nadd [21] to [character widths v]\nadd [22] to [character widths v]\nadd [22] to [character widths v]\nadd [34] to [character widths v]\nadd [27] to [character widths v]\nadd [34] to [character widths v]\nadd [22] to [character widths v]\nadd [34] to [character widths v]\nadd [21] to [character widths v]\nadd [23] to [character widths v]\nadd [27] to [character widths v]\nadd [27] to [character widths v]\nadd [29] to [character widths v]\nadd [38] to [character widths v]\nadd [26] to [character widths v]\nadd [27] to [character widths v]\nadd [27] to [character widths v]\nadd [11] to [character widths v]\nadd [20] to [character widths v]\nadd [21] to [character widths v]\nadd [25] to [character widths v]\nadd [21] to [character widths v]\nadd [20] to [character widths v]\nadd [21] to [character widths v]\nadd [20] to [character widths v]\nadd [20] to [character widths v]\nadd [20] to [character widths v]\nadd [14] to [character widths v]\nadd [25] to [character widths v]\nadd [15] to [character widths v]\nadd [10] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [20] to [character widths v]\nadd [24] to [character widths v]\nadd [22] to [character widths v]\nadd [16] to [character widths v]\nadd [24] to [character widths v]\nadd [22] to [character widths v]\nadd [10] to [character widths v]\nadd [14] to [character widths v]\nadd [18] to [character widths v]\nadd [9] to [character widths v]\nadd [33] to [character widths v]\nadd [22] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [15] to [character widths v]\nadd [19] to [character widths v]\nadd [16] to [character widths v]\nadd [22] to [character widths v]\nadd [22] to [character widths v]\nadd [30] to [character widths v]\nadd [20] to [character widths v]\nadd [23] to [character widths v]\nadd [20] to [character widths v]\n\ndefine Change Size By: (size)\nchange size by (size)\nchange x by ((size) / (7))\n\ndefine Find Size (text) (size)\nset [size v] to (size)\nset [width v] to [1]\nset [# v] to [1]\nrepeat (length of (text))\n    if <(letter (#) of (text)) > [ ]> then\n        switch costume to (letter (#) of (text))\n        change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    else\n        switch costume to ( v)\n        change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    end\nend\nif <(Width) > [400]> then\n    change [size v] by (-1)\nend\nif <(Width) < [390]> then\n    change [size v] by (1)\nend\nrepeat until <<<(Width) < [400]> and <(Width) > [389]>> or <(Size) > (SizeLimit)>>\n    set [width v] to [0]\n    set [# v] to [1]\n    repeat (length of (text))\n        if <(letter (#) of (text)) > [ ]> then\n            switch costume to (letter (#) of (text))\n            change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n            change [# v] by (1)\n        else\n            switch costume to ( v)\n            change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n            change [# v] by (1)\n        end\n    end\n    if <(Width) > [400]> then\n        change [size v] by (-1)\n    end\n    if <(Width) < [390]> then\n        change [size v] by (1)\n    end\n    if <(Size) > ((SizeLimit) + (1))> then\n        set [size v] to ((SizeLimit) - (10))\n    end\nend\nset [free outro #2: x v] to ((0) - ((Width) / (2)))\n\ndefine Type (text) (x) (y) (size) (color) (brightness) (speed)\nFind Size (text) (size)\nType: System (text) (Free Outro #2: X) (y) (Size) (color) (brightness) (speed)\n\nwhen I start as a clone\nif <(Clone ID) = [1-1]> then\n    show\n    switch costume to (back 1 v)\n    set size to (100) %\n    go to x: (0) y: (300)\n    Smooth Glide x: [0] y: [0] speed: [5] [0]\n    wait until <(timer) > [1.5]>\n    delete this clone\nend\nif <(Clone ID) = [1-2]> then\n    show\n    switch costume to (for watching v)\n    set size to (100) %\n    go to x: (0) y: (-300)\n    Smooth Glide x: [0] y: [0] speed: [5] [0]\n    wait until <(timer) > [1.5]>\n    Smooth Glide x: [0] y: [-160] speed: [5] [5]\n    delete this clone\nend\nif <(Clone ID) = [Letter]> then\n    wait until <(timer) > [0]>\n    wait ((#) / (Length)) seconds\n    show\n    go to [front v] layer\n    go to x: (x position) y: (-300)\n    set [var 1 v] to (x position)\n    set size to (Size) %\n    Smooth Glide x: (x position) y: [-100] speed: [3] []\n    wait until <(timer) > [1.5]>\n    forever\n        set x to ((([tan v] of (((timer) - (1.5)) * (50)) ) * (100)) + (Var 1))\n        if <not <((([tan v] of (((timer) - (1.5)) * (50)) ) * (100)) + (Var 1)) = (x position)>> then\n            hide\n        else\n            show\n        end\n    end\nend\nif <(Clone ID) = [Logo]> then\n    forever\n        point in direction ((([tan v] of (((timer) - (2)) * (150)) ) * (6)) + (90))\n        set size to ((([cos v] of (((timer) - (2)) * (400)) ) * (5)) + (110)) %\n    end\nend\nif <(Clone ID) = [Particle]> then\n    set size to (100) %\n    switch costume to (particle v)\n    go to x: (0) y: (0)\n    set [brightness v] effect to (100)\n    go to [front v] layer\n    go [backward v] (2) layers\n    set [var 1 v] to (pick random (10) to (15))\n    set [var 2 v] to (pick random (2) to (7))\n    turn right (pick random (-10) to (10)) degrees\n    show\n    repeat until <(y position) < [-100]>\n        move (Var 1) steps\n        change y by (Var 2)\n        change [var 2 v] by (-0.4)\n        set [var 1 v] to ((Var 1) * (0.95))\n    end\n    repeat (10)\n        move (Var 1) steps\n        change y by (Var 2)\n        change [var 2 v] by (-0.4)\n        set [var 1 v] to ((Var 1) * (0.95))\n        change [ghost v] effect by (10)\n    end\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Back]> then\n    show\n    switch costume to (back 2 v)\n    set size to (100) %\n    go to x: (0) y: (0)\n    go to [back v] layer\n    forever\n        repeat (12)\n            change x by (-4)\n            change y by (4)\n        end\n        go to x: (0) y: (0)\n    end\nend\nif <(Clone ID) = [Ghost]> then\n    show\n    switch costume to (ghost v)\n    set size to (100) %\n    go to x: (0) y: (0)\n    go to [back v] layer\n    set [ghost v] effect to (25)\n    go [forward v] (1) layers\nend\nif <(Clone ID) = [Logo]> then\n    wait until <(timer) > [1.5]>\n    show\n    switch costume to (logo v)\n    set size to (0) %\n    go to x: (0) y: (50)\n    go to [front v] layer\n    Bounce with (65) , (10) and (100)\nend\nif <(Clone ID) = [Letter 1]> then\n    wait until <(timer) > [00]>\n    wait ((#) / (Length)) seconds\n    go to [front v] layer\n    show\n    go to x: ((x position) + ((Size) / (30))) y: (-300)\n    set [var 1 v] to (x position)\n    set size to (Size) %\n    Smooth Glide x: (x position) y: ((-100) - ((Size) / (30))) speed: [3] []\n    wait until <(timer) > [1.5]>\n    forever\n        set x to ((([tan v] of (((timer) - (1.5)) * (50)) ) * (100)) + (Var 1))\n        if <not <((([tan v] of (((timer) - (1.5)) * (50)) ) * (100)) + (Var 1)) = (x position)>> then\n            hide\n        else\n            show\n        end\n    end\nend\nif < (Clone ID) contains [100]?> then\n    if <(Clone ID) = [1001]> then\n        switch costume to (item 1 v)\n    end\n    if <(Clone ID) = [1002]> then\n        switch costume to (item 2 v)\n    end\n    if <(Clone ID) = [1003]> then\n        switch costume to (item 3 v)\n    end\n    if <(Clone ID) = [1004]> then\n        switch costume to (item 4 v)\n    end\n    show\n    set size to (25) %\n    go to [back v] layer\n    go [forward v] (40) layers\n    go to x: (-300) y: (pick random (-175) to (175))\n    set [var 1 v] to [0]\n    repeat (10)\n        change x by (Var 1)\n        change [var 1 v] by (1)\n    end\n    repeat (32)\n        change x by (Var 1)\n    end\n    repeat (10)\n        change x by (Var 1)\n        change [var 1 v] by (-0.5)\n    end\n    repeat (10)\n        change x by (Var 1)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine Bounce with (bounciness) , (speed) and (finishing size)\nset [var 1 v] to [0]\nrepeat until <<(finishing size) = (size)> and <(Var 1) = (size)>>\n    set [var 2 v] to (((Var 2) * ((bounciness) / (100))) + (((finishing size) - (size)) * ((speed) / (20))))\n    set [var 1 v] to (size)\n    change size by (Var 2)\nend\nset size to (finishing size) %\n\n@Sprite4\n\nwhen flag clicked\nshow\nforever\n    set [ghost v] effect to (100)\nend\n\n
Hello guys ! Today i share a new project : Text a platformer !\nMove with arrow kews or mobile controls and avoid spikes.\nGood luck !\n@CMlukian\n\nask for it to be feature   Plzzzz\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nComment « CMlukian is the best scratcher for make platformers »