Griffin Platformer
@Stage\n\n@Sprite2\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                            else\n                                set [yv v] to [10]\n                            end\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <(x position) > [196]> then\n        go to x: (-188) y: (-133)\n        switch backdrop to (next backdrop v)\n    end\n    if <touching color (#cd0000)?> then\n        go to x: (-188) y: (-133)\n    end\nend\n\nwhen flag clicked\ngo to x: (-185) y: (43)\nset size to (30) %\n\nwhen flag clicked\nforever\n    if on edge, bounce\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@thumbnail\n\nwhen flag clicked\nclear graphic effects\nshow\nwait (3) seconds\nrepeat (100)\n    change [ghost v] effect by (25)\nend\nhide\n\n
Arrow keys to move and avoid dark red.