Sunstruck, A Mobile Friendly Platformer

Instructions: Minecraft Platformer 4\n\n➊ Use ARROW keys, WASD keys or MOBILE!\n➋ To chop, craft or attack press SPACE or ACTION!\n❸ Please love, fav and follow!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [green flag clicked v]\nswitch backdrop to (backdrop1 v)\n\n@pen engine\n\ndefine draw rectangle with dimensions (width) (height) at (x1) (y1) color (color) #iterations (iterations)\npen up\nif <(width) < (height)> then\n    set [my variable v] to (width)\nelse\n    set [my variable v] to (height)\nend\nset pen size to (my variable)\ngo to x: (((x1) - ((width) / (2))) + ((my variable) / (2))) y: (((y1) - ((height) / (2))) + ((my variable) / (2)))\npen down\ngo to x: (((x1) + ((width) / (2))) - ((my variable) / (2))) y: (((y1) + ((height) / (2))) - ((my variable) / (2)))\nrepeat (iterations)\n    set [my variable v] to ((my variable) * (0.15))\n    set pen size to (my variable)\n    go to x: (((x1) - ((width) / (2))) + ((my variable) / (2))) y: (((y1) + ((height) / (2))) - ((my variable) / (2)))\n    set x to (((x1) + ((width) / (2))) - ((my variable) / (2)))\n    set y to (((y1) - ((height) / (2))) + ((my variable) / (2)))\n    set x to (((x1) - ((width) / (2))) + ((my variable) / (2)))\n    set y to (((y1) + ((height) / (2))) - ((my variable) / (2)))\nend\n\nset pen color to (#ce4e05)\n\ndefine draw rectangle with dimensions (width) (height) at (x1) (y1) color (color) #iterations (iterations)\npen up\nif <(width) < (height)> then\n    set [my variable v] to (width)\nelse\n    set [my variable v] to (height)\nend\nset pen size to (my variable)\ngo to x: (((x1) - ((width) / (2))) + ((my variable) / (2))) y: (((y1) - ((height) / (2))) + ((my variable) / (2)))\npen down\ngo to x: (((x1) + ((width) / (2))) - ((my variable) / (2))) y: (((y1) + ((height) / (2))) - ((my variable) / (2)))\nrepeat (iterations)\n    set [my variable v] to ((my variable) * (0.15))\n    set pen size to (my variable)\n    go to x: (((x1) - ((width) / (2))) + ((my variable) / (2))) y: (((y1) + ((height) / (2))) - ((my variable) / (2)))\n    set x to (((x1) + ((width) / (2))) - ((my variable) / (2)))\n    set y to (((y1) - ((height) / (2))) + ((my variable) / (2)))\n    set x to (((x1) - ((width) / (2))) + ((my variable) / (2)))\n    set y to (((y1) + ((height) / (2))) - ((my variable) / (2)))\nend\n\ndefine draw line from x: (x1) y: (y1) to x2: (x2) y2: (y2) pen size (size) (1)\nif <(1) = [1]> then\n    set pen color to (#58ff00)\nend\nif <(1) = [2]> then\n    set pen color to (#1d00ff)\nend\nif <(1) = [3]> then\n    set pen color to (#ff0000)\nend\nif <(1) = [4]> then\n    set pen color to (#ebef00)\nend\nif <(1) = [5]> then\n    set pen color to (#b1a62d)\nend\nif <(1) = [6]> then\n    set pen color to (#9c9124)\nend\nif <(1) = [7]> then\n    set pen color to (#ebef15)\nend\nif <(1) = [8]> then\n    set pen color to (#e9ee37)\nend\nif <(1) = [9]> then\n    set pen color to (#388aff)\nend\nif <(1) = [10]> then\n    set pen color to (#9c912e)\nend\nset pen size to (size)\npen up\ngo to x: ((x1) + (scrollx)) y: ((y1) + (scrolly))\npen down\ngo to x: ((x2) + (scrollx)) y: ((y2) + (scrolly))\npen up\nif <(1) = [1]> then\n    set pen color to (#ce4f06)\n    pen up\n    go to x: ((x1) + (scrollx)) y: ((y1) + ((scrolly) - (size)))\n    pen down\n    go to x: ((x2) + (scrollx)) y: ((y2) + ((scrolly) - (size)))\n    pen up\n    set pen color to (#58ff00)\nend\n\nerase all\n\nwhen flag clicked\nerase all\n\ndefine border\nset pen color to (#66dfff)\nset pen size to (50)\ndraw line from [-240] [180] [240] [180]\ndraw line from [240] [180] [240] [-180]\ndraw line from [240] [-180] [-240] [-180]\ndraw line from [-240] [-180] [-240] [180]\ngo to x: (0) y: (0)\n\ndefine draw line from (1) (2) (3) (4)\npen up\ngo to x: (1) y: (2)\npen down\ngo to x: (3) y: (4)\npen up\n\ndraw line from x: [1550] y: [0] to x2: [1400] y2: [0] pen size [10] []\n\ngo to x: (0) y: (0)\n\n\n\nset [key v] to [2]\n\nwhen I receive [green flag clicked v]\nset [scrollx v] to [0]\nset [scrolly v] to [0]\nset [spawnx v] to [0]\nset [spawny v] to [0]\nset [key v] to [0]\nforever\n    erase all\n    draw line from x: [-100] y: [-25] to x2: [100] y2: [-25] pen size [10] [1]\n    draw line from x: [200] y: [-25] to x2: [400] y2: [-25] pen size [10] [1]\n    draw line from x: [300] y: [20] to x2: [400] y2: [20] pen size [10] [1]\n    draw line from x: [550] y: [30] to x2: [600] y2: [30] pen size [10] [2]\n    draw line from x: [605] y: [170] to x2: [725] y2: [170] pen size [10] [1]\n    draw line from x: [800] y: [100] to x2: [700] y2: [100] pen size [10] [1]\n    draw line from x: [620] y: [30] to x2: [735] y2: [30] pen size [10] [1]\n    draw line from x: [1000] y: [-100] to x2: [600] y2: [-100] pen size [10] [1]\n    draw line from x: [600] y: [-80] to x2: [600] y2: [-100] pen size [10] [1]\n    draw line from x: [645] y: [-40] to x2: [499] y2: [-40] pen size [10] [3]\n    draw line from x: [610] y: [-90] to x2: [650] y2: [-90] pen size [10] [4]\n    draw line from x: [780] y: [-45] to x2: [820] y2: [-45] pen size [10] [3]\n    draw line from x: [900] y: [-50] to x2: [900] y2: [-90] pen size [10] [3]\n    draw line from x: [1000] y: [-50] to x2: [1000] y2: [-90] pen size [10] [3]\n    draw line from x: [1000] y: [-30] to x2: [1100] y2: [-30] pen size [10] [1]\n    draw line from x: [1100] y: [-30] to x2: [1100] y2: [10] pen size [10] [3]\n    draw line from x: [1100] y: [30] to x2: [1200] y2: [30] pen size [10] [1]\n    draw line from x: [1200] y: [40] to x2: [1200] y2: [90] pen size [10] [3]\n    draw line from x: [1190] y: [40] to x2: [1160] y2: [40] pen size [10] [2]\n    draw line from x: [1250] y: [-50] to x2: [1350] y2: [-50] pen size [10] [1]\n    draw line from x: [1450] y: [-25] to x2: [1600] y2: [-25] pen size [10] [1]\n    draw line from x: [1500] y: [-15] to x2: [1550] y2: [-15] pen size [10] [3]\n    draw line from x: [1560] y: [-15] to x2: [1600] y2: [-15] pen size [10] [2]\n    draw line from x: [1700] y: [10] to x2: [1800] y2: [10] pen size [10] [1]\n    draw line from x: [1725] y: [20] to x2: [1775] y2: [20] pen size [10] [2]\n    draw line from x: [1850] y: [30] to x2: [2000] y2: [30] pen size [10] [1]\n    draw line from x: [1850] y: [30] to x2: [1850] y2: [75] pen size [10] [3]\n    draw line from x: [1950] y: [40] to x2: [1880] y2: [40] pen size [10] [7]\n    draw line from x: [2500] y: [170] to x2: [2550] y2: [170] pen size [10] [1]\n    draw line from x: [2510] y: [180] to x2: [2540] y2: [180] pen size [10] [2]\n    draw line from x: [2350] y: [280] to x2: [2400] y2: [280] pen size [10] [1]\n    draw line from x: [2360] y: [290] to x2: [2390] y2: [290] pen size [10] [8]\n    if <(key) = [1]> then\n        draw line from x: [2050] y: [50] to x2: [2050] y2: [50] pen size [15] [6]\n        draw line from x: [2000] y: [30] to x2: [2100] y2: [30] pen size [10] [1]\n    end\n    draw line from x: [2100] y: [30] to x2: [2300] y2: [30] pen size [10] [1]\n    draw line from x: [2150] y: [40] to x2: [2150] y2: [80] pen size [10] [3]\n    draw line from x: [2200] y: [40] to x2: [2200] y2: [80] pen size [10] [3]\n    draw line from x: [2250] y: [40] to x2: [2250] y2: [80] pen size [10] [3]\n    draw line from x: [2350] y: [80] to x2: [2400] y2: [80] pen size [10] [1]\n    draw line from x: [2360] y: [90] to x2: [2390] y2: [90] pen size [10] [2]\n    draw line from x: [2130] y: [280] to x2: [2296] y2: [280] pen size [10] [1]\n    draw line from x: [2230] y: [340] to x2: [2180] y2: [340] pen size [10] [1]\n    set pen color to (#388aff)\n    draw rectangle with dimensions [168] [50] at ((2210) + (scrollx)) ((300) + (scrolly)) color [] #iterations [1]\n    set pen color to (#ce4e05)\n    draw rectangle with dimensions [110] [50] at ((350) + (scrollx)) ((-10) + (scrolly)) color [] #iterations [1]\n    draw rectangle with dimensions [110] [50] at ((550) + (scrollx)) ((-10) + (scrolly)) color [] #iterations [1]\n    draw rectangle with dimensions [50] [200] at ((625) + (scrollx)) ((65) + (scrolly)) color [] #iterations [1]\n    draw rectangle with dimensions [50] [400] at ((800) + (scrollx)) ((160) + (scrolly)) color [] #iterations [1]\n    draw rectangle with dimensions [200] [50] at ((2200) + (scrollx)) ((250) + (scrolly)) color [] #iterations [1]\n    draw rectangle with dimensions [50] [200] at ((2100) + (scrollx)) ((325) + (scrolly)) color [] #iterations [1]\n    if <(key) = [0]> then\n        draw line from x: [1325] y: [-30] to x2: [1325] y2: [-30] pen size [20] [5]\n        draw line from x: [1350] y: [500] to x2: [1350] y2: [-50] pen size [10] [3]\n        draw line from x: [1360] y: [500] to x2: [1360] y2: [-50] pen size [10] [3]\n        draw line from x: [1370] y: [500] to x2: [1370] y2: [-50] pen size [10] [3]\n        draw line from x: [1350] y: [-50] to x2: [1370] y2: [-50] pen size [10] [3]\n    end\n    if <(key) = [3]> then\n        draw line from x: [2175] y: [500] to x2: [2250] y2: [500] pen size [10] [1]\n        draw line from x: [2185] y: [510] to x2: [2240] y2: [510] pen size [10] [2]\n    else\n        draw line from x: [2100] y: [450] to x2: [2100] y2: [450] pen size [20] [10]\n    end\n    draw line from x: [2295] y: [320] to x2: [2295] y2: [280] pen size [10] [1]\n    draw line from x: [2304] y: [320] to x2: [2304] y2: [240] pen size [10] [1]\n    draw line from x: [2295] y: [320] to x2: [2295] y2: [280] pen size [10] [1]\n    draw line from x: [2295] y: [320] to x2: [2295] y2: [280] pen size [10] [1]\n    draw line from x: [2295] y: [320] to x2: [2295] y2: [320] pen size [10] [1]\n    draw line from x: [2210] y: [700] to x2: [2179] y2: [750] pen size [10] [3]\n    draw line from x: [2210] y: [700] to x2: [2242] y2: [750] pen size [10] [3]\n    draw line from x: [2242] y: [750] to x2: [2178] y2: [750] pen size [10] [3]\n    draw line from x: [2242] y: [770] to x2: [2178] y2: [770] pen size [10] [1]\n    draw line from x: [2300] y: [625] to x2: [2375] y2: [625] pen size [10] [1]\n    draw line from x: [2310] y: [635] to x2: [2365] y2: [635] pen size [10] [2]\n    if <(key) = [4]> then\n        draw line from x: [2100] y: [770] to x2: [2325] y2: [770] pen size [10] [1]\n        draw line from x: [2100] y: [770] to x2: [2100] y2: [1000] pen size [10] [1]\n        draw line from x: [2325] y: [770] to x2: [2325] y2: [1000] pen size [10] [1]\n    end\n    set pen color to (#6fa536)\n    draw line from x: [2210] y: [800] to x2: [2210] y2: [800] pen size [20] []\n    border\nend\n\n@Platforming\n\nwhen I receive [green flag clicked v]\nReset Level\nforever\n    go to x: (0) y: (0)\n    change [scrolly v] by (() - (speed y))\n    change [scrollx v] by (() - (speed x))\n    switch costume to (hitbox v)\n    Controls - Jump, Crouch\n    Gravity\n    Check Hit Ceiling / Floor <(speed y) > [0]>\n    if <[200] < (scrolly)> then\n        Reset Level\n    end\n    if <(speed x) < [-0.5]> then\n        Walk (-90) (speed x) max steep (([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 steep (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n        else\n            set [frame v] to [0]\n        end\n    end\n    broadcast (tick v) and wait\n    Controls - Left and Right\n    if <touching color (#ff0000)?> then\n        Reset Level\n    end\n    if <touching color (#28cc4d)?> then\n        stop [all v]\n    end\nend\n\ndefine Controls - Left and Right\nset [speed x v] to ((speed x) * (0.7))\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [speed x v] by (-1.5)\nend\nif <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n    change [speed x v] by (1.5)\nend\n\ndefine Walk (direction) (speed) max steep (max steep)\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) = (max steep)> or <(touch) = [0]>>\n    change y by (1)\n    change [slope v] by (1)\n    Get Touching <(in platforrm) = [1]>\nend\nif <(slope) = (max steep)> then\n    change x by ((0) - (speed))\n    change [scrollx v] by (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 steep (max steep)\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?>> 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 (w v) pressed?> or <key (up arrow v) pressed?>> then\n    if <<(jump key) = [0]> and <(falling?) < [3]>> then\n        set [speed y v] to [14]\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 <<(speed y) < [4]> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    change [speed y v] by (-1)\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 color (#58ff00)?> or <touching color (#ce4e05)?>> then\n    set [touch v] to [9]\nelse\n    if <<check platform?> and <<touching color (#58ff00)?> or <touching color (#ce4e05)?>>> then\n        set [touch v] to [1]\n    else\n        set [touch v] to [0]\n    end\nend\n\ndefine Reset Level\nset [scrollx v] to (spawnx)\nset [scrolly v] to (spawny)\nset size to (25) %\nset rotation style [left-right v]\ngo to x: (0) y: (0)\nreset timer\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 <(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 (8))) )\n    end\nelse\n    if <(speed y) > [0]> then\n        switch costume to (jump_1 v)\n    else\n        switch costume to (fall_1 v)\n    end\nend\n\nwhen flag clicked\nhide\nif <not <(username) = (username)>> then\n    set [username v] to (username)\n    change [☁ recent_view v] by (1)\nend\n\ngo to x: (0) y: (0)\n\nif <(wall jump) > [0]> then\n    change [wall jump v] by (-1)\nend\n\nif <key (s v) pressed?> then\n    set [in platforrm v] to [2]\nend\n\n\n\nset [change in x v] to [0]\n\nwhen flag clicked\nforever\n    if <touching color (#1d00ff)?> then\n        set [speed y v] to [25]\n    end\n    if <touching color (#eaee00)?> then\n        set [spawnx v] to [-625]\n        set [spawny v] to [80]\n    end\n    if <touching color (#eaee15)?> then\n        set [spawnx v] to [-1915]\n        set [spawny v] to [-60]\n    end\n    if <touching color (#e8ed36)?> then\n        set [spawnx v] to [-2375]\n        set [spawny v] to [-300]\n    end\n    if <touching color (#b1a62d)?> then\n        set [key v] to [1]\n    end\n    if <touching color (#3789ff)?> then\n        set [speed x v] to ((speed x) * (0.9))\n        set [speed y v] to ((speed y) * (0.9))\n    end\n    if <touching color (#9c9123)?> then\n        set [key v] to [2]\n    end\n    if <touching color (#9c912e)?> then\n        set [key v] to [3]\n    end\n    if <touching color (#6fa436)?> then\n        set [key v] to [4]\n    end\nend\n\nset [speed x v] to [0]\n\nwait until <not >\n\nwhen [r v] key pressed\nReset Level\n\nwhen I receive [stop v]\nstop [other scripts in sprite v]\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [green flag clicked v]\ngo to [front v] layer\n\n@Instruction\n\nwhen I start as a clone\nforever\n    if <touching (_edge_ v)?> then\n        hide\n    else\n        show\n    end\n    if <(costume [number v]) = [1]> then\n        go to x: (() + (scrollx)) y: (() + (scrolly))\n    end\n    if <(costume [number v]) = [2]> then\n        go to x: ((550) + (scrollx)) y: ((100) + (scrolly))\n    end\n    if <(costume [number v]) = [3]> then\n        go to x: ((600) + (scrollx)) y: ((225) + (scrolly))\n    end\n    if <(costume [number v]) = [4]> then\n        go to x: ((750) + (scrollx)) y: ((-70) + (scrolly))\n    end\n    if <(costume [number v]) = [5]> then\n        go to x: ((1000) + (scrollx)) y: ((10) + (scrolly))\n    end\n    if <(costume [number v]) = [6]> then\n        go to x: ((1200) + (scrollx)) y: ((10) + (scrolly))\n    end\n    if <(costume [number v]) = [7]> then\n        go to x: ((1350) + (scrollx)) y: ((-75) + (scrolly))\n    end\n    if <(costume [number v]) = [8]> then\n        go to x: ((800) + (scrollx)) y: ((500) + (scrolly))\n    end\n    if <(costume [number v]) = [9]> then\n        go to x: ((1800) + (scrollx)) y: ((50) + (scrolly))\n    end\n    if <(costume [number v]) = [10]> then\n        go to x: ((2050) + (scrollx)) y: ((100) + (scrolly))\n    end\n    if <(costume [number v]) = [11]> then\n        go to x: ((2300) + (scrollx)) y: ((150) + (scrolly))\n    end\n    if <(costume [number v]) = [12]> then\n        go to x: ((2300) + (scrollx)) y: ((400) + (scrolly))\n    end\n    if <(costume [number v]) = [13]> then\n        if <not <(key) = [4]>> then\n            hide\n        end\n        go to x: ((2210) + (scrollx)) y: ((900) + (scrolly))\n    end\nend\n\nwhen I receive [green flag clicked v]\ngo to [front v] layer\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\nnext costume\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\n\nif <(username) = [-SimpleGames-]> then\n    broadcast (stop v)\n    forever\n        if <key (right arrow v) pressed?> then\n            change [scrollx v] by (-0.5)\n        end\n        if <key (left arrow v) pressed?> then\n            change [scrollx v] by (0.5)\n        end\n        if <key (up arrow v) pressed?> then\n            change [scrolly v] by (-0.5)\n        end\n        if <key (down arrow v) pressed?> then\n            change [scrolly v] by (0.5)\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nswitch costume to (slime v)\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\nend\nhide\nwait (0.6) seconds\nshow\nswitch costume to (simplegames v)\nset size to (100) %\ngo to x: (236) y: (0)\nrepeat until <(round (x position)) = [0]>\n    change x by (((0) - (x position)) * (0.2))\nend\nwait (1.2) seconds\nshow\nrepeat until <(y position) < [-150]>\n    change y by (((-160) - (y position)) * (0.2))\nend\nhide\nbroadcast (Green Flag clicked v)\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nif <(costume [number v]) = [1]> then\n    show\n    go to x: (-236) y: (0)\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) * (0.2))\n    end\n    wait (2.3) seconds\n    show\n    repeat until <(x position) > [440]>\n        change x by (((460) - (x position)) * (0.2))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    wait (0.1) seconds\n    show\n    go to x: (-236) y: (0)\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) * (0.2))\n    end\n    wait (2) seconds\n    show\n    repeat until <(x position) > [200]>\n        change x by (((300) - (x position)) * (0.2))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    wait (0.4) seconds\n    show\n    go to x: (-236) y: (0)\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) * (0.2))\n    end\n    wait (1.2) seconds\n    show\n    repeat until <(x position) > [120]>\n        change x by (((160) - (x position)) * (0.2))\n    end\n    delete this clone\nend\n\ngo to x: (-236) y: (0)\n\n