Is it possible to end an SKAction mid-action?

前端 未结 1 1766
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 00:49

I have a subclass of SKSpriteNode (monsterNode). It automatically runs around the screen using vectors to follow the player. I am currently using the following action to mak

相关标签:
1条回答
  • 2020-12-31 01:32

    Look at the SKNode.h header file - it has two functions listed:

    - (void)removeActionForKey:(NSString *)key;
    - (void)removeAllActions;
    

    The latter will work: [monsterNode removeAllActions];

    0 讨论(0)
提交回复
热议问题