Someone please help :o

Non-platform specific questions.

Someone please help :o

Postby Hblade » Wed Dec 01, 2010 10:12 pm

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
Attachments
Mage.zip
(31.57 KiB) Downloaded 61 times
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Someone please help :o

Postby skydereign » Wed Dec 01, 2010 10:16 pm

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;
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Someone please help :o

Postby Hblade » Wed Dec 01, 2010 10:52 pm

thanks so much :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest