Posted By
|
Message
|
WesR
Registered 15/06/2002
Points 57
|
16th July, 2003 at 15:21:24 -
I need the equation to find the x value that is half way between two active objects. Can anybody help out?
n/a
|
Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
16th July, 2003 at 15:45:45 -
( X of Active A + X of Active B ) / 2
Average formula again
gone fishin'
|
Santa
Registered 19/05/2003
Points 644
|
16th July, 2003 at 16:47:03 -
Im probably wrong here but wouldnt you devide it by 4 to find the the x value that is half way between the two active objects?
SAnTA - www.atnas.com
-------------------
www.create-games.com/download.asp?id=2918
|
Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
16th July, 2003 at 16:50:51 -
A has X position of 100. B has X position of 200.
Middle is easy enough to work out as 150, as (100+200)/2 = 150. HA.
gone fishin'
|
ShadowCaster Possibly Insane
Registered 02/01/2002
Points 2203
|
16th July, 2003 at 19:43:56 -
Shen can maths good
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
|
DeadmanDines Best Article Writer
Registered 27/04/2006
Points 4758
|
17th July, 2003 at 04:10:45 -
Well being mathematically inept, I once made a tutorial to do this using some hugely complicated formular which ultimately did the same thing! So ner!
191 / 9999 * 7 + 191 * 7
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
17th July, 2003 at 04:12:59 -
*Andy congratulates Dines*
-Andy
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Santa
Registered 19/05/2003
Points 644
|
17th July, 2003 at 10:59:40 -
hehe yup, I didnt put too much thought into what i was writing, for some reason i looked at the fomular and thought it calculated the distance between the two objects so i figured it needed deviding by two again.
Im wrong hehe, slapped wrist time.
SAnTA - www.atnas.com
-------------------
www.create-games.com/download.asp?id=2918
|
Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
17th July, 2003 at 14:20:25 -
ShadowCaster can grammar good.
gone fishin'
|
Klikmaster Master of all things Klik
Registered 08/07/2002
Points 2599
|
17th July, 2003 at 15:02:21 -
dist between 2 objs = obj b - obj a
n/a
|
Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
17th July, 2003 at 15:11:58 -
Abs( X of A - X of B ) actually. And he didn't ask for that
gone fishin'
|
|
|