I didn't do anythink just enable-disable 8Direction.
My sprite why going invisible area?
First check out your z order, if that did not do anything then move sprite to another layout, and be sure the layout is the second or the first of the order of your layouts.
Develop games in your browser. Powerful, performant & highly capable.
This is not Z order problem
I have fix with delete 8direction and I use bullet behavior