Electricity - Platformer || #games #all                     

Instructions: 日本語↓マジで読んでください。報告乱用ダルイ\n\nhello. I'm nearing retirement, so I made a 2D & 3D platformer! !\nFirst of all, please choose 2D or 3D to play.\n\nMethod of operation\nFor 2d\nYou can do it with the same operations as a normal plafo.\n\nFor 3d\nYou can move the viewpoint with the arrow keys and move with the wasd.\nYou can jump by pressing the space key.\n3D has several stages.\nnote! ! I borrow some 3D from Yoshi_studios32.\n\nこんにちわ。引退も迫ってきたんで2d&3dプラットフォーマー作って見ました！！\nまず始めに2dか3dかを選んでプレイしてください。\n\n操作方法\n2dの場合\n普通のプラフォと同じ操作でできます。\n\n3dの場合\n矢印きーで視点を動かしwasdで動けます。\nジャンプはスペースキーでジャンプできます。\n3dは、ステージがいくつかあります。\n注！！3dは、ScripthDev様のを結構借りております。ですが、ステージをいくつか変えており今新しいステージを作ってます

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait (11.47) seconds\nswitch backdrop to (deaikso-faa9bbcf-25ca-4508-ab45-87a0d1c4083e v)\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nforever\n    play sound [04 Emerald Hill Zone v] until done\nend\n\nwhen stage clicked\nbroadcast (Delete shop v)\n\n@chaos emerald\n\nwhen flag clicked\nhide\nwait (11.47) seconds\n\nwhen flag clicked\nforever\n    repeat (10)\n        change y by (1)\n        wait (0.1) seconds\n    end\n    repeat (10)\n        change y by (-1)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [show emerald v]\nshow\n\nwhen I receive [sound emerald v]\nstart sound [chaos-emerald v]\nhide\n\nwhen flag clicked\nswitch costume to (costume17 v)\n\nwhen I receive [new costume v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nswitch costume to (costume17 v)\nforever\n    if <([costume name v] of [platform v]) = [costume3]> then\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n    end\n    if <([costume name v] of [platform v]) = [costume6]> then\n        switch costume to (costume2 v)\n        go to x: (150) y: (-25)\n    end\n    if <([costume name v] of [platform v]) = [costume9]> then\n        switch costume to (costume3 v)\n        go to x: (200) y: (-25)\n    end\n    if <([costume name v] of [platform v]) = [costume12]> then\n        switch costume to (costume4 v)\n        go to x: (200) y: (-25)\n    end\n    if <([costume name v] of [platform v]) = [costume15]> then\n        switch costume to (costume5 v)\n        go to x: (0) y: (35)\n    end\n    if <([costume name v] of [platform v]) = [costume18]> then\n        switch costume to (costume6 v)\n        go to x: (0) y: (0)\n    end\nend\n\n@Player\n\nwhen flag clicked\nhide\nhide variable [☁ world record v]\nhide variable [speedrun \( world record\) v]\nhide variable [coins v]\nhide variable [speedrun v]\nwait (11.47) seconds\nshow\nset [☁ world record v] to (☁ World record)\nshow variable [speedrun v]\nshow variable [speedrun \( world record\) v]\nshow variable [coins v]\nset [skip v] to [0]\ndelete all of [straight speed left v]\ndelete all of [straight speed right v]\ndelete all of [straight jump v]\nadd [1.5] to [straight speed right v]\nadd [-1.5] to [straight speed left v]\nadd [15] to [straight jump v]\nshow\nswitch costume to (costume1 v)\ngo to x: (-193) y: (161)\nset [ghost v] effect to (0)\nshow\nset [chaos emeralds v] to [0]\nset [down? v] to [0]\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 (item (1) of [straight speed right v])\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (item (1) of [straight speed left v])\n    end\n    set [x v] to ((X) * (.9))\n    change x by (X)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((X) * (-1))\n                            change y 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 [-14]\n                                else\n                                    set [x v] to [14]\n                                end\n                                set [y v] to [15]\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 (platform v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [y v] by (Straight jump)\n        end\n    end\n    change y by (1)\n    if <(x position) > [240]> 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 (spikes 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\n    if <touching (coins v)?> then\n        broadcast (sound coins v)\n    end\n    if <touching (chaos emerald v)?> then\n        broadcast (sound emerald v)\n    end\nend\n\nwhen I receive [reset v]\ngo to x: (-193) y: (161)\n\nif <key (down arrow v) pressed?> then\n    if <(costume [name v]) = [costume1]> then\n        switch costume to (costume2 v)\n        set [down? v] to [1]\n    end\n    if <(costume [name v]) = [costume3]> then\n        switch costume to (costume4 v)\n        set [down? v] to [1]\n    end\nelse\n    if <(costume [name v]) = [costume2]> then\n        switch costume to (costume1 v)\n        set [down? v] to [0]\n    end\n    if <(costume [name v]) = [costume4]> then\n        switch costume to (costume3 v)\n        set [down? v] to [0]\n    end\nend\n\nwhen I receive [buy 3 yellow skin v]\nswitch costume to (costume3 v)\n\nwhen I receive [skip v]\ngo to x: (-193) y: (161)\n\nwhen I receive [buy 10 super green skin v]\nswitch costume to (costume7 v)\nreplace item (1) of [straight jump v] with [20]\n\nwhen I receive [buy 10 super grey skin v]\nswitch costume to (costume5 v)\nreplace item (1) of [straight speed right v] with [3]\nreplace item (1) of [straight speed left v] with [-3]\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nreset timer\nforever\n    set [speedrun \( world record\) v] to (timer)\n    if <([costume # v] of [platform v]) = [19]> then\n        broadcast (Score speedrun v)\n        stop [this script v]\n    end\n    if <(Skip) = [1]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nreset timer\nforever\n    set [speedrun v] to (timer)\n    if <([costume # v] of [platform v]) = [19]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [score speedrun v]\nshow variable [☁ world record v]\nif <(Speedrun \( world record\)) < (☁ World record)> then\n    set [☁ world record v] to (Speedrun \( world record\))\nend\n\n@Platform\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nswitch costume to (costume1 v)\nset size to (100) %\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [new costume v]\nbroadcast (show coins v)\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (show emerald v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (show emerald v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [skip v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (show emerald v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [12]> then\n        broadcast (show emerald v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [15]> then\n        broadcast (show emerald v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [18]> then\n        broadcast (show emerald v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [19]> then\n        broadcast (Stop skip v)\n        stop [this script v]\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Delete shop v)\n\n@Background 2\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nswitch costume to (6 remaining v)\ngo to [front v] layer\ngo [forward v] (88888888) layers\ngo to x: (0) y: (0)\n\nwhen I receive [sound emerald v]\nnext costume\nchange [chaos emeralds v] by (1)\n\n@Love Fave Follow\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    show\n    go to x: (-104) y: (-200)\n    wait (1) seconds\n    glide (1) secs to x: (-51) y: (-125)\n    wait (0.3) seconds\n    go to [front v] layer\n    glide (0.5) secs to x: (-20) y: (-125)\n    wait (0.3) seconds\n    glide (1) secs to x: (35) y: (-125)\n    wait (2) seconds\n    hide\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    show\n    go to x: (0) y: (-123)\n    set size to (0) %\n    repeat until <(size) > [100]>\n        change size by (((50) + (size)) / (25))\n    end\n    wait (2.5) seconds\n    hide\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    hide\n    wait (2.5) seconds\n    show\n    go to x: (0) y: (-123)\n    wait (4.1) seconds\n    hide\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [4]> then\n    hide\n    wait (3.3) seconds\n    show\n    go to x: (0) y: (-123)\n    wait (3.3) seconds\n    hide\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [5]> then\n    hide\n    wait (4.6) seconds\n    show\n    go to x: (0) y: (-123)\n    wait (2) seconds\n    hide\nend\n\nwhen flag clicked\nforever\n    wait (30) seconds\n    broadcast (love fave follow v)\nend\n\nwhen I receive [love fave follow v]\nswitch costume to (love fave follow!!! v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (love fave follow!!!2 v)\ncreate clone of (_myself_ v)\nswitch costume to (love fave follow!!!3 v)\ncreate clone of (_myself_ v)\nswitch costume to (love fave follow!!!4 v)\ncreate clone of (_myself_ v)\nhide\n\n@coins\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nshow\nset [coins v] to [0]\nforever\n    wait (0.01) seconds\n    next costume\nend\n\nwhen I receive [sound coins v]\nchange [coins v] by (1)\nhide\nplay sound [26f8b9_sonic_ring_sound_effect v] until done\n\nwhen flag clicked\nforever\n    if <([costume name v] of [platform v]) = [costume1]> then\n        go to x: (0) y: (0)\n    end\n    if <([costume name v] of [platform v]) = [costume2]> then\n        go to x: (75) y: (-40)\n    end\n    if <([costume name v] of [platform v]) = [costume3]> then\n        go to x: (144) y: (59)\n    end\n    if <([costume name v] of [platform v]) = [costume4]> then\n        go to x: (150) y: (125)\n    end\n    if <([costume name v] of [platform v]) = [costume5]> then\n        go to x: (83) y: (30)\n    end\n    if <([costume name v] of [platform v]) = [costume6]> then\n        go to x: (0) y: (15)\n    end\n    if <([costume name v] of [platform v]) = [costume7]> then\n        go to x: (112) y: (50)\n    end\n    if <([costume name v] of [platform v]) = [costume8]> then\n        go to x: (-15) y: (100)\n    end\n    if <([costume name v] of [platform v]) = [costume9]> then\n        go to x: (-15) y: (100)\n    end\n    if <([costume name v] of [platform v]) = [costume10]> then\n        go to x: (65) y: (40)\n    end\n    if <([costume name v] of [platform v]) = [costume11]> then\n        go to x: (167) y: (-35)\n    end\n    if <([costume name v] of [platform v]) = [costume12]> then\n        go to x: (0) y: (130)\n    end\n    if <([costume name v] of [platform v]) = [costume13]> then\n        go to x: (120) y: (150)\n    end\n    if <([costume name v] of [platform v]) = [costume14]> then\n        go to x: (-35) y: (-30)\n    end\n    if <([costume name v] of [platform v]) = [costume15]> then\n        go to x: (185) y: (-30)\n    end\n    if <([costume name v] of [platform v]) = [costume16]> then\n        go to x: (-200) y: (-35)\n    end\n    if <([costume name v] of [platform v]) = [costume17]> then\n        go to x: (-200) y: (-35)\n    end\n    if <([costume name v] of [platform v]) = [costume18]> then\n        go to x: (0) y: (0)\n    end\nend\n\nwhen I receive [show coins v]\nshow\n\n@spikes\n\nwhen I receive [new costume v]\nnext costume\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nswitch costume to (costume1 v)\nset size to (100) %\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [skip v]\nnext costume\n\n@Reset\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\ngo to x: (-158) y: (-152)\n\nwhen this sprite clicked\nbroadcast (Reset v)\n\n@Shop\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\nshow\ngo to x: (0) y: (-152)\nswitch costume to (button v)\nset [ghost v] effect to (0)\nset size to (100) %\n\nwhen this sprite clicked\nif <(costume [name v]) = [Button]> then\n    hide\n    create clone of (_myself_ v)\n    show\n    set [ghost v] effect to (100)\n    switch costume to (shop v)\n    go to x: (0) y: (0)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    broadcast (Clone 3 v)\n    broadcast (Clone 10 v)\n    broadcast (Clone 10,2 v)\nend\nif <(costume [number v]) = [3]> then\n    if <(coins) > [2]> then\n        change [coins v] by (-3)\n        broadcast (Buy 3 yellow skin v)\n        hide\n        create clone of (_myself_ v)\n        switch costume to (bought v)\n        show\n        go to x: (-50) y: (50)\n    end\nend\nif <(costume [number v]) = [4]> then\n    if <(coins) > [9]> then\n        change [coins v] by (-10)\n        broadcast (Buy 10 super grey skin v)\n    end\nend\nif <(costume [number v]) = [5]> then\n    if <(coins) > [9]> then\n        change [coins v] by (-10)\n        broadcast (Buy 10 super green skin v)\n    end\nend\n\nwhen I receive [delete shop v]\nshow\nswitch costume to (button v)\nset size to (100) %\ngo to x: (0) y: (-152)\n\nwhen I receive [clone 3 v]\ncreate clone of (_myself_ v)\nswitch costume to (3 coins v)\nset size to (77) %\nshow\ngo [forward v] (99999) layers\ngo to x: (-15) y: (15)\nforever\n    if <([costume # v] of [player v]) = [3]> then\n        create clone of (_myself_ v)\n        switch costume to (3 coins v)\n        go to x: (-15) y: (15)\n        hide\n    end\nend\n\nwhen I receive [clone 10 v]\ncreate clone of (_myself_ v)\nswitch costume to (10 coins v)\nset size to (77) %\nshow\ngo [forward v] (99999) layers\ngo to x: (-15) y: (15)\n\nwhen I receive [clone 10,2 v]\ncreate clone of (_myself_ v)\nswitch costume to (10 coins2 v)\nset size to (77) %\nshow\ngo [forward v] (99999) layers\ngo to x: (-15) y: (-27)\n\n@Skip\n\nwhen flag clicked\nhide\nwait (11.47) seconds\nshow\ngo to x: (158) y: (-152)\n\nwhen this sprite clicked\nif <([costume # v] of [platform v]) < [19]> then\n    broadcast (Skip v)\n    change [skip v] by (1)\nelse\n    stop [this script v]\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [4]> then\n        if <(Chaos emeralds) = [1]> then\n            stop [this script v]\n        else\n            broadcast (sound emerald v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [7]> then\n        if <(Chaos emeralds) = [2]> then\n            stop [this script v]\n        else\n            broadcast (sound emerald v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [10]> then\n        if <(Chaos emeralds) = [3]> then\n            stop [this script v]\n        else\n            broadcast (sound emerald v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [13]> then\n        if <(Chaos emeralds) = [4]> then\n            stop [this script v]\n        else\n            broadcast (sound emerald v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [16]> then\n        if <(Chaos emeralds) = [5]> then\n            stop [this script v]\n        else\n            broadcast (sound emerald v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [19]> then\n        if <(Chaos emeralds) = [6]> then\n            stop [this script v]\n        else\n            broadcast (sound emerald v)\n        end\n    end\nend\n\nwhen I receive [stop skip v]\nstop [other scripts in sprite v]\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    set size to (100) %\nend\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 [num v] to [0]\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\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    switch costume to (logo v)\n    set size to (0) %\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 [ghost v] effect to (100)\n    set size to (0) %\n    go to x: (0) y: (YPos)\n    repeat (3)\n        change [brightness v] effect by (10)\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 (-10)\n        Frame Tween Size: [102] speed: [5]\n    end\n    erase all\n    if <(Num) = [0]> then\n        change [num v] by (1)\n        broadcast (Intro done v)\n    end\n    repeat until <(size) < [20]>\n        change [brightness v] effect by (-5)\n        change [ghost v] effect by (5)\n        Frame Tween Size: [19] speed: [5]\n    end\n    wait (.2) seconds\n    delete this clone\nend\n\n