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
Posts: 56
Reputation: 712

Post » Tue Sep 25, 2012 2:11 pm

B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Tue Sep 25, 2012 2:52 pm

lerp(a.x,b.x,0.5)
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271


Return to How do I....?

Who is online

Users browsing this forum: GSquadron, Yahoo [Bot] and 26 guests