Hello!
I just started with Cocos2d, so bear with me.
I looked at this page:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:effects
Seemed straight forward.
So I put an image into my project, added the sprite to the spritemanager. Added it as a child so it shows on screen, that works great.
Then I do this, upon clicking that sprite as per the page, except I replace sprite 1 with the sprite I'm clicking on:
// execute a Waves action on sprite 1
id waves = [Waves actionWithWaves:5 amplitude:20 horizontal:YES vertical:NO grid:ccg(15,10) duration:5];
[sprite1 runAction: [RepeatForever actionWithAction: waves]];
I see the waves, but a few funny undesirable things happen:
-The whole background image does the wave
-No other image, other than the image I clicked and the background image, does the wave
I can't really imagine how to go about debugging this.
If you have any debugging tips for when dealing with effects, let me know. It's like the Wave effect purposely ignores everything else in the spritemanager, but then goes and hits other spritemanagers or the background itself too?
Also, bizarre, after I'm done with the above anomoly... , if I click on other images, the previous image I clicked on which has stopped doing the wave by now as I'm not "Repeating Forever", vanishes. hmm, nowhere in my code does it vanish.
So, something's totally off with my textures.
Are there any example projects with this effect going off?