Hi ToquocVN, Glad to hear you're enjoying C2 - it's a great tool <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
There are a few ways to achieve what you want; I've included two in this demo:
https://www.dropbox.com/s/4jlehn2ek3wjd ... .capx?dl=0
Sprite A is using a typical condition and actions setup, checking the current frame in one condition and then changing the frame in the subsequent action - one problem with this is that you need to include the "Else" condition, which can sometimes cause problems if you have multiple instances of the same sprite.
A way around this is to use the question mark conditional operator within the action; you use it in this format: (condition to check)?(If true do this):(If false do this) - Sprite B is using this technique on event 4 to check its current fame - if its frame is less than 2 it adds 1 otherwise it sets it to 0.
This is handy as it can save you including a bunch of nested conditions and gets around problems with the "Else" condition.
One more thing: make sure that the animation speed for your sprites are set to zero, or use the "stop animation" action, otherwise by default it is set to run to the final frame.
Hope that helps <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">