Survival || platformer   #games #melaculi
@Stage\n\n@Player\n\nwhen flag clicked\nshow\nset [y velocity v] to [0]\nset [x velocity v] to [0]\ngo to x: (-214) y: (-30)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((x velocity) * (.9))\n    change x by (x velocity)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((x velocity) * (-1))\n                            change y by (-5)\n                        end\n                        if <key (up arrow v) pressed?> then\n                            if <(x velocity) > [0]> then\n                                set [x velocity v] to [-5]\n                            else\n                                set [x velocity v] to [5]\n                            end\n                            set [y velocity v] to [10]\n                        else\n                            set [x velocity v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (y velocity)\n    if <touching (level v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        set [y velocity v] to [0]\n        set [x velocity v] to [0]\n        go to x: (-214) y: (-30)\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [20]>>>> then\n        switch costume to (2a v)\n        if <<<mouse down?> and <(mouse y) > ((y position) + (20))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (4a v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-20]>>>> then\n            switch costume to (1a v)\n            if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (5a v)\n            end\n        else\n            switch costume to (3a v)\n            if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (6a v)\n            end\n        end\n    end\n    if <touching (trampoline v)?> then\n        change [y velocity v] by (22)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-214) y: (-30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        go to x: (-214) y: (-30)\n    end\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (36) y: (28)\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Spikes\n\nwhen flag clicked\nshow\ngo to x: (125) y: (0)\n\n@Lava\n\nwhen flag clicked\nshow\ngo to x: (-32) y: (-16)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (148) y: (158)\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen [space v] key pressed\nstop [all v]\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nwait (1) seconds\nhide\n\n@Trampoline\n\n
                        ✦✦ Melaculi ✦✦\nMove with arrow keys!!\nPress space key when done. Then comment your score.\nYellow is trampoline.\nBeat My High Score: 21\nIf you had fun make sure to love ❤️, favorite ⭐, and follow!\nNO ADVERTISING!!