Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Ayalaskin

Hello.

I have a talk chat with text, and I have some entities that falls from the sky.
The problem is, the text is being drawn in front of the falling objects.

There is some way to set the zindex for texts?
Ty.

1 decade ago by Arantor

Nope. The canvas is, quite literally, like a canvas. Once you paint on it, anything you paint after will be drawn on top of it.

Move the calls to draw the text to later in the draw() routine.

1 decade ago by Graphikos

Yep, what he said. Most commonly you need to move the this.parent() call so it draws things before your text rather than after.
Page 1 of 1
« first « previous next › last »