OK, Ripple3D is cool. Easy to add. Problem is if I stop the Action, the distorted effect is still in place. How do I "reset" the layer I applied the Ripple3D effect to back to it's normal "non-rippled" state?
Undoing the Effects of Ripple3D
(4 posts) (4 voices)-
Posted 2 years ago #
-
I believe it is a known bug with grid actions, but it can be fixed by replacing some files ric patched.
This post has more information.
Posted 2 years ago # -
Please use the search box on the top on the page. I found this when searching for "reset effect" : http://www.cocos2d-iphone.org/forum/topic/429#post-8542
edit : they say the same thing in the first post of the thread mentioned by Kahless
Posted 2 years ago # -
Reading through the code, it states that you need to chain a StopGrid action after the Ripple3D.
id rippleAction = [Ripple3D actionWithPosition:CGPointMake(size.width/2,size.height/2) radius:240 waves:5 amplitude:160 grid:ccg(32,24) duration:l]; [self runAction:[Sequence actions:rippleAction, [StopGrid action], nil]];I added this and it works very smoothly.
Posted 2 years ago #
Reply
You must log in to post.