How do I easily scroll the camera in an rts game?
Develop games in your browser. Powerful, performant & highly capable.
You can create a "Camera" sprite and give it the ScrollTo behavior, which ensures that the camera will center on it. You can then create four invisible detector sprites at the corners of the screen. When the arrow keys are held down or when the mouse is over one of your detectors, move that camera sprite in the appropriate direction. Hope this helps!