Guru
Guru

Reputation: 22042

CCActionCallBlock usage in Cocos2d Swift

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 ?

Upvotes: 0

Views: 130

Answers (1)

dimpiax
dimpiax

Reputation: 12697

You need to use:

var seq = CCActionSequence.actionWithArray(arr) as CCActionSequence

Upvotes: 2

Related Questions