Gloomy - A Platformer #all #trending #games

Instructions: After 2+ hours of a little bit of Hard work xD...\n\n==========ENLIGHTENED PRESENTS=========\n\nGLOOMY - A PLATFORMER\n\nLOVE AND FAV PLZ :D\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nCOMMENT - GLOOMY

@Stage\n\n@Sprite1\n\n@Player\n\nwhen flag clicked\nNEW\nforever\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [x velocity v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [x velocity v] by (1)\n    end\n    set [x velocity v] to ((X VELOCITY) * (0.9))\n    change x by (X VELOCITY)\n    if <touching (hitbox v)?> then\n        change y by (1)\n        if <touching (hitbox v)?> then\n            change y by (1)\n            if <touching (hitbox v)?> then\n                change y by (1)\n                if <touching (hitbox v)?> then\n                    change y by (1)\n                    if <touching (hitbox v)?> then\n                        change y by (1)\n                    end\n                    change x by ((X VELOCITY) * (-1))\n                    change y by (-5)\n                    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                        if <(X VELOCITY) > [0]> then\n                            set [x velocity v] to [-10]\n                        else\n                            set [x velocity v] to [10]\n                        end\n                        set [y velocity v] to [15]\n                    else\n                        set [x velocity v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change [falling v] by (1)\n    change y by ((Y VELOCITY) * (1))\n    if <touching (hitbox v)?> then\n        change y by ((Y VELOCITY) * (-1))\n        set [y velocity v] to [0]\n        set [falling v] to [0]\n    end\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        if <(falling) < [3]> then\n            set [y velocity v] to [12]\n            set [jump v] to [1]\n        end\n        if <<(jump) = [2]> and <<(falling) > [3]> and <(Double jump?) = [0]>>> then\n            set [y velocity v] to [12]\n            set [jump v] to [2]\n            set [double jump? v] to [1]\n        end\n    else\n        if <(falling) < [5]> then\n            if <(Double jump?) = [1]> then\n                set [double jump? v] to [0]\n                set [jump v] to [0]\n            end\n        else\n            if <(jump) = [1]> then\n                set [jump v] to [2]\n            end\n        end\n    end\n    if <<touching (spikes! v)?> or <(y position) < [-178]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-200) y: (0)\n        set [ghost v] effect to (0)\n    end\n    if <touching (trampoline v)?> then\n        set [y velocity v] to [16]\n    end\n    if <(x position) > [235]> then\n        go to x: (-200) y: (0)\n        change [levell! v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        switch costume to (left v)\n    end\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (up-right v)\n    end\n    if <<<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (up-left v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (space v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>>> then\n        switch costume to (default v)\n    end\nend\n\ndefine NEW\ngo to [front v] layer\nshow\ngo to x: (-200) y: (0)\nset [levell! v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nswitch costume to (default v)\n\n@Graphics\n\nwhen flag clicked\nforever\n    switch costume to (LEVELL!)\nend\n\n@SPIKES!\n\nwhen flag clicked\nforever\n    switch costume to (LEVELL!)\nend\n\n@Trampoline\n\nwhen flag clicked\nforever\n    switch costume to (LEVELL!)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.3)\nif <not <([x position v] of [alertsui v]) = [null]>> then\n    switch costume to (tb v)\n    set [ghost v] effect to (100)\n    show\n    go to [front v] layer\n    repeat (10)\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\nend\n\n@HITBOX\n\nwhen flag clicked\nforever\n    switch costume to (LEVELL!)\nend\n\n@Madrid2030 detector :P\n\nwhen flag clicked\nif <(username) = [madrid2030]> then\n    show\n    set [☁ madrid2030 viewed v] to [1]\nelse\n    hide\nend\n\n@Clouds\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (3) to (10)) seconds\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo to x: (300) y: (pick random (50) to (150))\nforever\n    set [ghost v] effect to (pick random (10) to (50))\n    switch costume to (pick random (1) to (3))\n    glide (pick random (4) to (6)) secs to x: (-300) y: (y position)\n    delete this clone\nend\n\n@Clouds2\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (5) to (8)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo to x: (-300) y: (pick random (50) to (150))\nforever\n    set [ghost v] effect to (pick random (10) to (50))\n    switch costume to (pick random (1) to (3))\n    glide (pick random (4) to (6)) secs to x: (300) y: (y position)\n    delete this clone\nend\n\n