need a script for the view

Non-platform specific questions.

need a script for the view

Postby j2graves » Thu Sep 10, 2009 11:28 pm

I need some kind of script that holds the view equal distance between two moving actors.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: need a script for the view

Postby Hblade » Thu Sep 10, 2009 11:32 pm

Soudns advanced O.o
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: need a script for the view

Postby j2graves » Thu Sep 10, 2009 11:51 pm

I once had a script for this, but I lost it.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: need a script for the view

Postby Hblade » Thu Sep 10, 2009 11:57 pm

Woah o.o Idk :P
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: need a script for the view

Postby j2graves » Sat Sep 19, 2009 10:41 pm

okay, now if someone could HELP me instead of writing random links... :roll:
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: need a script for the view

Postby skydereign » Sat Sep 19, 2009 11:22 pm

You mean this? It is pretty simple, so I am not sure this is what you wanted. This is only for the x dimension, so you would copy it and change it to y if you wanted for both directions. If there are any problems with this, I can try to help.
Code: Select all
view.x =  actor1.x + (actor1.x - actor2.x)/2
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron