Questions tagged [ccaction]

CCAction is a class from the popular Cocos2d engine

CCAction is a class from the popular Cocos2d engine

Class Reference

64 questions
0
votes
2 answers

Cocos2d wave action similar to CCJump

I need to create a wave effect combined with the CCMove action. The CCJump action is very close to what I need but of course without the jumping so its smooth moving up and down until the sprite gets to its end x and y position. Below is the…
Peter
  • 749
  • 10
  • 27
0
votes
1 answer

Calling CCAction (CCTintTo) with method of another class to alter CCSprite of the other class

I have a class ButtonLayer with a method in it called redClick. redClick's implementation looks like this.. -(void) redClick { [red runAction: [CCTintTo actionWithDuration:0.1 red:200 green:200 blue:200]]; } The variable red is a CCSprite in…
0
votes
2 answers

Cocos2d CCAction already Running app termination

I am trying to animate my player for walking directions (like in a birds-eye-view RPG) so I have it if (joystick.velocity. y > 0){ [player runAction: walkUpAction] } of course this causes the problem of Terminating app due to uncaught exception…
stenger96
  • 224
  • 3
  • 17
-1
votes
3 answers

cocos2d remove tint

I'm trying to implement a highlight animation to my sprites. The sprite should highlight to a given color and gradually reverse back to its original colors, with the following code: - (void)highlight { CCTintTo *tintAction = [CCTintTo…
Şafak Gezer
  • 3,928
  • 3
  • 47
  • 49
1 2 3 4
5