Cocos2d: Tongue effect like in Munch Time

Posted by Joey Green on Game Development See other posts from Game Development or by Joey Green
Published on 2012-06-29T14:52:31Z Indexed on 2012/06/29 15:24 UTC
Read the original article Hit count: 447

Filed under:
|
|

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?

enter image description here

© Game Development or respective owner

Related posts about box2d

Related posts about ios