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
54
S
28
G
18
Posts: 1,520
Reputation: 25,140

Post » Tue Sep 25, 2012 2:52 pm

lerp(a.x,b.x,0.5)
Image Image
B
164
S
49
G
111
Posts: 7,625
Reputation: 77,949


Return to How do I....?

Who is online

Users browsing this forum: tarek2, Yahoo [Bot] and 6 guests