Shooting out tongue with touch of button
LemonKicks
Member, PRO Posts: 64
Hello,
Are there any good tutorials or demo's out there which explain the steps of a pressing a button and a tongue (or something similar) shooting out to grab an object? I have been searching the forum and there have been similar questions, except the links in them don't work anymore. There was also talk of an elasticity demo, but I can't seem to find it.
Can anyone point me towards a good tutorial or demo project to learn from?
Thank you!
Comments
I did this in our game Fly Frog Croak. First level.
PLaystore.
https://play.google.com/store/apps/details?id=com.rundumbfun.ffc
iTunes.
https://itunes.apple.com/us/app/fly-frog-croak/id1095200244?mt=8
Its ok but could be better. Its a combination of an animations, changing images and spawning of a "hit box" that detects for a collision.
How I did ours.
Change image. Open mouth.
Animation of tongue coming out.
Spawn a "hit box" to see it if hits anything.
If it does the fly moves into the mouth
Change image. mouth closed.
My frogs are not moving. That made it easier.
Im sure there are other ways, probably better for doing this than my hack!!!
@Toque - thank you for your reply . I was wondering if the "growing" of the tongue should be an interpolate behavior actually. Not sure how to set it up, so that's why I am looking for any demo projects or tutorials to learn from.
I understand. No I don't have a tutorial or demo project of frog tongue.
I used an unrolling of the tongue animation rather than a straight interpolate. Seemed more natural looking.
But here is my tongue.......
https://www.dropbox.com/s/b422lvq72zv9qp2/tongue action.zip?dl=0
Thank you @Toque! Really appreciate your help !