Posted By
|
Message
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
5th July, 2003 at 18:57:26 -
Hey everyone,
Does anybody know of an extension or a formula to have my player look at a certain x,y. Not selecting it, but using values. Eg.
Player.dir = ConvertXY_DIR(altval a, alt val b)
So to make the player look at an x,y pos but have that pos as a value not using MMF's selctor thing. I think i've seen it in an extension before but i looked around last night and couldn't find it. Any help would be appreciated.
-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
|
KlikFactory
Registered 11/01/2002
Points 692
|
5th July, 2003 at 19:06:48 -
I don't know about any extensions, but you could easily emulate this by setting an object to those coordinates then having the player icon look at it.
Sorry if that won't help- I don't understand half your post about the selectors and stuff. =/
-The Klik Factory
Why's there a star next to the Sig? What if I don't want a sig? This sucks.
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
5th July, 2003 at 19:58:27 -
Um ok..... You know the action "Look in the direction of"? I want to be able to do that, but use values and not select by clicking where i want the player to look.
-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
|
Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
6th July, 2003 at 03:23:41 -
Angle Calculator has 360 degree look at formulas, and can convert that into a direction for you as well.
gone fishin'
|
Daniel[Crazy_Productions] Possibly Insane
Registered 29/12/2002
Points 2505
|
6th July, 2003 at 04:04:41 -
use arctan(x-x2/y-2)
Beware of life ...so far noone have survived it.......
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
6th July, 2003 at 04:25:29 -
The angle calculator doesn't have a formula to make the player rotate to an X,Y i don't think. I looked around, in the expressions and actions. I'm trying your formula tho Daniel.
-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
|
|
|