I have seen many strange things happen when trying to program a scrolling system. I am not sure that this is one of them; and even it if was, I would be able to say for sure what is causing it. It could be something as simple as what 'collideGroundY-y' evaluates to and the movement caused by line 26 of the MegaMan X animation code. It could be something like a wrong condition or value somewhere that would almost be impossible to find.

