The Daily Click ::. Forums ::. Klik Coding Help ::. MMF 1.5 and Basic Platform Charater Movement
 

Post Reply  Post Oekaki 
 

Posted By Message

JulianHaines



Registered
  27/11/2004
Points
  3
3rd January, 2005 at 17:26:13 -

Hi,

I am new to MMF and I am just putting together a simple platform movement system. I am currently having a problem comming up with a way of making the movement of the character speed up and slow down smoothly when moving left and right. What is the best programming way of doing this using MMF? I have checked the forums and no one seams to have asked this yet!

Thanks for your help

Joolz


 
JOOLZ

daveC04



Registered
  26/09/2004
Points
  163
4th January, 2005 at 07:13:39 -

you could try using the Platform Movement Object, that makes it nice and easy to add inertia to your movement. if you want to do it yourself, make an event something like

*repeat while arrow is pressed
+ value speed is less than 10

add 1 to value speed

that will make a value add up as you hold a direction, you can set the x position of the character to that value, or whatever. this is just the basic idea you'll have to tweak it a bit.

then to make the character slow down, just change the event to

*negate repeat while arrow is pressed

sub 1 to value speed

i think thats about it. word.

 
n/a

Blaz3R



Registered
  08/09/2004
Points
  193
4th January, 2005 at 12:18:56 -

im not sure what you mean, maybe a counter?

 
Image
   

Post Reply



 



Advertisement

Worth A Click