How do I pin a smaller object into a rotating object.

0 favourites
  • 10 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I'm a newbie to this Construct 2 software and I would like to ask for help.

    How do I pinned a smaller object, let say a circle into a larger rotating circle? I have trouble pinning them both as the smaller circle kept floating around the rotating circle. How can I fix this problem?

    I need help urgently. Please.

  • What exactly are you trying to do? The pin behavior will pin a object to another object position,

    So it seems to be working just fine, what do you expect to happen?

  • If you are using physics, use the joint actions, like a revolute joint. Otherwise you might be looking at using the normal pin behavior or setting position every frame. You can reference image point positions using [object].ImagePointX() and [object].ImagePointY().

    Example: http://www.mediafire.com/download/g0b23 ... ysics.capx

  • If you are using physics, use the joint actions, like a revolute joint. Otherwise you might be looking at using the normal pin behavior or setting position every frame. You can reference image point positions using [object].ImagePointX() and [object].ImagePointY().

    Example:

    Thanks for giving me an answer Sumyjkl I tried my best but so far it didn't really worked, the smaller object that wanted simply ran all over the interface. Anyway, I'm building game similar to ROTO (a mobile game for Android and iOS), so I would like you to gave me example on how to use revolute joint for my game. Sorry for the late reply, I'm too preoccupied with my exams for the past weeks.

  • What exactly are you trying to do? The pin behavior will pin a object to another object position,

    So it seems to be working just fine, what do you expect to happen?

    I'm trying to replicate the game ROTO (a puzzle game for Android and iOS), so I would glad if anyone here can lend me some help.

  • To recreate ROTO you wouldn't need any pinning would you?

    To me it seems using platform behaviour and setting the angle of gravity towards the closest "planet"would suffice..

  • To recreate ROTO you wouldn't need any pinning would you?

    To me it seems using platform behaviour and setting the angle of gravity towards the closest "planet"would suffice..

    I've tried adjusting the behaviour and setting up the angle of gravity but the smaller circle sphere wouldn't stick to the bigger circle.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm sure I had a better example somewhere, but this is a basic implementation:

    https://dl.dropboxusercontent.com/u/485 ... tform.capx

  • I'm sure I had a better example somewhere, but this is a basic implementation:

    It work's, but the tiny circle stays right where it fell and bumped over and over again to the same place. It also didn't follows the bigger one rotation flows.

  • > I'm sure I had a better example somewhere, but this is a basic implementation:

    >

    It work's, but the tiny circle stays right where it fell and bumped over and over again to the same place. It also didn't follows the bigger one rotation flows.

    Like I said, it's basic, but it works..

    I found another example I downloaded and improved which does use pin and the bullet behaviour instead of platform..

    https://dl.dropboxusercontent.com/u/485 ... roved.capx

    Like you see, there are many ways to implement something like this..

    It doesn't take many events either, but you'll always have to adjust it to fit your needs..

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