Skip to main content
August 8, 2008
Question

Flash AS3 - 3D engine help - masks & layers

  • August 8, 2008
  • 1 reply
  • 338 views
I am trying to create an AS3 3D engine, it has gone well so far, but I am slightly stuck with how to make my character move 'behind' and object (eg. so if he walks behind a box, you can't see his legs). He must also be able to walk in front of the object.

The character has a variable z axis, so it is impossible to define exactly which objects will be in front or behind the character.

It would be useful if I could do it without the use of layers, but not neccessary. Any ideas?

thanks in advance.
This topic has been closed for replies.

1 reply

Inspiring
September 29, 2008
you wanted to say: "The character has a variable z axis, so it is possible to define exactly which objects will be in front or behind the character."

the objects must be in the same layer and U can control the order with swapDepths