Chess Platformer
@Stage\n\n@you\n\nwhen I receive [promote v]\nstop [other scripts in sprite v]\nswitch costume to (head3 v)\nset size to (150) %\ngo to x: (6) y: (90)\n\nwhen flag clicked\nhide variable [yv v]\nhide variable [xv v]\nset [yv v] to [0]\nset [xv v] to [0]\nset [level v] to [1]\nset size to (30) %\nshow\ngo to [front v] layer\nswitch costume to (head v)\ngo to x: (-215) y: (-70)\nrepeat until <(level) = [10]>\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (head v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (head2 v)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#663b00)?> then\n        change y by (1)\n        if <touching color (#663b00)?> then\n            change y by (1)\n            if <touching color (#663b00)?> then\n                change y by (1)\n                if <touching color (#663b00)?> then\n                    change y by (1)\n                    if <touching color (#663b00)?> then\n                        change y by (1)\n                        if <touching color (#663b00)?> then\n                            change y by (1)\n                            if <touching color (#663b00)?> then\n                                change x by ((XV) * (-1))\n                                change y by (-5)\n                                if <key (up arrow v) pressed?> then\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-5]\n                                    else\n                                        set [xv v] to [5]\n                                    end\n                                    set [yv v] to [10]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (YV)\n    if <touching color (#663b00)?> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#663b00)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [238]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-215) y: (-70)\n        change [level v] by (1)\n    end\n    if <(y position) < [-178]> then\n        go to x: (-215) y: (-70)\n    end\n    if <<<touching (enemy v)?> or <touching (enemy2 v)?>> or <<touching (enemy3 v)?> or <touching (poison v)?>>> then\n        go to x: (-215) y: (-70)\n    end\nend\nbroadcast (promote v)\n\n@ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\n@476108236\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo [backward v] (10) layers\n\n@enemy\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nhide\nforever\n    if <(level) = [1]> then\n        hide\n    end\n    if <(level) = [2]> then\n        show\n        go to x: (41) y: (-88)\n    end\n    if <(level) = [3]> then\n        go to x: (-98) y: (-86)\n    end\n    if <(level) = [4]> then\n        go to x: (-90) y: (-86)\n    end\n    if <(level) = [5]> then\n        go to x: (-103) y: (-11)\n    end\n    if <(level) = [6]> then\n        hide\n    end\n    if <(level) = [7]> then\n        show\n        go to x: (-75) y: (-87)\n    end\n    if <(level) = [8]> then\n        go to x: (-80) y: (-88)\n    end\n    if <(level) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [promote v]\nhide\n\n@enemy2\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nhide\nforever\n    if <(level) = [1]> then\n        hide\n    end\n    if <(level) = [2]> then\n        show\n        go to x: (-74) y: (-88)\n    end\n    if <(level) = [3]> then\n        go to x: (8) y: (-87)\n    end\n    if <(level) = [4]> then\n        go to x: (60) y: (-86)\n    end\n    if <(level) = [5]> then\n        go to x: (26) y: (59)\n    end\n    if <(level) = [6]> then\n        hide\n    end\n    if <(level) = [7]> then\n        show\n        go to x: (22) y: (-87)\n    end\n    if <(level) = [8]> then\n        go to x: (63) y: (3)\n    end\n    if <(level) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [promote v]\nhide\n\n@enemy3\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nhide\nforever\n    if <(level) = [1]> then\n        hide\n    end\n    if <(level) = [2]> then\n        show\n        go to x: (171) y: (-88)\n    end\n    if <(level) = [3]> then\n        go to x: (133) y: (-87)\n    end\n    if <(level) = [4]> then\n        go to x: (186) y: (-3)\n    end\n    if <(level) = [5]> then\n        go to x: (163) y: (118)\n    end\n    if <(level) = [6]> then\n        hide\n    end\n    if <(level) = [7]> then\n        show\n        go to x: (125) y: (-87)\n    end\n    if <(level) = [8]> then\n        go to x: (62) y: (92)\n    end\n    if <(level) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [promote v]\nhide\n\n@poison\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nhide\nforever\n    if <(level) = [1]> then\n        hide\n    end\n    if <(level) = [2]> then\n    end\n    if <(level) = [3]> then\n    end\n    if <(level) = [4]> then\n    end\n    if <(level) = [5]> then\n        show\n        go to x: (0) y: (-2)\n    end\n    if <(level) = [6]> then\n    end\n    if <(level) = [7]> then\n        hide\n    end\n    if <(level) = [8]> then\n    end\n    if <(level) = [9]> then\n    end\nend\n\nwhen I receive [promote v]\nhide\n\n@crown\n\nwhen flag clicked\nhide\nwait until <(level) = [9]>\nshow\nset size to (50) %\npoint in direction (98)\ngo to x: (167) y: (-68)\n\nwhen flag clicked\nforever\n    wait (0.01) seconds\n    next costume\nend\n\nwhen I receive [promote v]\nshow\ngo to [front v] layer\npoint in direction (99)\ngo to x: (-14) y: (108)\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait until <(level) = [7]>\nshow\ngo to x: (-19) y: (-58)\nrepeat until <(level) = [8]>\n    repeat (25)\n        move (11.6) steps\n    end\n    repeat (25)\n        move (-11.6) steps\n    end\nend\nhide\n\n@love and fave\n\nwhen flag clicked\nhide\nwait until <(level) = [10]>\nshow\n\n
Hello everyone and welcome to my chess platformer!\nINSTRUCTIONS IN GAME\nI am an avid chess player and I enjoy playing it very much. So I decided to come up with this game that everyone can play. \nPlease love and fave if you like chess!\n