The Daily Click ::. Forums ::. Klik Coding Help ::. Best way to make an adventure?
 

Post Reply  Post Oekaki 
 

Posted By Message

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
11th March, 2010 at 16:40:41 -

Whats the best way to make an adventure game?

Knytt stories-Untitled story-IWBTG-ish adventure, y'know; with lots of environment and stuff.

Is it best to have all the "rooms" in different frames? Or some in some frames or whatever??
'cause I've experienced lag if you have too much in one frame, even if you select the "ignore if too far from frame"...

So how do they do it? It has been bothering me =P

Edited by Solgryn

 
www.Solgryn.org

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
11th March, 2010 at 17:54:08 -

I thought Knytt Stories was (accidentally) open-source?
You can probably still find it somewhere and see exactly how it works.

I write all the code in just one MMF frame, but load the world from external files.

If you want smooth scrolling around the world, you have no choice but to put it all in one frame.
If you're happy to flick to the next room when the player walks off the edge of the screen, then you're probably better off loading the world one screen at a time (I think that's what Knytt Stories does).

It might be more efficient to break the world into "zones". For example, you could have one frame for an "arctic" zone - this would contain the code for a sasquatch enemy, slippery ice floors, etc but it would be used for several rooms.
By splitting your world up this way, you can keep the code a bit more simple (you're never going to need the code for a sasquatch in a desert zone).

 
n/a

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
11th March, 2010 at 20:26:32 -

I thought of doing it the "zone" way..

But when you say "external files" do you have some kind of loading system with .ini's or what??

 
www.Solgryn.org

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
11th March, 2010 at 21:18:12 -

If it's tile-based, an Array is probably more suitable than an Ini.
It does mean you have to make your own custom level editor as well, of course.

I think it depends on the scale of the game:

If you only have a small game-world, you can make it all in one frame (eg. Plasma Warrior).
If you have a medium-sized game-world, you might want to spread it across multiple frames.
If you have a really big game-world, it's probably easier to use external files (a custom level editor can be more efficient than using MMF's Frame Editor, so you'll save yourself some trouble in the long run).

 
n/a

Solgryn

Solgryn dot org

Registered
  20/12/2008
Points
  12572

GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
11th March, 2010 at 21:33:34 -

Well it's probably going to be tilebased..
but random stuff will happen along the way so I don't think a level editor would be good for the main game.

Does the "Inactive if too far from window" option help on lag? If there's alot of active objects in the world/level.
Or "load on call"?

 
www.Solgryn.org

Image

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
11th March, 2010 at 22:12:23 -

I think it depends if the slowdown is caused by graphics or events.
If you're using the HWA version and still have slowdown, then it's probably caused by events - in which case the options you mentioned might help.

I've never tried making such an epic game that I had trouble with slowdown though, so I don't know.
You might be able to code some things more efficiently too (eg. Running a lot of fastloops all the time).

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
14th March, 2010 at 16:03:31 -

I've tried both and I think for big games it's better if each room was a separate frame. Just make sure that when you go from room to room that your hero's X/Y values are updated correctly or else it'll be stupid.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click