aargh sorry im such a moron.I was struggling with the animations that did not want to initialize properly.I wanted the character to go into idle or stand mode once it reached or collided with a wall or a collision box.But the stand or idle animation did not respond when the sprite collided with the collision box.The reason for that was simple,I set it to 2 animations walk and idle instead of just setting the animation to walk.