The Daily Click ::. Forums ::. Klik Coding Help ::. Some Questions
 

Post Reply  Post Oekaki 
 

Posted By Message

cosbish



Registered
  07/12/2006
Points
  26
24th December, 2006 at 00:33:38 -

I have been recently trying to add custom platform movement into my MMF game. I have a few problems, though.

I am unable to correctly configure the animations (falling, jumping, walking, etc) to match the movements. The built-in platform movement did this, and I have tried to match up animations with certain actions, but often the player is running in midair or moving while displaying the "standing still" animation.

Also, I am having difficulty with slope movement. The engine has a slope loop but it's very bumpy when I walk up hills and when I go down slopes, I seem to be just falling minimally each step rather than descending the slop itself. As a result, it is hard to jump while moving down a slope.

I am wondering if someone could assist me in figuring out what I am doing wrong. I am still using the trial version (which never ended, for some reason) and so I cannot download and install the bonus pack that has the platform extension. Would it be possible for someone to send me platform.cox? It's not that I'm unwilling to spend the money, I just would prefer to see if the extension suits my needs before I go out and spend 200 bucks just to try it.

Thanks for your help.

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
24th December, 2006 at 01:14:02 -

Hmm... it's a good point about wanting to try it, but sending the bonus pack extensions around is a bit illegal. I can tell you that the Platform Movement Object does improve immeasurably over the default one, and while it's not as flexible as a fully custom movement, it's more than satisfactory.

Animations are a slightly difficult thing to get right... it may help to store some idea of the player's current "state" in an alterable value so that you can detect what the player input has been recently. This is how I'm doing it...

NEGATE Player is holding Right
NEGATE Player is holding Left
Player is standing on a backdrop (i.e. the detector object that I've placed below the player is overlapping a backdrop)
-> Animation is Stopped.

Player is holding Left
Player is standing on a backdrop
-> Animation is Walking, direction Left

(Same idea for Right)

Set a flag/alterable value when the player jumps, and test against this to tell when the player's in midair - then check against the value you're using for the player's gravity to check whether it should be jumping or falling, and so on.

Slope movement's rather tricky - you would probably need detectors below the player to test whether it should attempt to move down a slope, or whether there's no slope there and it should just fall.

I've got a tutorial on custom platform movement coming out soon, so hopefully I'll have some more coherent answers then.

(Also, $200? MMF2 Standard is $119.)

 
http://www.davidn.co.nr - Games, music, living in America
   

Post Reply



 



Advertisement

Worth A Click