moving the camera up when actors populate to top of screen

Hello everyone

I am wondering what the best way would be to create the following:

- a moving actor at the top of the screen, it moves left to right (this is working)
- when a actor is touched, it spawns an actor that falls to ground (this is working)
- the actors stack on top of each other (this is working)

now, if the stack is almost at the top of the screen, what would be the best way to move the camera up, but still keep the stack intact?

Please correct me if I am wrong.

I was thinking that you create a larger (taller) scene size, then constrain the camera to the actor that "drops" the new actors.
Then create a rule to do - "when a actor crosses an invisible line (when the dropped actor hits another, it gets a rule that says stacked, so as not to trigger the invisible line), the spawning actor moves upwards in the scene". The camera should follow that actor?

Basically, I am trying to make a game where you stack actors on top of each other, then when the stack reaches the top, the "scene" scrolls up. This would seem like that the "ground" has moved down, but keeping the already spawned actors intact.

Is this the right way to go about doing this?

I will appreciate any feedback regarding this.

Thanks in advance

De Villiers
Sign In or Register to comment.