Lost Tera || Scrolling Platformer || #tagInTheTitle


@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\nwait (.4) seconds\nswitch backdrop to (backdrop1 v)\n\nwhen [b v] key pressed\nset [mouse v] to (join ((ScrollX) + (mouse x)) (join [ , ] ((ScrollY) + (mouse y))))\n\nwhen I receive [game loop v]\nswitch backdrop to (backdrop2 v)\nforever\n    set [brightness v] effect to (-90)\nend\n\n@#DDSCS\n\n@toenail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen [o v] key pressed\nif <<(username) = [lambodhar]> or <(username) = [archer_2008]>> then\n    broadcast (outro v)\nend\n\n@tera\n\ndefine Controls - Left and Right\nset [speed x v] to ((speed x) * (0.7))\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    if <(speed boost bought?) = [1]> then\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <key (x v) pressed?>> then\n            change [speed x v] by (-3)\n        else\n            change [speed x v] by (-1.5)\n        end\n    else\n        change [speed x v] by (-1.5)\n    end\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    if <(speed boost bought?) = [1]> then\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <key (x v) pressed?>> then\n            change [speed x v] by (3)\n        else\n            change [speed x v] by (1.5)\n        end\n    else\n        change [speed x v] by (1.5)\n    end\nend\n\ndefine Walk (direction) (speed) max step (step)\npoint in direction (direction)\nchange x by (speed)\nchange [frame v] by (([abs v] of (speed) ) / (8))\nset [slope v] to [0]\nGet Touching <(in platforrm) = [1]>\nrepeat until <<(slope) = (step)> or <(touch) = [0]>>\n    change y by (1)\n    change [slope v] by (1)\n    Get Touching <(in platforrm) = [1]>\nend\nif <(slope) = (step)> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<(touch) = [1]> and <(in platforrm) = [1]>> then\n        set [in platforrm v] to [2]\n        Walk (direction) (speed) max step (step)\n        if <(speed x) = [0]> then\n            set [in platforrm v] to [1]\n        end\n    else\n        if <<<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <key (space v) pressed?>>> and <([abs v] of (speed) ) > [3.5]>> and <(touch) > [1]>> then\n            set [speed x v] to ((-1.2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n            set [wall jump v] to [15]\n        else\n            set [speed x v] to [0]\n        end\n    end\nend\n\ndefine Controls - Jump, Crouch\nif <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w v) pressed?>> then\n    if <<(jump key) = [0]> and <(falling?) < [3]>> then\n        if <(jump boost bought?) = [0]> then\n            set [speed y v] to [21]\n        else\n            set [speed y v] to [25]\n        end\n        set [falling? v] to [6]\n        set [jump key v] to [1]\n    end\nelse\n    set [jump key v] to [0]\nend\n\ndefine Gravity\nif <<<key (w v) pressed?> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>> or > then\n    if <(parachute open?) = [1]> then\n        if <not <touching (water v)?>> then\n            change [speed y v] by (-.03)\n            change y by (-3)\n            if <<touching (water v)?> or <(speed y) = [0]>> then\n                set [parachute open? v] to [0]\n            end\n        end\n    else\n        if <touching (water v)?> then\n            change [speed y v] by (-.3)\n            set [swimmin'? v] to [1]\n            if <<key (w v) pressed?> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>> then\n                set [speed y v] to [5]\n            end\n        else\n            change [speed y v] by (-1)\n            set [swimmin'? v] to [0]\n        end\n    end\nelse\n    change [speed y v] by (-2)\nend\nchange y by (speed y)\nchange [falling? v] by (1)\n\ndefine Check Hit Ceiling / Floor <up?>\nGet Touching \nif <(touch) = [0]> then\n    set [in platforrm v] to [1]\nelse\n    if <<up?> and <(touch) = [1]>> then\n        set [in platforrm v] to [2]\n    end\nend\nrepeat until <(touch) < (in platforrm)>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    Get Touching <not <up?>>\n    set [speed y v] to [0]\nend\n\ndefine Get Touching <check platform?>\nif <touching (ground v)?> then\n    set [touch v] to [9]\nelse\n    if <<check platform?> and <touching (drop through v)?>> then\n        set [touch v] to [1]\n    else\n        set [touch v] to [0]\n    end\nend\n\ndefine Reset Level\nset x to (0)\nset size to (40) %\nset rotation style [left-right v]\nshow\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling? v] to [10]\nset [in platforrm v] to [1]\nset [frame v] to [0]\nset [wall jump v] to [0]\n\ndefine Set Costume\nif <(swimmin'?) = [1]> then\n    switch costume to (swim v)\nelse\n    if <(parachute open?) = [1]> then\n        switch costume to (parachute v)\n    else\n        if <(falling?) < [6]> then\n            if <(frame) = [0]> then\n                switch costume to (stand_1 v)\n            else\n                switch costume to ([floor v] of ((4) + ((frame) mod (5))) )\n            end\n        else\n            if <(speed y) > [0]> then\n                switch costume to (jump_1 v)\n            else\n                switch costume to (fall_1 v)\n            end\n        end\n        if <(costume [name v]) = [Tera-d]> then\n            next costume\n        end\n    end\nend\n\nwhen I receive [game loop v]\ninit\nforever\n    if <(pause) = [1]> then\n        wait until <(pause) = [0]>\n    end\n    if <(dieing) = [0]> then\n        if <(parachute bought?) = [1]> then\n            if <key (z v) pressed?> then\n                if <[-.5] > (speed y)> then\n                    set [parachute open? v] to [1]\n                else\n                    set [parachute open? v] to [0]\n                end\n            else\n                set [parachute open? v] to [0]\n            end\n        end\n        set [brightness v] effect to (-60)\n        set size to (40) %\n        switch costume to (hitbox v)\n        set rotation style [left-right v]\n        Controls - Jump, Crouch\n        Gravity\n        Check Hit Ceiling / Floor <(speed y) > [0]>\n        if <(wall jump) > [0]> then\n            change [wall jump v] by (-1)\n        else\n            Controls - Left and Right\n        end\n        if <(speed x) < [-0.5]> then\n            Walk (-90) (speed x) max step (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n        else\n            if <(speed x) > [0.5]> then\n                Walk (90) (speed x) max step (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n            else\n                set [frame v] to [0]\n            end\n        end\n        if <<touching (danger v)?> or <touching (your mom v)?>> then\n            if <(immortality got?) = [0]> then\n                switch costume to (tera-d v)\n                broadcast (death v) and wait\n                go to checkpoint\n                point in direction (90)\n                set [speed x v] to [0]\n                set [speed y v] to [0]\n                Reset Level\n            end\n        end\n        Set Costume\n        scroll\n    end\nend\n\nwhen [r v] key pressed\ngo to checkpoint\nReset Level\n\nset [scrolly v] to [300]\nset [scrollx v] to [-1080]\n\nwhen I receive [game loop v]\nset [dieing v] to [0]\nforever\n    if <<(y position) < [-190]> and <[-554] > (ScrollY)>> then\n        broadcast (death v) and wait\n        go to checkpoint\n    end\nend\n\ndefine scroll\nif <<(ScrollX) < [-150]> and <[1050] < (ScrollY)>> then\n    detect end\n    if <[0] < (x position)> then\n        change [scrollx v] by (1)\n    end\nelse\n    change [scrollx v] by (round ((x position) / (10)))\n    change x by (() - (round ((x position) / (10))))\n    if <not <(ScrollY) < [-555]>> then\n        change [scrolly v] by (round ((y position) / (10)))\n        change y by (() - (round ((y position) / (10))))\n    end\n    if <[70] < (y position)> then\n        change [scrolly v] by (1)\n    end\nend\n\nchange [scrollx v] by (round ((x position) / (10)))\nchange x by (() - (round ((x position) / (10))))\nchange [scrolly v] by (round ((y position) / (10)))\nchange y by (() - (round ((y position) / (10))))\nif <(ScrollY) < [-555]> then\n    set [scrolly v] to [-555]\nend\n\ndefine go to checkpoint\nReset Level\nif <(checkpoint) = [1]> then\n    set [scrolly v] to [500]\n    set [scrollx v] to [-1080]\nend\nif <(checkpoint) = [2]> then\n    set [scrollx v] to [-1145]\n    set [scrolly v] to [-482]\nend\nif <(checkpoint) = [3]> then\n    set [scrollx v] to [239]\n    set [scrolly v] to [-250]\nend\nif <(checkpoint) = [4]> then\n    set [scrollx v] to [470]\n    set [scrolly v] to [730]\nend\nif <(checkpoint) = [5]> then\n    set [scrollx v] to [1050]\n    set [scrolly v] to [170]\nend\nif <(checkpoint) = [6]> then\n    set [scrollx v] to [532]\n    set [scrolly v] to [1202]\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen [m v] key pressed\nbroadcast (mute or ummutr v)\n\nwhen I receive [mute or ummutr v]\nif <(volume) = [100]> then\n    repeat (10)\n        change volume by (-10)\n    end\n    set volume to (0) %\n    set [pitch v] effect to ((-1) / (0))\nelse\n    clear sound effects\n    repeat (10)\n        change volume by (10)\n    end\n    set volume to (100) %\nend\n\nwhen [p v] key pressed\nbroadcast (mute or ummutr v)\n\nwhen I receive [death v]\nset [dieing v] to [1]\nset rotation style [all around v]\npoint in direction (90)\nrepeat (10)\n    turn left (9) degrees\n    change x by (-.5)\nend\nswitch costume to (tera-d v)\nwait (1) seconds\nset [dieing v] to [0]\nbroadcast (reset everythin' v)\nbroadcast (set up enemies v)\n\nwhen [a v] key pressed\nif <<(username) = [lambotest]> or <(username) = [lambodhar]>> then\n    set [speed y v] to [30]\nend\n\nwhen I receive [game loop v]\nforever\n    play sound [moosic v] until done\nend\n\ndefine init\nreset timer\ngo to [front v] layer\nbroadcast (reset everythin' v)\nbroadcast (set up enemies v)\nbroadcast (set up checkpoints v)\nset [checkpoint v] to [1]\nset [pause v] to [0]\nset [scrolly v] to [300]\nset [scrollx v] to [-1080]\nReset Level\nclear sound effects\nset volume to (100) %\nshow\n\nwhen [p v] key pressed\nbroadcast (pause or unpause v)\n\nwhen I receive [pause or unpause v]\nif <(pause) = [1]> then\n    set [pause v] to [0]\nelse\n    set [pause v] to [1]\nend\n\nwhen I receive [game loop v]\nforever\n    if  then\n        if <(falling?) = [0]> then\n            play sound (join [step stone] (pick random (1) to (3))) until done\n        end\n    end\n    if  then\n        if <(falling?) = [0]> then\n            play sound (join [step stone] (pick random (1) to (3))) until done\n        end\n    end\nend\n\nwhen I receive [game loop v]\nforever\n    if <[1] = (swimmin'?)> then\n        play sound [Splash v] until done\n        wait until <[0] = (swimmin'?)>\n    end\nend\n\ndefine detect end\nif <[-233] > (x position)> then\n    broadcast (end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesSSSSSSSS!!!!!!!!!1 v)\nend\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nset [☁ won v] to (timer)\nstop [other scripts in sprite v]\nhide\nstop all sounds\n\nwhen [q v] key pressed\nif <<(username) = [archer_2008]> or <(username) = [lambodhar]>> then\n    broadcast (end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesSSSSSSSS!!!!!!!!!1 v)\nend\n\n@Ground\n\ndefine Set size to (percent) %\nif <(percent) > [100]> then\n    set [#costume v] to (costume [number v])\n    switch costume to (blank v)\n    set size to (percent) %\n    switch costume to (#costume)\nelse\n    set size to (percent) %\nend\n\nwhen I receive [turbo v]\nstop [other scripts in sprite v]\nrepeat (1)\n    delete this clone\nend\nset size to (100) %\nshow\nswitch costume to (costume1 v)\nplay sound [wrong v] until done\nwait (.5) seconds\nstop [all v]\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nforever\n    set [brightness v] effect to (-60)\n    go to x: (() - (ScrollX)) y: (() - (ScrollY))\n    if <<(x position) = (() - (ScrollX))> and <(y position) = (() - (ScrollY))>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [game loop v]\ngo to x: (0) y: (0)\nhide\ngo [backward v] (100) layers\nSet size to (500) %\ncreate clone of (_myself_ v)\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\ndelete this clone\n\n@light\n\nwhen flag clicked\nforever\n    go to (tera v)\n    set [brightness v] effect to (5)\n    set size to (((8) * ([cos v] of ((tick) * (150)) )) + (80)) %\nend\n\nwhen flag clicked\nforever\n    repeat (100)\n        change [tick v] by (.1)\n    end\n    repeat (100)\n        change [tick v] by (-.1)\n    end\nend\n\n@Fruits\n\nwhen I start as a clone\nset [fruits v] to [0]\nforever\n    set size to (50) %\n    go to x: ((x) - (ScrollX)) y: ((y) - (ScrollY))\n    set [brightness v] effect to (-50)\n    if <<((x) - (ScrollX)) = (x position)> and <((y) - (ScrollY)) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\ndefine clone at (x) (y) With costume number: (costume number)\nchange [total fruits v] by (1)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (costume number)\ncreate clone of (_myself_ v)\n\nwhen I receive [game loop v]\nset [total fruits v] to [0]\nclear graphic effects\nclone at [-339] [-240] With costume number: (pick random (1) to (3))\nclone at [221] [-20] With costume number: (pick random (1) to (3))\nclone at [797] [-139] With costume number: (pick random (1) to (3))\nclone at [-749] [-496] With costume number: (pick random (1) to (3))\nclone at [325] [-282] With costume number: (pick random (1) to (3))\nclone at [707] [-600] With costume number: (pick random (1) to (3))\nclone at [406] [-630] With costume number: (pick random (1) to (3))\nclone at [-186] [27] With costume number: (pick random (1) to (3))\nclone at [-522] [4] With costume number: (pick random (1) to (3))\nclone at [-933] [489] With costume number: (pick random (1) to (3))\nclone at [16] [674] With costume number: (pick random (1) to (3))\nclone at [376] [521] With costume number: (pick random (1) to (3))\nclone at [84] [323] With costume number: (pick random (1) to (3))\nclone at [566] [619] With costume number: (pick random (1) to (3))\nclone at [757] [335] With costume number: (pick random (1) to (3))\nclone at [1345] [217] With costume number: (pick random (1) to (3))\nclone at [1584] [594] With costume number: (pick random (1) to (3))\nclone at [1544] [247] With costume number: (pick random (1) to (3))\nclone at [1586] [495] With costume number: (pick random (1) to (3))\nclone at [1747] [651] With costume number: (pick random (1) to (3))\nclone at [1555] [847] With costume number: (pick random (1) to (3))\nclone at [1402] [1224] With costume number: (pick random (1) to (3))\nclone at [869] [1241] With costume number: (pick random (1) to (3))\nclone at [-167] [1151] With costume number: (pick random (1) to (3))\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <touching (tera v)?> then\n        change [fruits v] by (1)\n        repeat (20)\n            change [y v] by (5)\n            turn right (15) degrees\n            change [ghost v] effect by (5)\n            change size by (-5)\n        end\n        delete this clone\n    end\nend\n\n@black not fully xD\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [game loop v]\nshow\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\n\n@shop icon\n\nwhen I receive [game loop v]\nbroadcast (animate v)\n\nwhen this sprite clicked\nbroadcast (open shop v)\nhide\n\nwhen I receive [game loop v]\nshow\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        repeat (5)\n            change x by (((208) - (x position)) / (5))\n        end\n    else\n        repeat (5)\n            change x by (((220) - (x position)) / (5))\n        end\n        switch costume to (shop close v)\n    end\nend\n\nwhen I receive [shop logo show after shop main bg closes v]\nset [whirl v] effect to (300)\nshow\nrepeat (25)\n    change [whirl v] effect by (-12)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@danger\n\nwhen I start as a clone\ngo [backward v] (3) layers\nforever\n    turn right (20) degrees\n    go to x: ((x) - (ScrollX)) y: ((y) - (ScrollY))\n    set [brightness v] effect to (-50)\n    if <<((x) - (ScrollX)) = (x position)> and <((y) - (ScrollY)) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\ndefine clone at (x) (y) With costume number: (costume number) size: (size)\nset [x v] to (x)\nset [y v] to (y)\nset size to (size) %\nswitch costume to (costume number)\ncreate clone of (_myself_ v)\n\nwhen I receive [game loop v]\ngo to [back v] layer\nclear graphic effects\nclone at [-1209] [-533] With costume number: [1] size: [50]\nclone at [-540] [-562] With costume number: [1] size: [50]\nclone at [-25] [328] With costume number: [1] size: [50]\nclone at [760] [263] With costume number: [1] size: [50]\nclone at [62] [1357] With costume number: [1] size: [100]\nclone at [-63] [1357] With costume number: [1] size: [100]\nclone at [-188] [1357] With costume number: [1] size: [100]\n\nwhen flag clicked\nhide\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@your mom\n\nwhen I start as a clone\nforever\n    set [color v] effect to (-100)\n    set [brightness v] effect to (-40)\n    set size to (40) %\n    go to x: ((enemy X) - (ScrollX)) y: ((enemy Y) - (ScrollY))\n    if <<((enemy X) - (ScrollX)) = (x position)> and <((enemy Y) - (ScrollY)) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\ndefine Create enemy at x: (x) y: (y) Amount (amount)\nset [enemy x v] to (x)\nset [enemy y v] to (y)\nset [enemy speed v] to (amount)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    set rotation style [left-right v]\n    repeat (enemy speed)\n        point in direction (90)\n        change [enemy x v] by (3)\n    end\n    repeat (enemy speed)\n        point in direction (-90)\n        change [enemy x v] by (-3)\n    end\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (.1) seconds\nend\n\nwhen I receive [set up enemies v]\nCreate enemy at x: [-929] y: [-535] Amount [15]\nCreate enemy at x: [-802] y: [-327] Amount [70]\nCreate enemy at x: [-63] y: [635] Amount [120]\nwait (1) seconds\nCreate enemy at x: [-63] y: [635] Amount [120]\nCreate enemy at x: [1000] y: [160] Amount [120]\n\nwhen I receive [reset everythin' v]\ndelete this clone\n\nwhen [c v] key pressed\nif <[lambodhar] = (username)> then\n    broadcast (reset everythin' v)\nend\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@water\n\ndefine Set size to (percent) %\nif <(percent) > [100]> then\n    set [#costume v] to (costume [number v])\n    switch costume to (blank v)\n    set size to (percent) %\n    switch costume to (#costume)\nelse\n    set size to (percent) %\nend\n\nwhen I receive [turbo v]\nstop [other scripts in sprite v]\nset size to (100) %\nshow\nswitch costume to (costume1 v)\nplay sound [wrong v] until done\nwait (.5) seconds\nstop [all v]\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nforever\n    set [brightness v] effect to (-60)\n    go to x: (() - (ScrollX)) y: ((y) - (ScrollY))\n    if <<(x position) = (() - (ScrollX))> and <(y position) = ((y) - (ScrollY))>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [game loop v]\ngo to x: (0) y: (0)\nhide\ngo [backward v] (100) layers\nSet size to (500) %\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    repeat (10)\n        change [y v] by (.7)\n    end\n    repeat (10)\n        change [y v] by (-.7)\n    end\nend\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@shop2\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\nwhen flag clicked\nhide\n\ndefine (hacked) go to x: (x) y: (y)\nset size to (1000000000000000000000) %\ngo to x: (x) y: (y)\nset size to (100) %\n\nwhen I receive [shop bg close v]\nSmooth Glide x: (0) y: (-370) speed: (9)\n(hacked) go to x: [0] y: [-370]\nbroadcast (shop logo show after shop main BG closes v)\nset [pause v] to [0]\n\nwhen I receive [open shop v]\nbroadcast (pause or unpause v)\ngo to [front v] layer\n(hacked) go to x: [0] y: [-360]\nshow\nSmooth Glide x: (0) y: (0) speed: (9)\nbroadcast (bring in shop items! xD v)\n\ndefine change X by (x)\nset [size v] to (size)\nset size to (10000000000000000000000000000) %\nchange x by (x)\nset size to (size) %\n\ndefine change Y by (y)\nset [size v] to (size)\nset size to (10000000000000000000000000000) %\nchange y by (y)\nset size to (size) %\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@Speed boost (shop item)\n\nwhen I receive [game loop v]\nset [speed boost bought? v] to [0]\nhide\n\nwhen this sprite clicked\nif <[2] < (fruits)> then\n    if <[0] = (speed boost bought?)> then\n        broadcast (speed boost acheived v)\n        change [fruits v] by (-3)\n        set [speed boost bought? v] to [1]\n        switch costume to (sold out v)\n    end\nend\n\nwhen I receive [bring in shop items! xd v]\ngo to [front v] layer\nshow\nbroadcast (animate shop itema v)\n\nwhen I receive [close shop v]\nstop [other scripts in sprite v]\nrepeat until <(size) < [15]>\n    change size by (((12) - (size)) / (5))\nend\nhide\nbroadcast (shop BG close v)\n\nwhen I receive [animate shop itema v]\nforever\n    go to x: (-135) y: (60)\n    if <(speed boost bought?) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (touch v)\n        else\n            switch costume to (main v)\n            wait (.1) seconds\n        end\n    else\n        switch costume to (sold out v)\n    end\n    if <touching (mouse-pointer v)?> then\n        go to [front v] layer\n        change size by (((120) - (size)) / (5))\n    else\n        change size by (((100) - (size)) / (5))\n    end\nend\n\n@shop back button\n\nwhen flag clicked\nhide\n\nwhen I receive [bring in shop items! xd v]\nclear graphic effects\nshow\nset [whirl v] effect to (250)\nrepeat (25)\n    change [whirl v] effect by (-10)\nend\n\nwhen I receive [game loop v]\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        change size by (((170) - (size)) / (5))\n    else\n        change size by (((120) - (size)) / (5))\n    end\nend\n\nwhen this sprite clicked\nbroadcast (close shop v)\n\nwhen I receive [shop bg close v]\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@fruit counter art\n\nwhen flag clicked\nhide\n\nwhen I receive [game loop v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    show\nend\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@fruit number show\n\nwhen flag clicked\nhide\n\nwhen I receive [game loop v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\ngo to x: (-142) y: (157)\nforever\n    go to [front v] layer\n    if <(fruits) = [0]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to ((1) + (fruits))\n    end\nend\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nhide\nstop [other scripts in sprite v]\n\n@immortaltiy (shop item)2\n\nwhen I receive [game loop v]\nset [immortality got? v] to [0]\nhide\n\nwhen this sprite clicked\nif <[14] < (fruits)> then\n    if <[0] = (immortality got?)> then\n        broadcast (speed boost acheived v)\n        change [fruits v] by (-15)\n        set [immortality got? v] to [1]\n        switch costume to (sold out2 v)\n    end\nend\n\nwhen I receive [bring in shop items! xd v]\ngo to [front v] layer\nshow\nbroadcast (animate shop itema v)\n\nwhen I receive [close shop v]\nstop [other scripts in sprite v]\nrepeat until <(size) < [15]>\n    change size by (((12) - (size)) / (5))\nend\nhide\nbroadcast (shop BG close v)\n\nwhen I receive [animate shop itema v]\nforever\n    go to x: (120) y: (89)\n    if <(immortality got?) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (touch v)\n        else\n            switch costume to (main v)\n            wait (.1) seconds\n        end\n    else\n        switch costume to (sold out2 v)\n    end\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (5))\n    else\n        change size by (((100) - (size)) / (5))\n    end\nend\n\n@checkpoint\n\nwhen I start as a clone\nforever\n    set size to (100) %\n    go to x: ((x) - (ScrollX)) y: ((y) - (ScrollY))\n    set [brightness v] effect to (-50)\n    if <<((x) - (ScrollX)) = (x position)> and <((y) - (ScrollY)) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\ndefine clone at (x) (y) checkpoint id: (id)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (not v)\nset [checkpoint id v] to (id)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [set up checkpoints v]\nclone at [-1145] [-482] checkpoint id: [2]\nclone at [269] [-332] checkpoint id: [3]\nclone at [475] [778] checkpoint id: [4]\nclone at [1050] [215] checkpoint id: [5]\nclone at [525] [1255] checkpoint id: [6]\n\nwhen I start as a clone\nforever\n    if <touching (tera v)?> then\n        if <not <(checkpoint) = (checkpoint id)>> then\n            point in direction (90)\n            repeat (3)\n                turn right (5) degrees\n            end\n            repeat (3)\n                turn right (-5) degrees\n            end\n            switch costume to (yes v)\n            broadcast (checkpoint baredu upus haled agadu v)\n            set [checkpoint v] to (checkpoint id)\n        end\n    end\nend\n\nwhen I receive [checkpoint baredu upus haled agadu v]\nif <not <(checkpoint) = (checkpoint id)>> then\n    switch costume to (not v)\nend\n\n@parachute  (shop item)\n\nwhen I receive [game loop v]\nset [parachute bought? v] to [0]\nhide\n\nwhen this sprite clicked\nif <[4] < (fruits)> then\n    if <[0] = (parachute bought?)> then\n        broadcast (speed boost acheived v)\n        change [fruits v] by (-5)\n        set [parachute bought? v] to [1]\n        switch costume to (sold out v)\n    end\nend\n\nwhen I receive [bring in shop items! xd v]\nshow\ngo to [front v] layer\nbroadcast (animate shop itema v)\n\nwhen I receive [close shop v]\nstop [other scripts in sprite v]\nrepeat until <(size) < [15]>\n    change size by (((12) - (size)) / (5))\nend\nhide\nbroadcast (shop BG close v)\n\nwhen I receive [animate shop itema v]\nforever\n    go to x: (118) y: (-90)\n    if <(parachute bought?) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (touch v)\n        else\n            switch costume to (main v)\n            wait (.1) seconds\n        end\n    else\n        switch costume to (sold out v)\n    end\n    if <touching (mouse-pointer v)?> then\n        go to [front v] layer\n        change size by (((120) - (size)) / (5))\n    else\n        change size by (((100) - (size)) / (5))\n    end\nend\n\nwhen [f v] key pressed\nif <(username) = [lambodhar]> then\n    change [fruits v] by (1)\nend\n\n@jump boost (shop item)2\n\nwhen I receive [game loop v]\nset [jump boost bought? v] to [0]\nhide\n\nwhen this sprite clicked\nif <[9] < (fruits)> then\n    if <[0] = (jump boost bought?)> then\n        broadcast (speed boost acheived v)\n        change [fruits v] by (-10)\n        set [jump boost bought? v] to [1]\n        switch costume to (sold out v)\n    end\nend\n\nwhen I receive [close shop v]\nstop [other scripts in sprite v]\nrepeat until <(size) < [15]>\n    change size by (((12) - (size)) / (5))\nend\nhide\nbroadcast (shop BG close v)\n\nwhen I receive [animate shop itema v]\nforever\n    go to x: (-118) y: (-90)\n    if <(jump boost bought?) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (touch v)\n        else\n            switch costume to (main v)\n            wait (.1) seconds\n        end\n    else\n        switch costume to (sold out v)\n    end\n    if <touching (mouse-pointer v)?> then\n        go to [front v] layer\n        change size by (((120) - (size)) / (5))\n    else\n        change size by (((100) - (size)) / (5))\n    end\nend\n\nwhen I receive [bring in shop items! xd v]\nshow\ngo to [front v] layer\nbroadcast (animate shop itema v)\n\n@end\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\nwhen flag clicked\nhide\n\nwhen I receive [end everything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ah!!!!!!!!!!!!!!!!!!!!! yesssssssss!!!!!!!!!1 v]\nswitch costume to (costume1 v)\ngo to [-518] [369]\nshow\nSmooth Glide x: (0) y: (0) speed: (15)\ncreate clone of (_myself_ v)\n\ndefine go to (x) (y)\nset size to (100000000000000000000000000000) %\ngo to x: (x) y: (y)\nset size to (100) %\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (costume2 v)\ngo to [-518] [369]\nSmooth Glide x: (0) y: (0) speed: (15)\nbroadcast (end thing v)\nforever\n    go to x: (pick random (-10) to (10)) y: (pick random (-10) to (10))\nend\n\nwhen I receive [end thing v]\nwait (2) seconds\nbroadcast (outro v)\n\n@Outro\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 Smooth glide (x) (y) (dir) (size) speed (speed)\nrepeat until <<<(round (x position)) = (x)> and <(round (y position)) = (y)>> and <<(round (direction)) = (dir)> and <(round (size)) = (size)>>>\n    change X by (((x) - (x position)) / (speed))\n    change Y by (((y) - (y position)) / (speed))\n    turn right (((dir) - (direction)) / (speed)) degrees\n    change size by (((size) - (size)) / (speed))\nend\nGo to (x) (y)\npoint in direction (dir)\nset size to (size)\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\ngo to [front v] layer\nreset timer\ndelete all of [link v]\ndelete all of [link v]\nadd [https://scratch.mit.edu/projects/412589618/] to [link v]\nadd [https://scratch.mit.edu/projects/396247330/] to [link v]\npoint in direction (90)\nset [confetti need? \(intro\) v] to [0]\nset [my id v] to [bg]\nset size to [150]\ncreate clone of (_myself_ v)\nwait until <[2.99] < (timer)>\nset [my id v] to [OC]\ncreate clone of (_myself_ v)\nwait (.3) seconds\nset [my id v] to [logo]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [my id v] to [white]\ncreate clone of (_myself_ v)\nwait until <[4.5] < (timer)>\nset [my id v] to [text]\ncreate clone of (_myself_ v)\nwait until <(confetti need? \(intro\)) = [1]>\nwait (.5) seconds\nset [my id v] to [project]\ncreate clone of (_myself_ v)\nwait (.5) seconds\nset [my id v] to [project2]\ncreate clone of (_myself_ v)\nforever\n    set [my id v] to [confetti]\n    create clone of (_myself_ v)\n    wait (0) seconds\nend\n\nwhen I start as a clone\nif <(my id) = [bg]> then\n    show\n    Go to [0] [-359]\n    set size to [100]\n    switch costume to (bg v)\n    Smooth Glide x: (0) y: (0) speed: (15)\n    forever\n        glide (.5) secs to x: (220) y: (0)\n        Go to [0] [0]\n    end\nelse\n    if <(my id) = [OC]> then\n        set size to [10]\n        Go to [0] [-108]\n        switch costume to (oc v)\n        set [my id v] to [oc hitbox]\n        create clone of (_myself_ v)\n        show\n        repeat until <[4.5] < (timer)>\n            set [for text sin/cos v] to (((for text sin/cos) * (.8)) + (((147) - (size)) / (4)))\n            change size by (for text sin/cos)\n        end\n        wait (.4) seconds\n        Smooth Glide x: (315) y: (108) speed: (5)\n        Smooth Glide x: (-181) y: (-101) speed: (5)\n        wait (.4) seconds\n        say [Comment " xD Tera is just tooo cute!]\n        forever\n            set [confetti need? \(intro\) v] to [1]\n            go to x: ((-181) + (([cos v] of ((timer) * (300)) ) * (12))) y: ((-101) + (([cos v] of (((timer) - (2)) * (300)) ) * (12)))\n            point in direction ((90) + (([tan v] of ((timer) * (100)) ) * (4)))\n        end\n    else\n        if <(my id) = [logo]> then\n            set size to [10]\n            Go to [0] [108]\n            switch costume to (your logo v)\n            show\n            repeat until <[4.5] < (timer)>\n                set [for text sin/cos v] to (((for text sin/cos) * (.8)) + (((147) - (size)) / (4)))\n                change size by (for text sin/cos)\n            end\n            wait (.4) seconds\n            Smooth Glide x: (-315) y: (108) speed: (5)\n            Smooth Glide x: (181) y: (-115) speed: (5)\n            wait (.4) seconds\n            forever\n                set [confetti need? \(intro\) v] to [1]\n                go to x: ((181) + (([cos v] of ((timer) * (300)) ) * (12))) y: ((-101) + (([cos v] of (((timer) - (2)) * (300)) ) * (12)))\n                point in direction ((90) + (([tan v] of ((timer) * (100)) ) * (4)))\n            end\n        else\n            if <(my id) = [white]> then\n                set size to [100]\n                Go to [0] [0]\n                switch costume to (white grad v)\n                clear graphic effects\n                set [ghost v] effect to (15)\n                show\n                wait (.2) seconds\n                switch costume to (white full v)\n                clear graphic effects\n                wait (.3) seconds\n                delete this clone\n            else\n                if <(my id) = [text]> then\n                    switch costume to (text v)\n                    set size to [700]\n                    show\n                    Go to [0] [143]\n                    repeat (150)\n                        set [for text sin/cos v] to (((for text sin/cos) * (.8)) + (((125) - (size)) / (2)))\n                        change size by (for text sin/cos)\n                    end\n                    wait until <(confetti need? \(intro\)) = [1]>\n                    forever\n                        go to [front v] layer\n                        set size to ((125) + (([cos v] of ((timer) * (300)) ) * (30))) %\n                        go to x: ((0) + (([cos v] of ((timer) * (300)) ) * (12))) y: ((143) + (([cos v] of (((timer) - (2)) * (300)) ) * (12)))\n                        point in direction ((90) + (([tan v] of ((timer) * (100)) ) * (4)))\n                    end\n                else\n                    if <(my id) = [confetti]> then\n                        go to x: (pick random (-220) to (220)) y: (-170)\n                        set size to (20) %\n                        set [ghost v] effect to (40)\n                        switch costume to (pick random (8) to (10))\n                        go to [front v] layer\n                        set [confetti y vel v] to (pick random (17) to (25))\n                        go [backward v] (3) layers\n                        point in direction (pick random (0) to (180))\n                        show\n                        change y by (confetti Y vel)\n                        change [confetti y vel v] by (-1)\n                        repeat until <(y position) < [-175]>\n                            turn right (confetti Y vel) degrees\n                            change y by (confetti Y vel)\n                            change [confetti y vel v] by (-1)\n                        end\n                        delete this clone\n                    else\n                        if <(my id) = [project]> then\n                            go to x: (168) y: (64)\n                            show\n                            set size to [10]\n                            switch costume to (project v)\n                            repeat (50)\n                                set [for text sin/cos v] to (((for text sin/cos) * (.8)) + (((75) - (size)) / (2)))\n                                change size by (for text sin/cos)\n                            end\n                            forever\n                                set size to ((75) + (([cos v] of ((timer) * (300)) ) * (12))) %\n                                if <touching (mouse-pointer v)?> then\n                                    hide list [link v]\n                                else\n                                    show list [link v]\n                                end\n                            end\n                        else\n                            if <(my id) = [project2]> then\n                                go to x: (-168) y: (64)\n                                show\n                                set size to [10]\n                                switch costume to (project2 v)\n                                repeat (50)\n                                    set [for text sin/cos v] to (((for text sin/cos) * (.8)) + (((75) - (size)) / (2)))\n                                    change size by (for text sin/cos)\n                                end\n                                forever\n                                    set size to ((75) + (([cos v] of (((timer) + (1)) * (300)) ) * (12))) %\n                                    if <touching (mouse-pointer v)?> then\n                                        hide list [link v]\n                                    else\n                                        show list [link v]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Go to (x) (y)\nset [size v] to (size)\nset size to [99999999999]\ngo to x: (x) y: (y)\nset size to (size)\n\ndefine set size to (size)\nset [cos # v] to (costume [number v])\nswitch costume to (blank v)\nset size to (size) %\nswitch costume to (cos #)\n\ndefine change size by (size)\nset [cos # v] to (costume [number v])\nswitch costume to (blank v)\nchange size by (size)\nswitch costume to (cos #)\n\ndefine change Y by (y)\nset [size v] to (size)\nset size to [99999999999]\nchange y by (y)\nset size to (size)\n\ndefine change X by (x)\nset [size v] to (size)\nset size to [99999999999]\nchange x by (x)\nset size to (size)\n\nwhen I receive [outro v]\nplay sound [Julius Dreisig & Zeus X Crona - Invisible v] until done\nforever\n    play sound [Julius Dreisig & Zeus X Crona - Invisible9 v] until done\nend\n\n@intro\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\nwhen flag clicked\nreset timer\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (blank v)\nhide\nbroadcast (clones deletion intro v)\nbroadcast (intro v)\nstart sound [whatever this is supposed to be called as, ewwwwwwwwwwww neoni v]\n\nwhen I receive [intro v]\nbroadcast (face in v)\nwait (.2) seconds\nbroadcast (logo in v)\nwait (.2) seconds\nbroadcast (txt in v)\n\nwhen I receive [face in v]\nclone with cos: [2]\n\ndefine clone with cos: (cos num)\nswitch costume to (cos num)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (0)\n    forever\n        set [sin + cos one v] to (((sin + cos one) * (.8)) + (((130) - (size)) / (5)))\n        change size by (sin + cos one)\n    end\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (0)\n    set size to (10) %\n    forever\n        set [sin + cos one v] to (((sin + cos one) * (.8)) + (((150) - (size)) / (1000)))\n        change size by (sin + cos one)\n    end\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [2]> then\n    wait until <[120] < (size)>\n    Smooth Glide x: (-159) y: (-6) speed: (10)\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [4]> then\n    go to x: (0) y: (0)\n    set size to (100) %\n    forever\n        set [sin + cos one v] to (((sin + cos one) * (.8)) + (((130) - (size)) / (5)))\n        change size by (sin + cos one)\n    end\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [4]> then\n    wait until <[120] < (size)>\n    Smooth Glide x: (159) y: (-6) speed: (10)\nend\n\nwhen I receive [logo in v]\nclone with cos: [4]\n\nwhen I receive [txt in v]\nclone with cos: [3]\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [3]> then\n    go to x: (0) y: (0)\n    set size to (100) %\n    forever\n        set [sin + cos one v] to (((sin + cos one) * (.8)) + (((90) - (size)) / (5)))\n        change size by (sin + cos one)\n    end\nend\n\nwhen I receive [clones deletion intro v]\nwait until <[.9] < (timer)>\nbroadcast (delete all clones v)\n\nwhen I receive [delete all clones v]\nbroadcast (redo v)\ndelete this clone\n\nwhen I receive [redo v]\nwait (.2) seconds\nbroadcast (intro v)\nwait (.3) seconds\nbroadcast (confett v)\n\nwhen I receive [intro everything deletion v]\nrepeat (1)\n    delete this clone\nend\nstop all sounds\nstop [other scripts in sprite v]\n\n@confetti\n\ndefine Create (clones)\nrepeat (clones)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (dot v)\nset size to (pick random (30) to (75)) %\nset [ghost v] effect to (pick random (0) to (50))\nset [brightness v] effect to (pick random (-20) to (10))\ngo to x: (pick random (-10) to (10)) y: (pick random (-10) to (10))\npoint in direction (pick random (-180) to (180))\nset [v v] to (pick random (10) to (12))\nset [i v] to (pick random (2) to (7))\ngo to [front v] layer\nshow\nrepeat until <(y position) < [-170]>\n    move (v) steps\n    change y by (i)\n    set [v v] to ((v) * (0.95))\n    change [i v] by (-0.01)\nend\ndelete this clone\n\nwhen I receive [confett v]\nCreate [100]\nwait (.3) seconds\nbroadcast (intro ending circle up and fall and size change v)\n\nwhen I receive [intro ending circle up and fall and size change v]\nswitch costume to (dot v)\ngo to x: (0) y: (0)\nset size to (10) %\nshow\ngo to [front v] layer\nwait (.3) seconds\nforever\n    change size by (((1800) - (size)) / (2))\nend\n\nwhen flag clicked\nhide\n\ndefine change size by (size)\nset [costume# v] to (costume [number v])\nswitch costume to (blank v)\nchange size by (size)\nswitch costume to (dot v)\n\nwhen I receive [intro v]\nwait until <[2.7] < (timer)>\nbroadcast (intro everything deletion v)\n\nwhen I receive [intro everything deletion v]\nrepeat (1)\n    delete this clone\nend\nstop [other scripts in sprite v]\nbroadcast (black v)\nhide\n\nwhen I receive [black v]\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nbroadcast (game loop v)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\n