![]() |
Smooth Camera
I have seen this done before on other servers. Basically, it's when a character moves or your mouse moves to a different x and the camera kinda lags behind you and when you stop, the camera springs into position. Classic uses something like this when you activate their mouse search were you can search across levels.
A more recent example is Esteria's camera behaviour when a player moves. Can anybody help me out? |
Try using:
PHP Code:
|
Quote:
But it quickly snaps to the player. I want it to glide to the player smoothly. I have seen it done on Esteria. |
Quote:
I haven't done it before but I assume that's how you would do it. |
What you could do is store an array of the players past x and y values. Then you just call them up and plonk them into setfocus. I would write you up a piece of code but it's relatively simple and a good exercise for you to nut out.
|
PHP Code:
|
The camera lagging behind the player is a horrible gameplay mechanic, btw.
|
When I saw it on classic I thought it was a bug lol
|
Am I doing this right?
PHP Code:
|
That's not the method I'd use Emera. So yer I can't tell wether you're on the right track or not due to me not being able to make sense of your logic
|
Quote:
|
Quote:
It works as I would expect it to work, but if there's a better way to do it, then I'm all ears. :D |
The camera does not lag behind you on Classic anymore as it did pre-wipe, it is simply a portable focus where you press C (or whatever key of your choosing), can move the mouse around and click to freeze the focus on a spot.
|
Quote:
|
All times are GMT +2. The time now is 05:28 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.