Skip to content

How to implement "look ahead" when the mode is set to "framed" ? #447

Discussion options

You must be logged in to vote

This would involve a bit of experimentation and manual calculation, but my best suggestion would be to rely on a pseudo follow target.

So rather than using the actual target as a follow target you instead use an invisible Node2D as the pcam follow target. Where you set that pseudo-element's position to be based on the actual target's position, and then apply additional positional changes to that pseudo-element when the actual target's direction / velocity changes.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@amanatron
Comment options

@ramokz
Comment options

Answer selected by amanatron
@amanatron
Comment options

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