Cocos2d: Tongue effect like in Munch Time
- by Joey Green
I'm wanting to do a tongue effect for my character like the one in Munch Time( shown in pic ). The player does some action and his tongue attaches to the nearest platform.
I'm thinking this is simply a get distance to platform and keep player at that distance as he moves back and forth giving him the swinging effect.
For the drawing, I'm wanting the same effect where the tongue sprite is the skinniest in the middle of the distance between the character and platform.
I know how to do this in a shader( I'm using cocos2d v2 btw ), but I'm wondering if there is some built-in functionality to allow me to do this.
First, is this the right approach using distance?
Second, is their an easy way to do the tongue sprite effect without a shader?
Third, I'm wanting to have the player spring up at will in the direction of the platform. I'm using Box2D. Would there be a way to do this using force's or would it be easier to write my own code?