Cocos Studio : How to change visibility in 1 sprite with different animation state?

  • adesuluhn
    Likes 0

    Problem Description

    When I tried make a sprite, let's say sprite1, then I create 2 animation, anim1 and anim2 in that sprite1. Then, I set in anim1 in sprite1 in frame 0-50 to set visible true. then in anim2 in sprite1(still) in frame 55-80, I set visible false. but when hit button play, in anim1 the button visibility is false. I meant, When I change the visibility at anim2 it changed the visibility in anim1 too. Can someone explain why this happen and how to solve it ?

    Thank You.

  • Sonar Systems admin
    Likes 0

    Have you added separate frames?


    This reply has been verified.
  • adesuluhn
    Likes 0

    Actually I made two anim without begin record, so i just add frame to timeline instead recorded it/animation state. and it solved now :)

    Thank You :) Anyway i’m waiting your next cocos2d-x tutorial using cocos studio :) I meant it’s great!

  • Sonar Systems admin
    Likes 0

    Great to hear you have fixed it.

Login to reply