Hi,
I am doing a basic block building game as an exercise. When the blocks reach a certain height, i need the camera to move upwards by a certain amount so that 3 rows of blocks at the bottom move off screen.
I am using an orthographic camera, resolution of 480x640 (iphone SD portrait). My blocks are straight cubes, with a dimension of 1. My orthographic camera is set to a size of 12, for no other reason that this gives me a reasonable view of the 14 wide grid I am using (cubes are set with a 0.1 gap between them).
Any advice appreciated on general technique. I want to check for every 5 rows of blocks being completed, and then move the screen up so that the first 4 rows scroll out of view.
I am using a PlayMaker action to tween the camera, but need to understand what the y vector value I need to add is.
Any advice appreciated…if I can check is a certain block moves out of the viewPort then that may do, but I am not sure how to achieve a viewPort check (i.e. is a cube in or out of the viewPort).
Regards
i