The Daily Click ::. Forums ::. Klik Coding Help ::. Momentum/friction giving me problems
 

Post Reply  Post Oekaki 
 

Posted By Message

aphant



Registered
  18/05/2008
Points
  1242
10th February, 2009 at 21:32:13 -

Press Num 2. Run around big empty area. Left, right, right, left. It stops when turning and its not supposed to. Running in one direction and then letting friction kick in for a second before continuing in that direction makes it run slower, also not supposed to.

Commented MFA: http://www.pfordee.com/psychophan7/alpha_zero/engine%20borked.mfa

Sorry for incoherence. Nausea + sleepy = omghavetogetoffcomputerasap.

 

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
10th February, 2009 at 22:23:20 -

These are the changes I made and now things work better, maybe not perfect but I have homework due in 45 min.

http://www.mediafire.com/download.php?m4nmyidltmj

The 4 lines above the red line of code, changed it to this:

+Repeat when player holds right
+ X Repeat when player holds left
+ Other lines

So include the not negative inside the condition. If that made any sense.

I haven't used fastloops in a while since I haven't really used MMF in a while, but I'm thinking that if you moved 1 pixel at a time inside your fasloops instead of that long abs() whatever equation, it would end up more pixel perfect.



 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click