Chess Platformer

Instructions: WASD keys to Move\nMore instruction inside\nAll levels are possible\nCheck out my other games @PolarFalcon and in FalconCode studio.\n\nLeave a ❤️ and ⭐!\n\nFollow FalconCode studio and view the projects!\n\n

@Stage\n\n@Player\n\nwhen flag clicked\nset [bnl v] to [0]\ngo to x: (-220) y: (-100)\npoint in direction (90)\nswitch costume to (costume1 v)\nshow\nswitch backdrop to (level 1 v)\nforever\n    if <touching color (#ffe900)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#00cc10)?> then\n        broadcast (BNL v)\n        set [bnl v] to [1]\n    end\n    if <touching color (#404040)?> then\n        set [yv v] to [0]\n        go to x: (-220) y: (-100)\n        set [xv v] to [0]\n    end\n    if <key (d v) pressed?> then\n        change [xv v] by (0.7)\n    end\n    if <key (a v) pressed?> then\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((xv) * (0.9))\n    change x by (xv)\n    if <touching color (#ffffff)?> then\n        change y by (1)\n        if <touching color (#ffffff)?> then\n            change y by (1)\n            if <touching color (#ffffff)?> then\n                change y by (1)\n                if <touching color (#ffffff)?> then\n                    change y by (1)\n                    if <touching color (#ffffff)?> then\n                        change y by (1)\n                        if <touching color (#ffffff)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <key (w 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 [9]\n                            else\n                                set [xv v] to [0]\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 (#ffffff)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffffff)?> then\n        if <key (w v) pressed?> then\n            set [yv v] to [12.5]\n        end\n    end\n    change y by (1)\n    if <(x position) > [235]> then\n        go to x: (-220) y: (-100)\n        broadcast (NX v)\n    end\nend\n\nwhen I receive [end v]\nswitch costume to (costume1 v)\nrepeat (7)\n    wait (0.5) seconds\n    next costume\nend\nwait (1) seconds\nstop [other scripts in sprite v]\nswitch backdrop to (animation v)\ngo to x: (-142) y: (-130)\npoint in direction (120)\nwait (0.5) seconds\nglide (0.3) secs to x: (172) y: (78)\nwait (1) seconds\npoint in direction (90)\nglide (1) secs to x: (210) y: (-135)\nnext costume\nwait (2) seconds\nbroadcast (CKM v)\nhide\n\nwhen I receive [nx v]\nnext backdrop\ngo to x: (-220) y: (-100)\n\nwhen I receive [bk v]\nif <(backdrop [number v]) > [2]> then\n    go to x: (-220) y: (-100)\n    switch backdrop to ((backdrop [number v]) - (1))\nend\n\nwhen I receive [bnl v]\nswitch backdrop to (blevel1 v)\ngo to x: (-220) y: (-100)\n\nwhen I receive [end2 v]\nswitch costume to (costume1 v)\nstop [other scripts in sprite v]\nhide\n\n@Assets\n\n@board\n\nwhen flag clicked\ngo to x: (190) y: (135)\nshow\nswitch costume to (costume1 v)\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (END v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [nx v]\nif <(costume [number v]) < [7]> then\n    next costume\nend\n\nwhen I receive [bk v]\nif <[1] < (costume [number v])> then\n    switch costume to ((costume [number v]) - (1))\nend\n\nwhen I receive [bnl v]\nswitch costume to (costume8 v)\ngo to x: (180) y: (135)\n\nwhen I receive [end2 v]\nhide\n\n@Black king\n\nwhen I receive [end v]\nwait (5.5) seconds\nshow\nswitch costume to (costume1 v)\nwait (0.5) seconds\nnext costume\nrepeat (6)\n    next costume\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nhide\n\nbroadcast (END v)\n\nwhen I receive [ckm v]\nhide\n\n@PolarFalcon Logo\n\nwhen I receive [ckm v]\nswitch costume to (polarfalcon logo v)\nset [ghost v] effect to (100)\nset size to (300) %\nswitch costume to (polarfalcon logo v)\nshow\nset [brightness v] effect to (0)\ngo to [back v] layer\ngo to x: (0) y: (0)\nwait () seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change [brightness v] effect by (2)\nend\nwait () seconds\nrepeat (20)\n    change [brightness v] effect by (-2)\nend\nwait (1) seconds\nset size to (100) %\nnext costume\n\nwhen flag clicked\nhide\n\n@SKIP\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2.5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(BNL) = [0]> then\n    set size to (105) %\n    wait (0.1) seconds\n    set size to (110) %\n    wait (0.1) seconds\n    broadcast (NX v)\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nset [bnl v] to [0]\n\nwhen I receive [stn v]\nshow\n\nwhen I receive [-stn v]\nhide\n\nwhen I receive [end v]\nhide\n\nwhen I receive [bnl v]\nswitch costume to (costume2 v)\n\nwhen I receive [end2 v]\nhide\n\n@Settings\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    set size to (105) %\n    wait (0.1) seconds\n    set size to (110) %\n    wait (0.1) seconds\nend\nif <(OPT) = [0]> then\n    broadcast (STN v)\n    set [opt v] to [1]\n    switch costume to (costume2 v)\nelse\n    broadcast (-STN v)\n    set [opt v] to [0]\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        if <(mouse x) < [-190]> then\n            if <(costume [number v]) = [1]> then\n                repeat until <(size) = [110]>\n                    change size by (2.5)\n                end\n            else\n                repeat until <(size) = [100]>\n                    change size by (-5)\n                end\n            end\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n            end\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nset [opt v] to [0]\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nwhen I receive [end2 v]\nhide\n\n@BACK\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (2.5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(BNL) = [0]> then\n    set size to (105) %\n    wait (0.1) seconds\n    set size to (110) %\n    wait (0.1) seconds\n    broadcast (BK v)\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nset [bnl v] to [0]\n\nwhen I receive [stn v]\nshow\n\nwhen I receive [-stn v]\nhide\n\nwhen I receive [end v]\nhide\n\nwhen I receive [bnl v]\nswitch costume to (costume2 v)\n\nwhen I receive [end2 v]\nhide\n\n@?\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [stn v]\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [-stn v]\nhide\n\nwhen I receive [end v]\nhide\n\nwhen I receive [end2 v]\nhide\n\n@Black king2\n\nwhen I receive [end2 v]\nwait (1) seconds\nshow\nswitch costume to (costume8 v)\nwait (0.5) seconds\nnext costume\nrepeat (6)\n    next costume\n    wait (0.1) seconds\nend\nbroadcast (SHN v)\nwait (5) seconds\nswitch backdrop to (animation v)\nbroadcast (CKM v)\n\nwhen flag clicked\nhide\n\nwhen I receive [ckm v]\nhide\n\nwhen backdrop switches to [an2 v]\nbroadcast (END2 v)\n\n@Shine\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [shn v]\nshow\nrepeat (155)\n    turn right (2) degrees\nend\nhide\n\n