Acces tile's skin references after map is generated.
Posted: 14 Oct 2013, 09:06
Helllo,
I already know how to catch a mouse-event to a skin, and then fire a function to manipulate this skin : mySkin.gotoAndPlay("action");
It's easy because the Mouse-event send the Skin references, like this i can access position of the skin on the screen and else.
But what i don't know is the way to manipulate a tile's skin after the map is loaded and builded (to play automatic dialogues on pnjs) and get all its references (position x/y in for example) WITHOUT a mouse event or a player interaction on it.
So what would be the way to achieve this ?
I already know how to catch a mouse-event to a skin, and then fire a function to manipulate this skin : mySkin.gotoAndPlay("action");
It's easy because the Mouse-event send the Skin references, like this i can access position of the skin on the screen and else.
But what i don't know is the way to manipulate a tile's skin after the map is loaded and builded (to play automatic dialogues on pnjs) and get all its references (position x/y in for example) WITHOUT a mouse event or a player interaction on it.
So what would be the way to achieve this ?