0

I am trying to create a sequence to actions, at the end of which I want to set the visibility of the sprite to false.

Eg:

mySprite->setVisible(false);

Is there any action I can create to do this ? I cannot use a callback, because callbacks do not allow you to use "this".

Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190

1 Answers1

1

You can use callbacks for this purpose by using lambda functions and capturing this but if you don't want to do that you can run a FadeOut action with a time of 0.0

Community
  • 1
  • 1
idk
  • 71
  • 6