Hello,
I have been trying to use Spriter in one of my projects, but am having some difficulties with changing character map after spawning. I created an example to pretty much mimic the project and for some reason it works better with similar logic... <img src="{SMILIES_PATH}/icon_e_confused.gif" alt=":?" title="Confused">
The problem I am having is I create some Spriter objects and then attempt to change scale or character maps in a sub event. (Also have problem with Sprite Fonts). For some reason it doesn't work until the next time the function is called. I ended up creating a function to apply the scaling and character maps after the objects are spawned. However, having 2 functions in consecutive order would not change the character map. I thought since the events are read top to bottom and that they are both top level events then it should work...
Call function Spawn objects
Call function Setup objects
Instead I used a boolean to trigger the "Setup Objects" function after the function that spawns finishes.
[Edit] Boolean did not solve the problem. Seemed like it was working correctly, but further testing shows that some sprite's maps did not change. Clicking the spawn button afterwards seemed to work correctly.
Anyhow, in the example .capx I am creating Spriter objects on start of layout with a loop. Every other object gets resized and changes character map from "Pink" to "Green".
Should look like the image below.
https://drive.google.com/file/d/0B_14V9 ... sp=sharing
[/img]
However, on start of layout they are all Pink, but should alternate color. Clicking the "Next Layout" button shows what it should look like using the same logic. Clicking the "Previous Layout' goes back to the original layout and it is now displayed correctly. I am not sure why they are all pink when I first preview it, but changing layouts seems to work.
I am using C2 R205.2 and latest Spriter plugin.
https://drive.google.com/open?id=0B_14V9jZl-I2SE03dVVNdGlXaVU&authuser=0
Thank you!