-
Notifications
You must be signed in to change notification settings - Fork 115
Stop sprite image animation #165
Comments
You could define another animation with only the expected frame and then 2014-02-27 8:24 GMT-08:00 Vitor Cominato [email protected]:
|
I will detail better for you, I have a 8 animations in one actor. I randomize which animation will go on the actor. Uncaught TypeError: Cannot read property 'x' of undefined caat.js:17012 Thakns again. |
could you share the code ?
|
I fixed the FPS problem, but the error is still ocurring here is the code: var si = new CAAT.Foundation var elem = new CAAT.Foundation scene.addChild(elem); window.setInterval(function() { and the error: Uncaught TypeError: Cannot read property 'x' of undefined caat.js:17012 |
Hi,
I have a CAAT.Foundation.SpriteImage() animation and i would like to pause the animation and position the image paused in a certain frame, i didn't foud nothing like this.
It is possible to do that?
Here is my code.
Thak you very much.
screenManager.sAnimaIntro = new CAAT.Foundation
.SpriteImage()
.initialize(screenManager.gameScreen.getImage(screenManager.ANIMA_INTRO), 9, 9)
.addAnimation(
screenManager.ANIMA_INTRO,
[00,00,00,00,00,00,00,01,02,03,
03,03,03,03,03,03,04,05,00,00,
06,07,08,09,09,09,09,09,09,09,
09,09,09,09,09,09,09,09,09,08,
10,11,00,00,00,00,00,12,13,14,
14,14,14,14,14,14,14,14,14,14,
15,16,00,00,00,00,00,00,00,00,
00,00,00,17,18,19,20,21,22,23,
24,25,26,27,28,28,29,00,00,30,
31,32,33,34,35,35,35,35,35,35,
35,35,36,37,38,39,40,40,40,40,
40,40,41,42,43,44,45,46,47,48,
49,49,49,49,49,49,49,49,49,49,
49,50,51,52,53,54,55,00,00,56,
57,58,59,60,61,62,63,64,65,66,
67,68,69,70,71,72,72,72,72,72,
72,72,72,72,72,72,72,72,72,72,
72,72,72,72,72,72,72,72,72,72,
73,74,75,76,77,78,79,61,58,57,
80,56,56,00,00,00,00,00,00,00],
35);
The text was updated successfully, but these errors were encountered: