I’m new to Cocos, and am approaching it from a Flash background so forgive me for any ‘off’ nomenclature.
Q: how do I key an alpha fade in Cocos Studio?
I am trying to animate a sprite in Cocos Studio with an alpha transition. I am able to make keys on the timeline and effect changes to scale and translation fine, but any attempts to modify the alpha slider in the UI appear to be global and not recorded to the key.
Example:
I place a sprite on the stage
I put keys on frame 1,5 and 10 of that sprite’s timeline
on key 5 I adjust the sprite’s scale to 200%
publishing shows a ‘bouncing’ sprite
I return to the Editor and adjust the alpha to 50% on frame 5
the sprite’s alpha is 50% across the entire scene, not fading from 100% > 50% > 100% as expected.
These is one of implicit stuff of CocosStudio. If you enable automatic frame recording you will be able to create keyframes for example for opacity or color by modifying corresponding values.
Just to follow up - It looks like once you add the Opacity line to the Sprite’s properties on the timeline, you can turn off Auto frame recording and add/edit keys like normal.
You just can’t add Opacity as a keyable property without using Auto recording to begin with.