![](/img/trans.png)
[英]Using cocos2D how do you create an animation using sprites from two sprite sheets?
[英]How do you do an equivalent scaling call in cocos2d as this Core Animation scale?
我正在尋找執行類似調用的操作,但是使用cocos2d ...的想法是放大精靈,然后使其淡出...這是核心動畫中的類似調用:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:ANIM_NORMAL];
someView.alpha = 0.0;
someView.transform = CGAffineTransformMakeScale (3.0, 3.0);
[UIView commitAnimations];
id enlargeAndFade = [Sequence actions: [ScaleTo...], [FadeOut....], nil];
[sprite runAction:enlargeAndFade];
也可以在這里查看所謂的“動作”: http : //www.cocos2d-iphone.org/forum/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.