GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Shooting out tongue with touch of button

LemonKicksLemonKicks Posts: 64Member, PRO

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

  • ToqueToque Posts: 1,181Member
    edited January 2017

    @LemonKicks said:
    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!

    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!!!

  • LemonKicksLemonKicks Posts: 64Member, PRO

    @Toque - thank you for your reply :smiley: . 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.

  • ToqueToque Posts: 1,181Member

    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

  • LemonKicksLemonKicks Posts: 64Member, PRO

    Thank you @Toque! Really appreciate your help :smiley: !

Sign In or Register to comment.