Calibrating The Camera For "22x16" view and 16x16 in Developer Help
|
|
I'm using Forum Account's pixel movement system. The intermediate demo but I'd like to calibrate the camera because I'm having the player walk off the camera and events like that which aren't good at all.
My client.view is "22x16" and my icon_size is 16.
Anyone know how to do this? Maybe Forum_Account himself? I'm not a member so I can't contact him in any manor apart from the pager and he's not online :( Bad luck I guess.
Thanks for your help.
|
By default the camera will scroll to cover the whole map. You can set the camera's minx, maxx, miny, and maxy vars to limit its range.
What exactly are you trying to do? Do you want the camera to follow the mob so they can't walk out of view? Or do you want to detect when the player has walked out of view and update the camera's position then?