Hi there :),

I am making a game where the entity is able to make transition from run state (entity is moving) to slide state (entity is sliding the floor and slowing down). These states should have different size to be able to slide below obstacles.

I tried to change the size of entity on the fly and then I realized that I have to tweak the position too, but this resolve to some odd glitches. Entity has jumped to unwanted places, etc...

Is there a way to change entity's size during the game and preserve the parameters like accel and vel?

Thanks...

EDIT:

Ok, I figured it out. I forgot to set back the pos.y parameter after the slide and collision system have handled it in own way :).