The Daily Click ::. Forums ::. Klik Coding Help ::. Custom platform movement issue
 

Post Reply  Post Oekaki 
 

Posted By Message

Ando



Registered
  08/04/2006
Points
  100
29th March, 2007 at 16:28:15 -

Okay, I'm confused. Horribly confused. I'm using DavidN's custom platform movement to create my own. It's been going great! Left and right movement, jumping, double jumping... good stuff.

Moving platforms, however, are biting my butt.

I don't understand it. I thought I had it right. I mean sure, I switched around a couple of things to suit my own needs (changing the variable range in jumping, for instance), but I wouldn't think it would mess up my moving platforms. I can land on the platforms, the platforms MOVE... but I don't move with them?
What's going on?

MY TEST LEVEL: http://www.banjoplanet.net/platformer.mfa

 
n/a

Matt Boothman

The Nissan Micra of forum members

Registered
  20/09/2002
Points
  109

Game of the Week Winner
29th March, 2007 at 16:55:31 -

Just set your character to move at the same rate as the platform, for example:

Always:
- Set platform to X(Platform) + 1

PlayerFeet overlapping platform
- Set player to X(Player) + 1

Obviously, playerfeet is the ground detector on your dude.

 
http://soundcloud.com/normbo - Listen to my music.

Ando



Registered
  08/04/2006
Points
  100
29th March, 2007 at 17:08:59 -

I just tried adapting that to my code. Didn't work.
Alterable variables + fastloops make my soul hurt sometimes.

 
n/a

Paul_James



Registered
  02/07/2002
Points
  1320
29th March, 2007 at 17:39:14 -

there's obviously something in the code that is making the ur player not move unless the arrow keys are pressed

hmm without the source i cant really help u out
but a wild swing at it

when the player's feet overlapp the moving platform
and is not moving
::::start loop "movin' platform"

on loop
:::::set x position+1

and if the platform is moving right and left, then just have two different loops one for right and left movement - then when the players feet overlapp the moving platform and is not moving (whatever value or event or whatever that is) - add and moving platform direction is right (or however u determine the direction ((not necessarily the animation direction))

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

Ando



Registered
  08/04/2006
Points
  100
29th March, 2007 at 17:43:38 -

I... included the source in my first post. You know, at the bottom. MY EXAMPLE FILE:

Anyway, just replying to say that I fixed it. It didn't hit me that the horizontal movement fastloop wasn't activated while being on the platform. So yeah, no worries.

 
n/a

Paul_James



Registered
  02/07/2002
Points
  1320
29th March, 2007 at 18:07:03 -

aahh theres always a solution

yea sorry about not noticing - not like i could open it - MMf1.5

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...
   

Post Reply



 



Advertisement

Worth A Click