Ok, I am able to trace/send variables that are needed for my project. Though I am able to trace them in the same frame, I can’t reffer to them in another frame, it out puts ‘undefined’? But again, I am able to see the out put fine in one frame, how come not another? I tried putting it into a global too.
Here is sample of the script:
// face the direction
ob.clip.gotoAndStop(dirx+diry*2+3);
// calculate the tile where chars center is
ob.xtile = Math.floor(ob.x/game.tileW);
ob.ytile = Math.floor(ob.y/game.tileH);
I can trace(ob.xtile); and trace(ob.ytile);, but again, I can’t do it in another frame later in the scene. Any help?