The Daily Click ::. Forums ::. Klik Coding Help ::. Platformer woes
 

Post Reply  Post Oekaki 
 

Posted By Message

Duncan

Thelonious Dunc

Registered
  18/05/2002
Points
  552

VIP Member
10th December, 2010 at 16:43:01 -

Image

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
10th December, 2010 at 16:45:12 -

I think you're going to want to be a little more specific...

 
n/a

Dogzer



Registered
  07/02/2011
Points
  1029
10th December, 2010 at 16:50:02 -

he's asking about moving platforms! don't you get it?????

 
n/a

Duncan

Thelonious Dunc

Registered
  18/05/2002
Points
  552

VIP Member
10th December, 2010 at 17:06:03 -


I think you're going to want to be a little more specific...



Very well. A couple of days ago I started putting together what was supposed to be a quick and dirty platform engine. Things haven't really worked out, and while I probably ought to move back to what I know, I don't really want to be beat!

It's of the style where no horizontal collisions are necessary at all, except where the player moves up or down (single pixel max. gradient) slopes - we just stop him falling when he lands on some ground.

My first version used no detectors, just single-pixel collision masking (quick and dirty, remember?). I had it bug-free in about a half hour, fairly versatile too, could easily make up for the limited collision width by adding ghost edges to obstacles. (To elaborate: I'm just testing player X,Y and X,Y+1 or something under a range of conditions.)

I want moving platforms though and this seems to be really hard to implement without starting from scratch. I can, of course, start from scratch. I've actually started from scratch many times but haven't arrived at a solution I particularly like. I've made platform engines before, of the detector-based, head-bumping, sides-bumping, no-slopes kind, with platforms that float all over the show, but I'm rusty as hell and I just can't get things right at the moment.

Anyone got any bright ideas? I'm just talking the general theory of this kind of engine in TGF. I'm using the Newgrounds edition, so no extensions.

Edited by Duncan

 
n/a

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
10th December, 2010 at 17:09:01 -

Image

 
n/a

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
10th December, 2010 at 17:13:04 -

On a serious note, why not try looking up the engines Phizzy and David Newton made - I am sure one of them has moving platforms working quite well.

Dont have to use their engine but the method idea could be borrowed

Edited by an Administrator

 
n/a

Duncan

Thelonious Dunc

Registered
  18/05/2002
Points
  552

VIP Member
10th December, 2010 at 17:18:27 -

Image

 
n/a

Duncan

Thelonious Dunc

Registered
  18/05/2002
Points
  552

VIP Member
10th December, 2010 at 21:32:55 -

Never mind guys, I think I just needed a whinge before putting together a bad hack that does the job just fine.

Thanks anyway and feel free to use this thread to draw pictures of your platformer woes.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click