How do I make a frog tongue come back and forth

Get help using Construct 2

Post » Thu Feb 09, 2017 8:16 pm

Hi,
I want to build a frog tongue that will go back and forth but will be built like a slingshot.
the player will push on the frog and take her a bit back and than it will fire the tongue depending on the user input power.

what will be the best way to this?
slingshot and back to the mouth.

Thanks!
B
6
S
1
Posts: 56
Reputation: 548

Post » Fri Feb 10, 2017 12:42 am

You mean like GLENN FROM CHRONO TRIGGER???
It's a 2-parter.

First is setting up the angle and relative strength of the Tongue upon release. The release angle is just set to opposite of the PULL angle. Upon release, simply increase the radius of the tongue with respect to your origin point then when the tongue reaches its maximum length or when it hits an enemy, simply decrease the radius.

I can't build CAPX for you right now as I don't have time but

Look for Glenn's "Slurp Cut" Technique here: https://www.youtube.com/watch?v=QbkEF139D4k at around time 3:54

to give you an idea. I'll make CAPX when I get time.
Image Image Image
B
29
S
11
G
27
Posts: 729
Reputation: 16,995

Post » Fri Feb 10, 2017 1:13 am

Actually, here is good starting point:
how-do-i-fix-my-hookshot-n-ropes_t171328

This is very similar to the zelda hookshot.
What you have to work on now is adjusting the hook's magnitude and drawing the enemy closer to the sprite instead of the opposite.
Image Image Image
B
29
S
11
G
27
Posts: 729
Reputation: 16,995

Post » Fri Feb 10, 2017 2:41 am

Couple of ways to do it.

I would create an animation with the frog starting with tongue in mouth and then several animations with tongue rolling out and put your collision box on the end of the tongue.

Reverse the animation to have tongue roll back in.

You could use animation speed to show player input power.
Banned User
B
23
S
6
G
58
Posts: 1,229
Reputation: 34,540

Post » Sat Feb 11, 2017 12:47 pm

not really managed to make something exact.
could anyone attach a test file to show example?

thanks!
B
6
S
1
Posts: 56
Reputation: 548

Post » Sat Feb 11, 2017 1:50 pm

his tongue should be like the angry birds mechanism. but instead of just flying away it should also come back to the mouth.
B
6
S
1
Posts: 56
Reputation: 548

Post » Sat Feb 11, 2017 2:12 pm

interesting i wonder how to do this
Image
B
20
S
10
G
10
Posts: 229
Reputation: 7,624

Post » Sat Feb 11, 2017 5:43 pm

Waiting for a savior...
this is actually the closest thing i found:
http://www.newgrounds.com/portal/view/616611
B
6
S
1
Posts: 56
Reputation: 548


Return to How do I....?

Who is online

Users browsing this forum: alextro, ivanski1983 and 9 guests