The Daily Click ::. Forums ::. Klik Coding Help ::. Is there a better way to do this?
 

Post Reply  Post Oekaki 
 

Posted By Message

Pyro



Registered
  22/05/2003
Points
  110
22nd July, 2005 at 22:06:28 -

Im working on a side scrolling beatem up, like a double dragon type of game. Since you're moving up,down,left and right I need to have objects overlap each other the right way..However they dont.

I pretty much used the simplest way I could think of which was " Y position of Active1 greater than Y position of Active2, + Active1 is overlapping Active2 = Bring Active1 to front"

That works pretty good until more objects are on the screen and then it just ignores the command making it look all messed up.

Im almost positive there is a better way, can anyone help me?

Image Edited by the Author.

 
n/a

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
22nd July, 2005 at 22:19:38 -

cant you just right click the object and then use the 'to front', 'to back', forward one, back one???

 
n/a

Pyro



Registered
  22/05/2003
Points
  110
22nd July, 2005 at 22:34:28 -

Uh, I meant while you're actually playing the game not in the frame editor mode.

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
22nd July, 2005 at 23:11:20 -

The Layer object should be able to help you. It can layer objects by their y-position.
http://www.clickteam.info/extensions/extview.php?id=129

 
http://www.klik-me.com

Pyro



Registered
  22/05/2003
Points
  110
23rd July, 2005 at 01:58:07 -

Thanks man, you made my day.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
23rd July, 2005 at 09:29:42 -

There's also a good tip about naming your objects. "Fighter" is easier to understand than "Active1".

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click