Page 1 of 1

Canvas/draw_from bug

PostPosted: Fri May 11, 2007 3:53 am
by Fuzzy
Make a canvas, make an actor and use draw_from to draw him onto the canvas. set both actors z draw to 0.0.

make another actor and set it directly over the canvas(and the drawn part). give him a positive yvelocity and enter game mode. he always be drawn behind the canvas actor, no matter what his Z draw is.

canvases

PostPosted: Fri May 11, 2007 6:21 am
by kyensoftware
Canvases don't have z orders, and never did.
Sorry :cry:

PostPosted: Fri May 11, 2007 12:27 pm
by morcior
zorder on canvas for me has always worked...

eg I've drawn a starfield in the background for a space game that worked using a canvas actor in the background. I used a background canvas to draw the ropes in ropeman too.

it may help to erase your canvas with 0 alpha in its draw event maybe.

Code: Select all
erase(0,0,0,1);

PostPosted: Fri May 11, 2007 2:40 pm
by Fuzzy
Thanks for the suggestion, but no it didnt work! Investigating further. I too have done z depth work with canvas in the past.

PostPosted: Fri May 11, 2007 2:42 pm
by Fuzzy
It looks like implicitly setting z depth in code doesnt alleviate the problem. this may be a genuine bug.

PostPosted: Fri May 11, 2007 11:33 pm
by Game A Gogo
ok, a mini may be implied here, did you touched the Z order of the overlapping actor?

sometimes, when you do not touch the Z slider, it can screw up the Z depth, happened to me before.

PostPosted: Sat May 12, 2007 1:15 am
by Fuzzy
I've moved the z depth of all the actors to all sorts of combinations.

Re: canvases

PostPosted: Sat May 12, 2007 1:38 am
by kyensoftware
I wrote:Canvases don't have z orders, and never did.
Sorry :cry:

It has never worked.
I have the old 1.3.4 ver.
It does not work.
not even on normal canvases.

PostPosted: Sat May 12, 2007 1:39 am
by Game A Gogo
Then, I am clueless.