The Daily Click ::. Forums ::. Klik Coding Help ::. Active Orders/Depths - MMORPG
 

Post Reply  Post Oekaki 
 

Posted By Message

Rasmus Knudsen



Registered
  21/10/2008
Points
  14
9th November, 2008 at 17:01:01 -

Hello TDC.
Iv been working hard to get an MMORPG engine up running a topdown 2d game.
So far its working great.

The problem is that i dont know how to work with Orders of the Actives.
I have alot of players on the screen and alot of objects they need to go behind and in front of.
I have also put all the objects in a Qualifier and all the players in a Qualifier, and now i want to make it so the all the players are shown in front of the objects when their Y-position is greater than the objects and visa versa.

Thanks in advance

Souley

 
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!
9th November, 2008 at 17:29:30 -

You can use the "Layer" object. It has a function for "decreasing y sort".

 
n/a

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
9th November, 2008 at 17:29:57 -

Did you try this?

Y value of Group.Player > Y value of Group.Object

- Move Group.Player in front of Group.Object


Where Group.Player represents the player objects you mentioned, and Group.Objects represents the objects you put in the other qualifier. It should work in theory...

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Rasmus Knudsen



Registered
  21/10/2008
Points
  14
9th November, 2008 at 18:17:17 -


Originally Posted by Sketchy
You can use the "Layer" object. It has a function for "decreasing y sort".



Thanks alot!! Didnt really know how to use the layer object but i just placed it in the frame and made an "Always" event sorting layers on Y-axis, and it sorted everything correctly

Thanks again

 
n/a
   

Post Reply



 



Advertisement

Worth A Click