How do I scroll the camera in an rts game

Get help using Construct 2

Post » Sun Mar 29, 2015 12:18 am

How do I easily scroll the camera in an rts game?
B
10
S
1
Posts: 93
Reputation: 722

Post » Sun Mar 29, 2015 2:15 am

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!
B
14
S
5
G
1
Posts: 189
Reputation: 1,536


Return to How do I....?

Who is online

Users browsing this forum: Christmas and 2 guests