Skip to main content
Inspiring
September 28, 2017
Answered

Camera Tool not working with Code created objects on Canvas

  • September 28, 2017
  • 1 reply
  • 486 views

Is there a workaround to use the camera with code created objects?

I wrote some scripts to manipulate the camera, and it works fine with all display objects that are on stage from the start of the application.

But when I later add objects via code , the camera ignores these objects, they remain static. Any solution for this problem?

This topic has been closed for replies.
Correct answer RandomlyFish

You could put a symbol on the stage that acts as a container, and then add objects to that, instead of to the stage directly.

1 reply

RandomlyFishCorrect answer
Inspiring
September 28, 2017

You could put a symbol on the stage that acts as a container, and then add objects to that, instead of to the stage directly.

Inspiring
September 29, 2017

Good thinking, this works as expected. Thanks a lot.