Non-euclidean Platformer v1.3

Instructions: Double press flag\nUse arrow keys to move\nYou live on a cube and are constantly going down (If you don't understand, just play)\n\nRight now there is no goal, so just play around inside a cube\nPlease tell me your ideas for a level\nThere is a map on the top right corner soooo... that's cool\nThis is definitely not done yet so tell me of any glitches you find.\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\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\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

@Stage\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (front v)\nforever\n    if <(costume [name v]) = [Front]> then\n        broadcast (Front Face v)\n    end\n    if <(costume [name v]) = [Left]> then\n        broadcast (Left Face v)\n    end\n    if <(costume [name v]) = [Right]> then\n        broadcast (Right Face v)\n    end\n    if <(costume [name v]) = [Top]> then\n        broadcast (Top Face v)\n    end\n    if <(costume [name v]) = [Bottom]> then\n        broadcast (Bottom Face v)\n    end\n    if <(costume [name v]) = [Back]> then\n        broadcast (Back Face v)\n    end\nend\n\nwhen I receive [left v]\nif <<(direction) = [90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (180) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (180) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn right (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn right (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [0]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn left (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [0]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn left (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn left (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn left (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn left (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [0]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn left (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn left (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [180]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn left (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn right (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [180]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn right (90) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [0]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn left (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [0]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn left (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn left (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [180]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn left (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [180]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn right (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (90) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [0]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn right (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [0]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn right (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [180]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn right (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [180]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\n    turn left (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn left (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [0]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\n    turn left (90) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [90]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn left (90) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [0]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (180) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [0]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [180]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [0]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [180]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [0]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [180]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [0]> and <(costume [name v]) = [Front]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [180]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [0]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [180]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [0]> and <(costume [name v]) = [Left]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [180]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [0]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [180]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [0]> and <(costume [name v]) = [Right]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\n    turn right (180) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [0]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [180]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [0]> and <(costume [name v]) = [Top]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [-90]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [180]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (front v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [0]> and <(costume [name v]) = [Bottom]>> then\n    wait (0.0001) seconds\n    switch costume to (back v)\n    turn right (180) degrees\nend\n\nwhen I receive [left v]\nif <<(direction) = [180]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (180) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (180) degrees\nend\n\nwhen I receive [up v]\nif <<(direction) = [90]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (180) degrees\nend\n\nwhen I receive [down v]\nif <<(direction) = [180]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [180]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [down v]\nif <<(direction) = [0]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (right v)\nend\n\nwhen I receive [up v]\nif <<(direction) = [0]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (left v)\nend\n\nwhen I receive [right v]\nif <<(direction) = [180]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (top v)\n    turn right (180) degrees\nend\n\nwhen I receive [right v]\nif <<(direction) = [0]> and <(costume [name v]) = [Back]>> then\n    wait (0.0001) seconds\n    switch costume to (bottom v)\n    turn right (180) degrees\nend\n\n@Up\n\nwhen flag clicked\ngo to x: (0) y: (200)\n\n@Down\n\nwhen flag clicked\ngo to x: (0) y: (-200)\n\n@Left\n\nwhen flag clicked\ngo to x: (-250) y: (0)\n\n@Right\n\nwhen flag clicked\ngo to x: (250) y: (0)\n\n@Guy\n\nwhen flag clicked\nforever\n    if <touching (up v)?> then\n        broadcast (Up v)\n        go to x: (x position) y: (-140)\n        start sound [Low Whoosh v]\n    end\n    if <touching (down v)?> then\n        broadcast (Down v)\n        go to x: (x position) y: (140)\n        start sound [Low Whoosh v]\n    end\n    if <touching (left v)?> then\n        broadcast (Left v)\n        go to x: (200) y: (y position)\n        start sound [Low Whoosh v]\n    end\n    if <touching (right v)?> then\n        broadcast (Right v)\n        go to x: (-200) y: (y position)\n        start sound [Low Whoosh v]\n    end\n    if <(costume [name v]) = [Walk2]> then\n        play sound [Wood Tap v] until done\n    end\nend\n\ndefine Controls - Left and Right\nset [speed x v] to ((speed x) * (0.7))\nif <key (left arrow v) pressed?> then\n    change [speed x v] by (-1.5)\nend\nif <key (right arrow v) pressed?> then\n    change [speed x v] by (1.5)\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 [improved2: slope v] to [0]\nGet Touching <(in platforrm) = [1]>\nrepeat until <<(Improved2: slope) = (step)> or <(touch) = [0]>>\n    change y by (1)\n    change [improved2: slope v] by (1)\n    Get Touching <(in platforrm) = [1]>\nend\nif <(Improved2: slope) = (step)> then\n    change x by ((0) - (speed))\n    change y by ((0) - (Improved2: 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 (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 [improved2: speed y v] to [11]\n            set [improved2: falling? v] to [6]\n            set [wall jump v] to [15]\n            start sound [Clown Honk v]\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?> then\n    if <<(Improved2: jump key) = [0]> and <(Improved2: falling?) < [3]>> then\n        set [improved2: speed y v] to [14]\n        set [improved2: falling? v] to [6]\n        set [improved2: jump key v] to [1]\n        start sound [Clown Honk v]\n    end\nelse\n    set [improved2: jump key v] to [0]\nend\nif <key (down arrow v) pressed?> then\n    set [in platforrm v] to [2]\nend\n\ndefine Gravity\nif <<(Improved2: speed y) < [4]> or <key (up arrow v) pressed?>> then\n    change [improved2: speed y v] by (-1)\nelse\n    change [improved2: speed y v] by (-2)\nend\nchange y by (Improved2: speed y)\nchange [improved2: 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 [improved2: falling? v] to [0]\n    end\n    Get Touching <not <up?>>\n    set [improved2: 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 (platforms v)?>> then\n        set [touch v] to [1]\n    else\n        set [touch v] to [0]\n    end\nend\n\ndefine Reset Level\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 [improved2: speed y v] to [0]\nset [improved2: 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 <(Improved2: 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 <(Improved2: 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\nif <<(Title) > [0]> and <(Full) < [12]>> then\n    hide\n    stop [this script v]\nend\nReset Level\nforever\n    switch costume to (hitbox v)\n    Controls - Jump, Crouch\n    Gravity\n    Check Hit Ceiling / Floor <(Improved2: 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    Set Costume\n    broadcast (tick v) and wait\nend\n\n@Map\n\nwhen flag clicked\nset size to (150) %\ngo to x: (175) y: (140)\n\nwhen I receive [front face v]\nswitch costume to (costume1 v)\n\nwhen I receive [left face v]\nswitch costume to (costume2 v)\n\nwhen I receive [right face v]\nswitch costume to (costume5 v)\n\nwhen I receive [top face v]\nswitch costume to (costume3 v)\n\nwhen I receive [bottom face v]\nswitch costume to (costume4 v)\n\nwhen I receive [back face v]\nswitch costume to (costume6 v)\n\n