I'm making a game where the player clicks and it drops a cube that builds up the tower. I want the camera to rotate slowly around the tower and move up smoothly whenever one of the blocks is dropped (I already have the logic bricking for knowing when a block is dropped). If I could get any suggestions on how to accomplish this effect, that would be great!
One way using an Action Actuator:
- Add an empty
- On frame one insert a keyframe for the Z location of the empty (I)
- Move the empty up on the Z, then insert a keyframe on a later frame (I used frame 10).
Add some logic bricks to the empty:
For the action actuator select the action you created by inserting the keyframes earlier (it will be named something like
EmptyActionby default). Don't forget to set the end frame to the frame on which you inserted the last keyframe.
I used a Motion actuator to make it rotate continuously.
Parent the camera to the empty (Press ⎈ CtrlP with both objects selected and the empty active).