Place an object between another

Get help using Construct 2

Post » Tue Sep 25, 2012 1:53 pm

Hi Guys!

I have another question... Sorry if it was answered before, but i'm not home and I cannot open any capx file... But I kinda need an answer about this.

I have those two objects: A and B. I have another object, called Camera, that must be always between A and B.

A and B move at XY axis, like GhostShooter game. Think of A as the hunter, and B the ghost. What I want is the camera to always be between them, so the player will always have vision of both, regardless the ghost distance from the hunter.

How can I do that?

Thanks!
B
6
S
1
Posts: 56
Reputation: 862

Post » Tue Sep 25, 2012 2:11 pm

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

Post » Tue Sep 25, 2012 2:52 pm

lerp(a.x,b.x,0.5)
Image ImageImage
B
172
S
50
G
183
Posts: 8,443
Reputation: 115,605


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests