Modify the speed of a running SKAction

前端 未结 2 995
悲哀的现实
悲哀的现实 2021-01-22 09:54

I have this code:

@implementation MyScene {
SKAction *delayAction; 
}
Inside a method:

delayAction = [SKAction waitForDuration:3.0];
[self runAction:[SKAction r         


        
2条回答
  •  温柔的废话
    2021-01-22 10:27

    I am a bit late, but you can instead set the action to SKActionTimingEaseOut. Also this is language native and should work slightly faster. (Though you cannot customize the speed changes) This can be done similarly to this:

    1. yourSKAction.timingMode = SKActionTimingEaseOut;

提交回复
热议问题