How do you put actors behind others?

ggiersdorf

  • Posts: 52
I have two actors on screen lets say a man and a bird. The man is the main character and bigger. The birds spawn later and just fly across the screen as eyecandy. However when the birds pass paths with the man the birds can be seen in front of the man. I want it to be behind and kind of vanish behind the man. Anyone have any ideas how to do this?

I checked in actor settings and properties but found nothing noting foreground or background.


SadiQ

  • Posts: 1795
The simplest solution would be to create a new layer in the scene editor and create or move your Man on the top layer to remain in front of everything.
Don´t go crazy with creating layers thou as you´ll slow things down if you have too many.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

dripple

  • Posts: 748
Use the [send [actor] to back] and [bring [actor] to front] to change the z-order.

For more details, have a look at the block reference:
http://static.stencyl.com/pedia2/blocks/actor/draw/layer.html
Sure, my games won't get better with all the new features of Stencyl.
But I do have more fun creating bad ones.


MayazCastle Keeper

ggiersdorf

  • Posts: 52
got it working but you need to make sure you have a second layer generated it seems.