The Daily Click ::. Forums ::. Klik Coding Help ::. Custom platform engine woes (MMF)
 

Post Reply  Post Oekaki 
 

Posted By Message

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
25th February, 2007 at 14:56:49 -

I've got a potentially great but buggy platform engine. I took a lot of things from DavidN's platform tutorial on CT's website and added numerous things of my own. The good:

- Bottom detectors only. No need for top of left and right detectors.
- Springboards of varying heights.
- Fans (horizontal ones haven't been implemented yet because they seem to be buggy).
- Hanging from and pulling yourself onto ledges.
- Nearly pixel-perfect collision detection.

The bad:

- Slopes don't work at [i]all[/i] unless you're consistently moving up them.
- Horizontal fans weren't working so well, so I scrapped them for now.
- Sometimes, particularly after being blown by a fan, the character falls into the ground. I have an event to pull him out on a loop, but it's still noticable.
- Probably some minor bugs.

Open-source, as I intend to release the engine as open source one day anyway:

http://www.geocities.com/stevethehero/RunRunGoGo3.zip

Anyone who can give any advice would be greatly appreciated.

Also, it needs MMF2. Sorry, forgot to specify.

Image Edited by the Author.

 
If wishes were fishes then we'd all smell like ladies' underwear.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14444

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
25th February, 2007 at 19:13:42 -

Phizzy has been helping me make a solid engine, and i had trouble with ramps for a long time, got them working now though.

I have a theory that the lack of side detectors is messing up your ramps. I couldn't figure out how side collisions worked in your game but maybe your game is treating the ramps like they are walls?

I looked at the events and my brain closed down, i'm a bit of noob at these fastloop things.

 
.

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
25th February, 2007 at 19:17:34 -

I hate slopes.

 
n/a

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
25th February, 2007 at 19:26:52 -

The engine detects if the player is overlapping a backdrop while moving left or right, and if so, pushes the player out accordingly.

 
If wishes were fishes then we'd all smell like ladies' underwear.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14444

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
25th February, 2007 at 19:42:06 -

Actually taking another look, this is rather similar to the one i'm working on. Only a little more complex.

I think you might want to add some side detectors to see if that helps.

 
.

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
25th February, 2007 at 20:16:11 -

Hit "D" while it's running and you'll see what detectors I do have. There are four slope detectors - they just don't work worth a damn.

 
If wishes were fishes then we'd all smell like ladies' underwear.

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
26th February, 2007 at 03:16:43 -

The way I handle slopes is to have right and left detectors that don't reach all the way down. The player can't move left if the left detector is overlapping an obstacle, or right if the right detector is overlapping an obstacle. Fiddle with the detector positioning, and combine it with ground pushup to make slopes work.

Nice engine so far.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
27th February, 2007 at 16:38:03 -

"Sometimes, particularly after being blown by a fan, the character falls into the ground. I have an event to pull him out on a loop, but it's still noticable"

If you put the unsink loop after the falling movement code you shouldn't see it sink at all.

 
n/a

JFrudy



Registered
  30/11/2006
Points
  103
27th February, 2007 at 17:28:36 -

use the platform movement object. it makes it about eight times easier

 
n/a

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
27th February, 2007 at 20:37:55 -

I like the satisfaction of making my own engine. Plus, it's infinitely more customizable. I could make things like reversible gravity and such. I'd rather use the Platform Object for enemies (as a last resort).

 
If wishes were fishes then we'd all smell like ladies' underwear.

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
27th February, 2007 at 21:22:56 -

You might. I haven't used it at all before. I [i]was[/i] using the default platform engine for enemies, which worked really nice (as long as you didn't make them jump).

 
If wishes were fishes then we'd all smell like ladies' underwear.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14444

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
27th February, 2007 at 22:52:51 -

Ive never used the PMO before, infact i had not used fastloops before my current engine. I'm hardcore.

 
.

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
28th February, 2007 at 00:04:14 -

Phizzy: I'm not sure. That's why I'm trying to do it all custom. I think the PMO might have a "jump" action - I remember in one of the examples that the AI was jumping.

 
If wishes were fishes then we'd all smell like ladies' underwear.

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
28th February, 2007 at 08:33:11 -

Tip: [tag] and [/tag] does nothing; It's HTML here. Like <tag> then </tag>.

Image Edited by the Author.

 
n/a

Bo Fu



Registered
  02/04/2004
Points
  413

VIP Member
28th February, 2007 at 16:31:14 -

I know. I mixed up one set of tags and can't edit the post. The link's done right though.

 
If wishes were fishes then we'd all smell like ladies' underwear.
   

Post Reply



 



Advertisement

Worth A Click