x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Grappling Hook in 2D

Hello everyone, I'm making a 2D-sidescroller game in which I want to implement a grappling hook with such mechanisms as:

a) Pulling my character to valid objects (by line tracing to mouse I suppose).

b) Pulling valid objects, like enemies, to my character.

c) And most important swinging on a rope made between my character and an object.

As for now I've managed to get line tracing to search for valid objects, if it is a static element, my character gets launched to end of line tracing, if it's a pawn, it gets an impulse to my character. But impulse and launching is not smooth enough. I'd like a constant motion of pulling, not one energic pull. Could you give me an advice how to do it ?

And my second question is, how to make my character swing on a rope attached to a point at the end of traced path. I've watched some tutorials, but all of them are in 3D-space, none of them show how to make a working swing in 2D.

I'm attaching my blueprint, so you can see how it works.

Thanks for your answers.

[1]: /storage/temp/64949-ghhookk.png

Product Version: UE 4.9
Tags:
ghhookk.png (380.8 kB)
more ▼

asked Oct 30 '15 at 10:11 PM in Blueprint Scripting

avatar image

azzik6
0 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question