The Daily Click ::. Forums ::. Klik Coding Help ::. Smoothing out custom platform movement
 

Post Reply  Post Oekaki 
 

Posted By Message

cake



Registered
  13/12/2002
Points
  1173
20th November, 2003 at 04:50:52 -

I have made a custom platform movement in MMF for a snowboarding game, and I just wanted to know people's methods for stopping the character from jittering up and down 1 pixel when on the ground.

The events I have for this look something like:

<Detector is overlapping backdrop>: Set Y Velocity("Player") to 0, Set Y position of ("Player") to Y Position of ("Player") - 1

Which pushes him up off the ground, but the gravity event pushes him back down again, which causes the player to bounce on the ground. How do I smooth this out?

 
n/a

renneF



Registered
  02/08/2003
Points
  672
20th November, 2003 at 05:02:15 -

If character is overlapping ground, start a loop 'push' if hes not, stop loop
Run loop push 1 or 2 times. I just made a custom movement using that and my character never goes through the ground

 
Image

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
20th November, 2003 at 15:05:25 -

Yeah, the best way is using fastloops

 
n/a

cake



Registered
  13/12/2002
Points
  1173
21st November, 2003 at 01:09:55 -

Cool, thanks!

 
n/a

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
21st November, 2003 at 07:34:57 -

use fastloop.

It works excellent for antisink.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click