Page 1 of 1

My character keeps nudging

PostPosted: Sat Sep 25, 2010 4:14 am
by Waluigiftw
Hello everyone
I just want to say this now: im a total noob at game making
anyway i need some help. whenever my main character stops moving he keeps nudging to the left or right just by a small amount but its really annoying.
i dont REALLY need to fix this id just like to know why it does that. if it can be fixed plz tell me how. :roll:
ive got the event to repeat while colliding and its only on the top side heres the picture :arrow:

Re: My character keeps nudging

PostPosted: Sat Sep 25, 2010 4:42 am
by DST
You have to take his energy away...

player>draw actor>
Code: Select all
directional_velocity*=.99; //slows him down (basic friction)
if(directional_velocity<0.1){ //stops him if he is close to not moving at all)
directional_velocity=0;
}

Re: My character keeps nudging

PostPosted: Sat Sep 25, 2010 11:55 pm
by Waluigiftw
Thank you sooooooo much its working ... no nudging!!
If you'd like to see the finished version (idk when itll be finished)
check out my site
http://www.macheeseygames.webs.com