So, I’m making a small RTS project and It’s going to be a top-down view, although I want the camera to move with the mouse, but not exactly mouse-look. If the player moves his mouse to the left side of the screen(all the way) the camera should go to the left to allow the player to see and operate over there. Same with the Right, Top, and Bottom.
I’ve yet to figure this out, although I do know that you can move the camera using the Arrow Keys, I would think you would do it the same way and just check to see if the mouse was on the edge of the screen?
Well that is certainly one way to do it. You can really do it any way you want, and the implementation would be a big part of how your game functions, and if you do it well then it would be part of it’s appeal. You can literally do it any way you can think of, so you should decide how you want it to work and then figure out how to make it happen.
What you describe is not unlike a traditional RTS (Starcraft, C&C, et al.), and is really easy to do. All you have to do is start panning the camera horizontally if you hit x/z == 0 || x/z == Screen.width and vertically if z/y == 0 || z/y == Screen.height. At the same time you want to make sure that if the mouse touches any of these points that it doesn’t move beyond them, and if it does (corner case for moving beyond the limits in one frame) just move it back to that horizontal/vertical boundary.
If you need some specific advice or help when implementing this, then start-up a new question; many people are here to help!