Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twice replaceSprite continue bug (little fix.) #32

Open
zszen opened this issue May 13, 2014 · 1 comment
Open

twice replaceSprite continue bug (little fix.) #32

zszen opened this issue May 13, 2014 · 1 comment

Comments

@zszen
Copy link

zszen commented May 13, 2014

movSWF[0]->replaceSprite("panda_mov_100x100.png", lastShooterStr);
movSWF[0]->replaceSprite("panda_mov_100x100_2.png", lastShooterSpecialStr);

I just run single of upon two line. It works well. But if I run two of all. It will error with system basic. It can't find out where the error is.

I only delay the code for a little moment. Force it sleep 100ms. It works well....then....

movSWF[0]->replaceSprite("panda_mov_100x100.png", lastShooterStr);
usleep(100);//delay for 100ms
movSWF[0]->replaceSprite("panda_mov_100x100_2.png", lastShooterSpecialStr);

@lragon
Copy link

lragon commented May 14, 2014

did you use spritesheet?if you use spritesheet,make sure the new Sprite in the spritesheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants