The Daily Click ::. Forums ::. Klik Coding Help ::. Moving Platforms with the Platform Movement Object?
 

Post Reply  Post Oekaki 
 

Posted By Message

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
23rd May, 2009 at 23:58:28 -

I know I've been asking a lot of seemingly stupid questions but I can't for the life of me get them to work smoothly especially when scrolling vertically at the same time. Does anyone have a working example of this? I also want the player to be able to jump through them and down through them by holding down.

Thanks in advance.

 
Image

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
24th May, 2009 at 01:05:43 -

hmm, this question come up about once a month, lets see if i can find the older posts.

 
-

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
24th May, 2009 at 01:07:57 -

here's an artical:
http://www.create-games.com/article.asp?id=1979
and here's an open source game with moving platforms:
http://www.create-games.com/download.asp?id=7308
and another
http://rickygames.googlepages.com/ladders.zip


Edited by Ricky

 
-

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
24th May, 2009 at 01:24:12 -

I left out one important detail. I'm using the platform movement object. Thanks for finding examples, though.

 
Image

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
24th May, 2009 at 01:44:08 -

I think the article will still work with pmo

 
-

Billybobjoe198



Registered
  12/01/2007
Points
  221
24th May, 2009 at 02:45:00 -

If you're using MMF 1.5 I can make one real quick. Cause I'm too cool to upgrade.

 
n/a

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
24th May, 2009 at 04:06:34 -

I'd like to see it, thanks.

 
Image

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
24th May, 2009 at 04:19:25 -


Originally Posted by Billybobjoe198
If you're using MMF 1.5 I can make one real quick. Cause I'm too cool to upgrade.



You're only too cool to upgrade if you still use TGF1. MMF1.5... you're just being silly.

 

  		
  		

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
24th May, 2009 at 04:48:31 -

And if someone has a example from the article working I'd like to see that too. Again, I must be missing some as I keep falling through the platform even with that code.

 
Image

MrPineapple

the fruitiest word i know

Registered
  14/10/2008
Points
  1449

VIP Member
24th May, 2009 at 18:19:41 -

make sure your player doesnt have the built in platform movement still set... thats the mistake i made

 
i am STILL a talking pineapple!

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
24th May, 2009 at 19:09:20 -

No, I'm using the platform movement object.

 
Image

MrPineapple

the fruitiest word i know

Registered
  14/10/2008
Points
  1449

VIP Member
24th May, 2009 at 20:20:38 -

yeah well i had both at one point, which is why my player fell through moving platforms.. took me ages to work out what was wrong

 
i am STILL a talking pineapple!

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
24th May, 2009 at 20:24:36 -


Originally Posted by OldManClayton

Originally Posted by Billybobjoe198
If you're using MMF 1.5 I can make one real quick. Cause I'm too cool to upgrade.



You're only too cool to upgrade if you still use TGF1. MMF1.5... you're just being silly.



Isn't MMF1.5 just a less stable version of tgf, with a bunch of extensions?

 
-

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
24th May, 2009 at 20:57:30 -


Originally Posted by MrPineapple
yeah well i had both at one point, which is why my player fell through moving platforms.. took me ages to work out what was wrong



Ah. I have nothing set to the player object. Just the PMO. Does anyone have a working example of moving platforms that you can jump through?

 
Image

Jess Bowers

Cake > Pie

Registered
  09/01/2009
Points
  310

Has Donated, Thank You!GOTM FEB - 2010 - WINNER!GOTW Winner!
26th May, 2009 at 21:07:55 -


Originally Posted by Smirnoff
Does anyone have a working example of moving platforms that you can jump through?



Hey Smirnoff,

Assault Andy, one of the administrators on this site, is very talented with the Platform Movement Object. He developed a core engine for our game, Captain Plokey, using the PMO. He also wrote one of the very first tutorials on the PMO back in 2003:

http://www.clickteam.info/kb/start/index.php?showtopic=190

As for an example, I took Andy's core engine for Captain Plokey and inserted the graphics I created for my Custom Platform Movement engine. I also organized the code using the same system I had in the CPM engine:

http://jessandmichelle.com/files/plokey/PlatformMovement-PMO-AssaultAndy.mfa

This engine includes most of the features you'd want in a basic platform engine:
Walking
Jumping (variable height)
Springs
Conveyors
Vertical Moving Platforms
Horizontal Moving Platforms
Slopes (via the PMO)

If you want more advanced features (e.g. ladders, etc.), you may be able to strip some of them from my CPM engine (or others) and (with some modification) insert them into the PMO engine. Here's the CPM engine I'm working on:

http://www.create-games.com/project.asp?id=1571


 

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
27th May, 2009 at 07:13:46 -

I appreciate your examples, however they all suffer from my problem as well. As soon as you add in vertical scrolling, everything becomes jittery.

 
Image

Jess Bowers

Cake > Pie

Registered
  09/01/2009
Points
  310

Has Donated, Thank You!GOTM FEB - 2010 - WINNER!GOTW Winner!
27th May, 2009 at 15:56:46 -

That may be a problem with your camera. How are you scrolling the screen? Are you following the sprite or do you have a separate camera object?

 

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
27th May, 2009 at 17:32:16 -

I do not have a separate camera object yet, however I wouldn't think I would need one for simple smooth scrolling. I have edited the examples you gave me to include vertical scrolling and they have the same jittering effect.

See here: http://DIExero.googlepages.com/Plokey-vert.mfa

And here: http://DIExero.googlepages.com/pmo-with-vert.mfa



 
Image

Jess Bowers

Cake > Pie

Registered
  09/01/2009
Points
  310

Has Donated, Thank You!GOTM FEB - 2010 - WINNER!GOTW Winner!
27th May, 2009 at 22:29:08 -

Yeah, that's a camera problem. If I get permission from the developer, I'll post an updated version of the pmo-with-vert.mfa and show you how the camera corrects that issue. I'll let you know when I get permission (since its not my code).

 

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
28th May, 2009 at 02:37:05 -

I would greatly appreciate that. I will credit you and the developer for your help.

 
Image

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
28th May, 2009 at 02:50:46 -


Originally Posted by Ricky

Originally Posted by OldManClayton

Originally Posted by Billybobjoe198
If you're using MMF 1.5 I can make one real quick. Cause I'm too cool to upgrade.



You're only too cool to upgrade if you still use TGF1. MMF1.5... you're just being silly.



Isn't MMF1.5 just a less stable version of tgf, with a bunch of extensions?



Far from it. I think you're thinking of CNC. MMF 1.5 was drastically different from TGF1... even more so than MMF2 is I'd say.

 

  		
  		

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
28th May, 2009 at 04:39:50 -

I find it funny how you're having a conversation completely outside the topic of this thread.

 
Image

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
28th May, 2009 at 05:40:53 -

CNC was just a super expensive version of TGF i thought

 
-

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
28th May, 2009 at 13:05:08 -


Originally Posted by Ricky
CNC was just a super expensive version of TGF i thought



Yep. Pretty much. MMF 1.5 wasn't a release of TGF with extensions, CNC was. Then they added support for CNC extensions in TGF1, if I remember correctly... MMF 1.5 was a completely separate program.

 

  		
  		

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
28th May, 2009 at 21:27:48 -

MMF 1.5 isn't that old, is it? KNP->TGF->CNC=MMFE->MMF->MMF1.5->TGF2/MMF2/MMF2D
Settled.

 
Image
   

Post Reply



 



Advertisement

Worth A Click