It might be due to fault in computer graphics world that's not recommended for the game that makes the script working imperfectly. Glitches in a platform game may show error of invisible wall collision errors, sprite errors, freezes, image problems, and others.
So all you have to check your hardware and re-install graphics drivers can fix your problem. Also have a look to game requirements for running on PC platform and can fix your error.
If you are unable to fix this problem even if Graphic drivers are up-to-date. Then best and easy solution is to use Intel Software Partner Reginout.