Animate the viewport itself

Sorry for another in theory question. I'm an ex-Flash user learning what Hype can and cannot do.

I want to be able to keep an object central to the viewport as the object itself moves around the 'world' top down, using JavaScript. Is it possible to animate the viewport, using JavaScript, to stay centred on the object being tracked, or is the solution to animate the world (perhaps in a group) around the object being tracked, leaving the viewpoint alone?

This isn't a built-in feature of Hype (though a good feature request!), but there are some folks who have made a "camera" object that probably does what you want:

Based on the work from this older one:

You'd just need to move this camera object along with your animated object.

1 Like

Wonderful. That looks like it will be just the thing! Thank you.

1 Like