0

I used below cocos2d-swift code, giving 1 error. See below image.

var calBck  = CCActionCallBlock.actionWithBlock({
                self.showGlassEffect()
        }) as CCActionCallBlock
var seq = CCActionSequence.actions(move, delay, calBck, nil) as CCActionSequence

enter image description here

How to use CCActionCallBlock in Cocos2d Swift ?

Guru
  • 21,652
  • 10
  • 63
  • 102

1 Answers1

2

You need to use:

var seq = CCActionSequence.actionWithArray(arr) as CCActionSequence
dimpiax
  • 12,093
  • 5
  • 62
  • 45