Layer switching

Skeeveo

  • Posts: 4
Is it possible to have multiple layers on top/bottom of each other? For examples sake, I have created a megaman battle network clone. The issue is, I want to have the actor be in front when walking in front, and behind when walking behind.

Is there a way to do this in stenycl or does it need to be programmed in? If so, how would I go about doing so?

Photon

  • Posts: 2697
In the behavior palette under Actor >> Draw, there are blocks for working with z-order.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

TheIndieStation

  • *
  • Posts: 2259
Compare the Y position of the actors. The one who has the lower Y value should be a layer below the other.

Skeeveo

  • Posts: 4


Code for this to work. Works great, thanks.