Tile/Tilemap visibility odd glitch (Haxe + OpenFL) -


i took sprite sheet of 7 frames (character running animation) , put in tile array. strange reason, can toggle visibility of each frame (on or off) unless placed inside conditional (if/then), in case stays on scree though trace reveals visibility false. ideas why?

char[0].visible = false; //works!  s = 10; if (s > 2) {    char[0].visible = false; //trace's false, remains on screen } 


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -