How do I create rope with one end carryable, like water hose or cable?

0 favourites
  • 5 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hi,

    I'm trying to create a rope or a cable with one end static (pinned to an area). The other end should be pickable and carryable by the player, which has the task to carry it to a certain area (plug this end into a socket).

    I tried the pin-method built-in c2: The rope-style pin did not allow me, to make the one end static.

    I tried a physics-method with revolution joints, but when I pin it the end goes crazy and shakes like hell.

    A dream would be, to make the rope dynamic in it's length. So, the player can take it any place inside the layout and the rope/cable adjusts it's length (shorter and longer) on the fly. But this is would be an extra.

    Can anyone help me out? Thanks in advance!

    held

  • Check out this demo:

    howtoconstructdemos.com/create-a-realistic-chain-or-rope-with-physics

    Don't use Pin with Physics objects. If you need to fix it in place, set it immovable.

  • Hi,

    thanks, that helped me a lot !

    Only issue is now, when the player got the one end of the rope and moves to fast, the first links lose contact to each other for a short period.

    Maybe you have an idea to fix that, too?

    Thanks, appreciate it!

    held

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Since the rope is made with Physics, you should only move it with Physics actions. And don't apply too much force. If you try to pull it with some other behavior (Platform, 8-direction), it will break.

  • Thanks! Unfortunately it's essential, that the user can pick up the rope and steer it via the character-sprite to a certain point.

    I tried to simulate platform-behaviour-like controls without the behaviour itself. But it all ends up in crazy rope actions. There's got to be a way...mmmh :)

    Thanks so far!

    held

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)