Make Objects stop following the Character?

Get help using Construct 2

Post » Tue Dec 17, 2013 12:06 am

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
B
10
S
1
Posts: 14
Reputation: 523

Post » Tue Dec 17, 2013 12:56 am

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...BluePhaze2013-12-17 00:57:29
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Tue Dec 17, 2013 11:30 pm

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.
B
10
S
1
Posts: 14
Reputation: 523

Post » Wed Dec 18, 2013 12:00 am

I don't think you're giving enough information. Can you provide a capx? Are both objects on the same layer?
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests