Make a "grapple hook" object...

Get help using Construct 2

Post » Fri Apr 06, 2012 3:33 pm

Ok, i've read Miu3's post on "Hookshot" and that is what i'm trying to recreate, but I want to do it "On Click" instead of "On button down".

So far all i get is my "rope" object just fires off with the hook and does not stretch. If i follow Miu3's design it works great. Is Miu3's way the only way to do that, or is it possible to make it stretch On Click instead?

Thanks in advance guys.
B
12
S
2
Posts: 75
Reputation: 2,126

Post » Fri Apr 06, 2012 4:36 pm

I'm not sure if this will help but you can create a group of events that contain the events where the 'stretching' happen. this group can be de-activated at start then activated 'on click' and when the 'stretching' collides with the wall which should make it stop 'stretching', the group can be de-activated. and then activated again after another click.

hope that helps sumhow :)
B
16
S
3
G
4
Posts: 40
Reputation: 3,877

Post » Mon Apr 09, 2012 3:39 pm

That's a great idea KiyowaraKush, but I'm having trouble getting the "Stretch" to happen. when i get it to work, all i get is one long "rope" instantly, there is not "stretching" that takes place.

I guess i'm missing how to change the length(width) of the rope over a short period of time. i've even tried System every X seconds, System every tick to change the width, but it does not keep changing it. idk, but thanks for the insight KK, i'll keep hacking at it.
B
12
S
2
Posts: 75
Reputation: 2,126

Post » Mon Apr 09, 2012 6:09 pm

[QUOTE=dooley] That's a great idea KiyowaraKush, but I'm having trouble getting the "Stretch" to happen. when i get it to work, all i get is one long "rope" instantly, there is not "stretching" that takes place.

I guess i'm missing how to change the length(width) of the rope over a short period of time. i've even tried System every X seconds, System every tick to change the width, but it does not keep changing it. idk, but thanks for the insight KK, i'll keep hacking at it.
[/QUOTE]

Have you taken a look at the advanced laser example it might be what you need for stretch and collisons.
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Wed Apr 11, 2012 4:08 pm

@Erndog2k, that was another awesome suggestion, but not quite what i'm trying to do. It needs to seen as "in motion" on the way to the target. These lasers all seem to be instant, there is no "growth" "shrinkage" in the process. As best I can tell i'm gonna have to tweek the Hookshot example using a tiledbackground as the rope. Thanks for the thought though, it is a great example.
B
12
S
2
Posts: 75
Reputation: 2,126


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests