Link two object with physics

This forum is currently in read-only mode.
  • Hi Guy,

    There is a way to keep together two object with physics behaviour?

    I mean to link them.

    Thanks.

    S4ret

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you be more specific please? There are a few ways to do that depending on what you need.

    Also can you post a Cap file of your problem? It is much easier to help you if we see what you are doing.

  • Could use hinge.

  • OK, Hinge seem to be useful, thanks! What exactly I want is to

    have two wheel (wheels of a car) and join them with a Hinge but

    a Hinge is a rigid thing so they are not free to roll...

  • OK, Hinge seem to be useful, thanks! What exactly I want is to

    have two wheel (wheels of a car) and join them with a Hinge but

    a Hinge is a rigid thing so they are not free to roll...

    Hinge should work for that

    + System: Start of layout

    -> Sprite2: Create hinge about (Sprite2.X, Sprite2.Y) with stiffness 90

    Something along those lines should create a wheel like object.

  • Thanks,

    I tried hinge but is rigid, so wheels doesn't roll

  • Maybe you could check out this lazy physics catapult example I did:

    http://dl.dropbox.com/u/2306601/cataphys_003y.cap

    It has wheels. (arrow keys left/right to move)

    Also remember that your wheels need to have an ellipse collision mask.

  • When I try to load it I have an error "Out of memory"

    why?

  • Which version of construct do you use? It was saved in 0.99.82 probably. Try using the latest (unstable) version of Construct.

  • Oh, ok, with 0.99.84 it works and fine!

    I tried to replicate it in my game but where is defined

    position in Wheel.Value('position') ?

  • I tried to replicate it in my game but where is defined

    position in Wheel.Value('position') ?

    Yes, the position is defined in this PV and refers to a hotspot on the body sprite its hinged to. Click a wheel and look up the properties. Under Private Variable you will see position "wheel1" and "wheel2" on the 2nd wheel, which are both image points on the body sprite (sprite4). I did it this way so I could use two instances of the same wheel sprite.

  • I would suggest going through the Ghost Shooter tutorial before starting on anything big. It covers a lot of basic stuff like PV's.

  • Thanks for the tip, Ghost Shooter editor is very useful. What is strange is that in my PV at "position" I can see only a empty value and not a hot spot. Another strange thing is that with 0.99.84 version I can't modify your cathapult project

    Seem that all is stucked!

  • Yes was blocked because all is LOCKED... sorry guys...

  • Hey, problem fixed now seem to works Thanks guys

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