How do I make a crank like object?

0 favourites
  • 5 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • good day everyone,

    So Im trying to make a hand crank like object that, depending on the crank hand angle, affects the frame played on another object . The problem is I cant make it work right.

    I made the crank into two parts, a hand and a circle beneath it. Then I used the physics behavior to make a revolute joint on the circle that connects with the hand. (world gravity is set to 0)

    Whenever a touch is registered on handle I apply a force on an image point on the end of the handle. This kinda works and the handle rotates.

    I don't like this solution however because it removes the handle from under the players mouse/finger. I want it to go as fast or as slow as whoever controls the handle. And I need to know when a full rotation has been completed to disable it temporarily.

    Sorry if this is to complicated to warrant a free solution, but any pointers will be appreciated.

  • I'm not sure I fully understand what are you trying to make, but I have this example, which might be useful:

    howtoconstructdemos.com/customizable-rotating-knob-controls-capx

  • I guess I was thinking about this in a literal sense lol. This works great!

    Though I'm not sure how exactly.

    quick question: can I make it only turn clockwise? and how would I add a sound effect to it?

  • can I make it only turn clockwise? and how would I add a sound effect to it?

    You can disable event #5 in my example ("Else") to only turn clockwise.

    And play a sound, say every 0.1s while the sprite is rotating.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I swear I tried disabling that event yesterday and it didn't work. Must have been my tired brain. Anyways, thanks. Your help is much appreciated.

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