collinhover/impactplusplus

zIndex not working?

Closed this issue · 3 comments

So I have two entities, a player and a sword.

Sometimes I need the sword behind the player, so I do:

swordEntity.zIndex = -10;
ig.game.sortEntitiesDeffered();

But it doesn't seem to do anything, what am I missing?

Several things:

I see. Well, I set the zIndex to -500 and it seemed to do the trick. =P

That's strange. I haven't had any z index issues, but I'm not sure why -500 would make a diff. Reopen this issue if you figure out anything else.