Help with Camera origin
I have a double height iPhone scene. i.e. 640 x 480. When the player presses an actor I want the camera to move up revealing the additional gameplay area. In that area will be another actor that will reposition the camera to the main gameplay area.
I want to do this rather than bring all the relevant actors into the main area using interpolate.
I am having trouble getting the camera to move and not sure if its a behaviour I am missing or co-ordinates or a settings so any help at this stage would be gratefully received.
Regards.
Lee.
I want to do this rather than bring all the relevant actors into the main area using interpolate.
I am having trouble getting the camera to move and not sure if its a behaviour I am missing or co-ordinates or a settings so any help at this stage would be gratefully received.
Regards.
Lee.
Best Answer
-
GuaveMedia Posts: 1,262
Hey...
Actor at the bottom:
when touch is released
interpolate camera.origin.Y to 320
Actor at the top:
when touch is release
interpolate camera.origin.Y to 0
That should workI also use this way for all my menus etc.
@KiwiLee
Alex
Answers