LoginSignup
1
1

More than 5 years have passed since last update.

画像を一定時間表示する

Posted at

scheduleではなく、Actionでやるパターン。

あらかじめsetVisible(false)で非表示にしておき、表示したい時にsetVisible(true)をコールする。この時DelayTimeとHideのアクションを組み合わせて指定時間後に非表示にする。

(例)0.5秒間表示する
cpp
sprite->setVisible(true);
sprite->runAction(Sequence::create(DelayTime::create(0.5f), Hide::create(), NULL));

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1