I'm trying to code a 2D platformer and am using a controller. Everything is working fine so far but when I tried to keep the character on the 2D plane, the controller didn't react as I expected it to (it got slow and more jittery). Here's the code.
UpdateController(player,270.0,move,0.0,jump,50);
pos=EntityPosition(player,1);
PositionEntity(player,Vec3(pos.X,pos.Y,0));
I take it PositionEntity and UpdateController don't get along. But maybe I'm just doing something wrong.
(These lines are just before UpdateFramework() and RenderFramework(), by the way.)
Thanks.
Edit: I tried putting it between Update and Render and also after both but neither worked.