0 Favourites

Make Objects stop following the Character?

  • Hello, I'm kinda new to construct 2 and I have been having this problem for a long time. It is when I will have a object in my case a physics object and it will follow the character from its original point on the screen.

    Yes I have been scanning the forums for the answer but have been unsuccessful i think i might have been using the wrong terms to search or something.

    If you are wondering what behaviors they both have look below.

    Player:

    Platform

    Scroll To

    Physics

    The "Physics Block"

    Physics

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Platform and Physics behaviors do not work together. If you want an object to follow another you can use the Pin behavior, or just every tick set object1.X and Object1.Y to Object2.X and Object2.Y...

    IF you don't want them to be right ontop of eachother you can do object 2.X+10 or something like that...

    You could also do something like set angle (object1.X, Object1.Y, Object2.X, Object2.Y) if you are using the bullet behavior...

  • Thank you for your response, but I was looking how to keep them from following each other. It is when the phys. object floats and stays where it is on the screen at the start and through the whole game it will stay there.

  • I don't think you're giving enough information. Can you provide a capx? Are both objects on the same layer?

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