I am confused as to what I am supposed to use to center in on a turf or obj. I have looked around the many view/eye vars and such, but cannot pick the right one to use. Inside of battlefields, they are fairly large squares. However, I want everyone in the battle to be able to see it as one piece, instead of having to scroll over to see it all at once. (So I can't have it have the clients mob at the center of the screen, I know that much).
Here is an example of how the screen looks from a spot (Sorry if these screenshots slow down the topic, I have never made a post before with pictures and barely any posts at all):
Now, if I move over to that point, I can see the battlefield as I want to:
Can anyone suggest to me what I am looking for to clear this up? Thanks.
-Watabou
ID:269151
Mar 23 2005, 2:38 pm
|
|
Mar 23 2005, 2:42 pm
|
|
Make some kind of area there and then move the client.eye to that area's eye.
|
You can use the client.eye variable to get that effect. First you need to know what turf or whatever is in the center of the battlefield, which one is where the player is in your last example. Once you know that, whenever the players enter the battlefield, set their client.eye variable to equal that turf, and set it back to their mobs when they leave the battlefield.
You might also want to set the client.perspective variable to equal EYE_PERSPECTIVE, so that opacity and such is calculated from the point of view of the turf in the middle, and not the player's mob. |
In response to Jon88
|
|
Alright, it worked out good. Thanks for your help. I overlooked client.eye (Whoops :\). It works better for me when I just use the coordinates of the turf I stood on to get the view, and not a seperate area called center or what not. Thanks again.
|