Drawing Order [Answered]

Luyren

  • *
  • Posts: 2805
Check the attached image:

With this setup, I'd expect that:
1- It first draws the image of the actor, then the attribute, then that hardcoded text, then layer ID and finally the number attribute. In case any of these overlap with each other, I'd expect the image of the actor to be drawn below everything, and all the text above it, as it is in 2.X

What happens now is that the image of the actor is above all others, regardless of where I put the "draw image of actor" block.

« Last Edit: October 25, 2012, 05:24:51 pm by Jon »
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Jon

  • *
  • Posts: 17524
Yes, this is currently the case due to way that custom drawing is implemented. It's quite a complicated affair since the drawing pipeline is so different from Flixel.

ShivaFang

  • Posts: 248
Semi-related so adding here instead of making a new thread;
  Draw image for [actor] also currently does not apply effects on the actor to the drawn image (which makes the main method I use for rendering shadows completely ineffective)

It also makes 'pseudo-3d' rendering with effected actors (that is to say, actors that are 'affected' with an 'effect')

EDIT:  Test game attached - drag the circle on the left to the circle on the right - the moved circle will change colour and render itself onto the other circle, but the drawn image will not change colour.

ALSO - The 'drawn' actor had 'set opacity to 50%' before it - which used to apply to apply when using draw image for [actor] but does not in 3.0 yet.

This is the beginning of a new project I'm working on and I just switched to 3.0 after finishing my last one on 2.x so publishing a test game of what I already had was easy.

« Last Edit: October 26, 2012, 08:59:55 pm by ShivaFang »
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!