You must log in to comment.

in reply to @Kaden's post:

Basically, make a new camera (or have one attached to your point), set it's position to be the same as the current camera, swap active cameras, and then tween the new camera's position to the point of interest

I should have been specific, im trying to have people move around and look at a chart, zoom in and zoom out and drag it all around, then be able to go back to a default position. Ive got it to snap back back to the position but i cant get it to just move

Two things:

  1. You don't need $"." to get at the current node to set the position, you can just position = new_value
  2. I'd use tweens for smoothed movement.

That'd look something like

var tween = create_tween()
tween.tween_property(self, "property", DefaultPosition, 0.5)

The other stuff looks okay, at least at a glance

Pinned Tags