Forum Topic: Depth in game [AS3]

(90 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

kizza0

Reply To Post Reply & Quote

Posted at: 10/5/09 10:47 AM

kizza0 NEUTRAL LEVEL 08

Sign-Up: 10/13/07

Posts: 276

What would be an algorithm to order the display list of objects according to their y-position.
Im not asking for you to write me out the code, if anything just an idea.

BOOM HEADSHOT

BBS Signature

None

UnknownFury

Reply To Post Reply & Quote

Posted at: 10/5/09 10:57 AM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

Stick the MCs to be sorted in an array and the use some sort of sorting algorithm.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

henke37

Reply To Post Reply & Quote

Posted at: 10/5/09 11:06 AM

henke37 NEUTRAL LEVEL 23

Sign-Up: 09/10/04

Posts: 3,660

I would steal the code sample for ordering based on the z axis in the help files and replace the property name.

Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.


None

kizza0

Reply To Post Reply & Quote

Posted at: 10/5/09 08:27 PM

kizza0 NEUTRAL LEVEL 08

Sign-Up: 10/13/07

Posts: 276

At 10/5/09 11:06 AM, henke37 wrote: I would steal the code sample for ordering based on the z axis in the help files and replace the property name.

Uhhh, help files? Do you mean the ones withing flash, Ill try search it anyway.

BOOM HEADSHOT

BBS Signature

None

henke37

Reply To Post Reply & Quote

Posted at: 10/6/09 03:20 AM

henke37 NEUTRAL LEVEL 23

Sign-Up: 09/10/04

Posts: 3,660

Yup, the cs 4 help files.

Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.


All times are Eastern Standard Time (GMT -5) | Current Time: 09:54 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!