Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been searching on the net for several days and can not find nothing about this effect. Even a name for this effect. I want to make a character that can use his tongue to pull objects objects it touches in the extension including the tip.

Can anyone help me with a tutorial or code, may be specifically to do this as this taut language of (image)Froad windows phone or the tongue of the Leon of Awesomenauts. In the video its in use.

share|improve this question
I don't think you are going to find an exact tutorial on this. It is basically a repeated image (base of tongue) and then the tip. It is like a snake game with a different graphic for the head. – Luis Estrada Jan 15 '13 at 4:33
Did you search this site?… – Byte56 Jan 15 '13 at 4:42
Byte56, I had already found this question, is almost it, but this one is referring to the pendulum and I'm wondering how to do the tongue stretching and pulling objects. Thanks. – Adan Jan 15 '13 at 4:49
What do you want exactly? The physics of it, drawing an infinite, high quality tongue, ... ? – dreta Jan 15 '13 at 5:20
Draw and collision using according 2 points, char's mount and end point. Considering char continues move, as char on video. Thanks – Adan Jan 15 '13 at 11:01

As mentioned by others, it's likely you want an effect similar to a "snake". Effectively, you want to break down the "tongue" into individual pieces that form a trail, much like chain-links.

The objects you'll want to create should work similar to a linked list - each node will point to potential nodes that can come before and after it. From there, you pick some relative positions near each end of each node where they will visually connect when drawn on the screen. You may want to have a maximum angle at which each node can bend relative to its prior node in order to make it look smooth.

From there, you can simply make a node act special if it is "the end" node, i.e. the following node it points to is null. You can have it manipulate things in whatever manner you'd like at that point.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.