Hi there, me again.
Yesterday, I had created an array of animations. For each car sprite, I assign an ‘data variable’ which points to an index within the array. That way when I start the level, I move the cars and assign the animations.
Today, when I opened the block code, it had changed the array of animations, into a two dimensional array of images.
The variables carAnimationsLeft & carAnimationsRight are no longer an array of animations, but an array of an array of images.
In the next screen shot I fixed the variable carAnimationsRight. Both work in the code, but I would prefex to keep the array of animations frames, so that I can of course edit the frames and not the individual images.
Here is the code:
These green animation blocks:
Are the same as an array of images:
Thanks for you reply. I realize that an animation is just array of images, however, the moment they become any array of images, I can no longer edit them in animations editor. The animations editor allows you to create multiple frames, and even see the difference between each frame to notice what has changed between each frame.
Since I store the index of the animation per sprite and know whether it is travelling left/right (speed) I just have to get that value from the array.
I DO NOT want to have to assign a variable to each animation and then have some gigantic if block. That kind of defeats the purpose of using an array.
I think this is still an issue. I loaded the GitHub repository into Firefox, where I have never used the editor, and the array of animations turned into array of (array of image). For the same code that I was last using in Chrome, I still see the array of animations.
Can someone please post a bug in GitHub, or redirect me to where I can post it?