首先就是要读到这个心self.heart = self:getCCNodeByName("energyIcon")
然后让他动起来self.heart:runAction(CCRepeatForever:create(CCSequence:createWithTwoActions(CCScaleTo:create(1, 0.45),CCScaleTo:create(1, 0.55)) ) );
就是这么简单
首先就是要读到这个心self.heart = self:getCCNodeByName("energyIcon")
然后让他动起来self.heart:runAction(CCRepeatForever:create(CCSequence:createWithTwoActions(CCScaleTo:create(1, 0.45),CCScaleTo:create(1, 0.55)) ) );
就是这么简单