Skip to content

Topdown style RTS/4x camera? #216

Closed Answered by ramokz
Abrinsky asked this question in Question / Help Wanted
Discussion options

You must be logged in to vote

So input control for the PCams is not an intended feature for the addon. Main reason is that controlling a camera is often fairly specific depending on the project, and so introducing a solution to that would likely be a never ending task.

That said, think what you're looking for is fairly straightforward to implement still. What might be the easiest option would be to have a pseudo follow target. Basically, an invisible Node2D/Node3D, where you essentially modify the position of that target when your cursor gets close to the edge of the screen or when you press a particular key input.

There is a Reddit post that has an example for moving a target, in their case a Camera2D, whenever the m…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Abrinsky
Comment options

Answer selected by Abrinsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants