Page 1 of 1

Someone please help :o

PostPosted: Wed Dec 01, 2010 10:12 pm
by Hblade
I've been working on stuff too long with code today lol, I cant figure out my collision error O__o

Problem is, he lags when moving at a horrifying manor :O

Re: Someone please help :o

PostPosted: Wed Dec 01, 2010 10:16 pm
by skydereign
The problem is you are using xvelocity for movement. The two fixes are either use x+= instead of xvelocity, or in the collision PhysicalResponse, do this.
Code: Select all
double xvel = xvelocity;
// PhysicalResponse
xvelocity=xvel;

Re: Someone please help :o

PostPosted: Wed Dec 01, 2010 10:52 pm
by Hblade
thanks so much :D