ID:1693609
 
Keywords: client, eye, handling
(See the best response by Kaiochao.)
I was wondering if there is a way(or what is the best way) to move the users camera(the client eye) around smoothly.

Something close to what you'd see in
Superbrothers Swords and Sorcery
, to give it a sort of breathing/aesthetic feel to the game.

I've tried setting the client eye to an object and changing the object's pixel_x and pixel_y using animate(), but that doesn't seem to work, any help would be appreciated.



Best response
It's too bad that you can't use animate() for the camera.

However, you can still manually move the camera around somewhat smoothly (though it's still prone to network lag), using client.pixel_x/y, or object.step_x/y if you're using pixel movement.

client.pixel_x/y is an offset (in pixels) from being centered on client.eye. And, of course, smoothness requires an increased world.fps.
Thanks a lot. Do you know why animate() can't be used for this?
In response to YnorRon
I don't know, aside from the fact that animate() only supports a small set of built-in variables which doesn't include client.pixel_x or client.pixel_y. You could make a feature request for that and see what happens.