Grappling Hook

Get help using Construct 2

Post » Mon Nov 25, 2013 7:16 pm

So I have been working on a grappling hook type mechanism and so far I think it is working well. You can hover the mouse over any red sprite click and hold the hook/rope shoots out connects then the player goes flying towards the destination. The issue I'm having is that the rope and hook do not line up properly. Anyone know why they are offset from each other? .CAPX & Demo Below.


https://dl.dropboxusercontent.com/u/72974151/GrapplingHook/GrapplingHookTest.capx
Image
B
45
S
17
G
2
Posts: 201
Reputation: 4,471

Post » Mon Nov 25, 2013 7:27 pm

yeah you need to set the image point origin for the hook in the center ;)

double click hook, set origin point in center instead of bottomlennaert2013-11-25 19:28:15
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Tue Nov 26, 2013 3:50 pm

Thanks I got it going even added another grappling hook onto the right click.
Image
B
45
S
17
G
2
Posts: 201
Reputation: 4,471

Post » Wed Nov 27, 2013 3:29 am

DEMO LINK if anyone wants to give it a try. Kinda fun.

https://dl.dropboxusercontent.com/u/72974151/GrapplingHook/index.html

LEFT CLICK AND HOLD TO LEFT GRAPPLE.

RIGHT CLICK AND HOLD TO RIGHT GRAPPLE.

RED OBJECTS CAN BE GRAPPLED/VictoryX2013-11-27 03:30:32
Image
B
45
S
17
G
2
Posts: 201
Reputation: 4,471

Post » Wed Nov 27, 2013 7:58 am

[QUOTE=VictoryX] DEMO LINK if anyone wants to give it a try. Kinda fun.

https://dl.dropboxusercontent.com/u/72974151/GrapplingHook/index.html

LEFT CLICK AND HOLD TO LEFT GRAPPLE.

RIGHT CLICK AND HOLD TO RIGHT GRAPPLE.

RED OBJECTS CAN BE GRAPPLED/[/QUOTE]



I so love this interaction, dunno why but, I keep trying to stay in the air whahaha

I'ma goingto have to assimilate this technique :P
Been toying around with a few variations of it, but this one with the physics is by far the best with a wide range of possible custimisation options, far easier then the others. :D

Great stuff :)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Nov 27, 2013 8:04 am

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Nov 27, 2013 8:13 am

[QUOTE=LittleStain] Reminds me of this topic[/QUOTE]

:o

nice one
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Nov 27, 2013 12:18 pm

Really cool!
B
37
S
11
G
3
Posts: 279
Reputation: 8,396

Post » Wed Nov 27, 2013 9:57 pm

Well sh*t, Stain. That would've saved me a bunch of trouble lol. Oh well it was fun to do anyways.
Image
B
45
S
17
G
2
Posts: 201
Reputation: 4,471

Post » Thu Jan 28, 2016 1:19 am

@VictoryX I know this is an old topic but is there any way I can make it so that the rope is actually a series of smaller ones
B
25
S
6
G
4
Posts: 173
Reputation: 3,928

Next

Return to How do I....?

Who is online

Users browsing this forum: Manubis, Ryan Kocourek, TheSupreme and 13 guests