Well...how to say this..it works, and it doesn't work at all (everything stuck/freeze), which is a random thing. I thought its because im trying to access loaded entity handler, before is actually loaded. So, i have created new loader for every loaded spine animation and added 'once' so i will trace when its actually loaded
..so, onAssetsLoaded looks like this
ANIMATION_SPINE[ANIMATION_SPINE.length-1].x = 100;//RND(100,window.innerWidth+100);
ANIMATION_SPINE[ANIMATION_SPINE.length-1].y = RND(280,window.innerHeight-250);
ANIMATION_SPINE[ANIMATION_SPINE.length-1].state.setAnimation(0, 'walk', true);
and function complete looks like
..so, im using ANIMATION_IS_LOADED , which has same index as ANIMATION_SPINE to track is it loaded or not, before i can access animation handle. Function for setting position, im calling in a game loop, looks like this
..so, this, sort of fixed my problem...however, i would like to know, what would be another way to know for sure that whatever is thrown at loader is actually loaded ? What would be other method of loading media, kind a 'manually' where program will not go on to next instruction until is previous one completed(media loaded) ??