The Daily Click ::. Forums ::. Klik Coding Help ::. RPG Front/Back system
 

Post Reply  Post Oekaki 
 

Posted By Message

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
2nd August, 2004 at 14:51:17 -

This is a simple yet very effective front/back organizing system that arranges the order of objects depending on thier Y position like in most 2D RPGs.

You can add more objects by just copying one of the organizing events and applying it to the other objects. I hope others currently working on an RPG find this useful.

http://www.sitesled.com/members/neonair/frontandback.cca

MMF 1.5 no ext

(Couldn't post this as an article cuz for some reason, the submit an article thing doesn't work)

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
2nd August, 2004 at 16:26:29 -

Alternatively, use the Layer object

 
n/a

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
2nd August, 2004 at 16:57:35 -

True, but if you use the layer object, it'll sort all active objects. With my engine, you can select what it sorts and leave out what it doesn't.

Edit: For example, you'd want a dialogue box to always be in the front. If you used the layer object to sort the objects, an NPC might be standing ontop of the dialogue box.

Image Edited by the Author.

 
n/a

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
2nd August, 2004 at 19:37:13 -

It could be done with an object qualifier to save some event copying and space. Also, try and save some RAM and avoid crashes by only making the objects change level when they need to, when the player or other objects overlap them and such.

 
http://www.fzgames.com

Kramy



Registered
  08/06/2002
Points
  1888
5th August, 2004 at 11:31:15 -

Yes, so after telling the layer object to sort, you tell it to move all the interface actives to the front.

 
Kramy

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
5th August, 2004 at 18:22:52 -

that would work... I prefer my own method though.

 
n/a

Teapot

Does he even go here

Registered
  02/10/2003
Points
  2631

VIP Member
5th August, 2004 at 18:23:46 -

Hilarious, and kudos to Pete for the Simpsons' line.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
5th August, 2004 at 21:59:14 -

Yo, I did just write an article on this.

 
n/a

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
6th August, 2004 at 07:30:08 -

sorry, I never saw the article.

Dung, I feel stupid now.

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
6th August, 2004 at 10:20:45 -

You're holding a 'I like dragons' sign and you feel stupid NOW?

 
n/a

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
6th August, 2004 at 10:37:47 -

I don't feel stupid at all about that!

I feel stupid that no body finds the engine useful.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click