4
$\begingroup$

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!

$\endgroup$
  • $\begingroup$ What about using an action actuator? $\endgroup$ – gandalf3 May 2 '15 at 2:39
  • $\begingroup$ If worst comes to worst, that's what I'm going to do. $\endgroup$ – Anson Savage May 3 '15 at 0:00
  • $\begingroup$ Whats bad about an action actuator? $\endgroup$ – gandalf3 May 3 '15 at 0:45
  • $\begingroup$ I was just hoping to stay away from hundreds of keyframes. $\endgroup$ – Anson Savage May 3 '15 at 1:49
  • 1
    $\begingroup$ You should only need two keyframes.. Adding an answer $\endgroup$ – gandalf3 May 3 '15 at 2:31
2
$\begingroup$

One way using an Action Actuator:

  1. Add an empty
  2. On frame one insert a keyframe for the Z location of the empty (I)
  3. Move the empty up on the Z, then insert a keyframe on a later frame (I used frame 10).
  4. Add some logic bricks to the empty:

    enter image description here

    For the action actuator select the action you created by inserting the keyframes earlier (it will be named something like EmptyAction by 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.

  5. Parent the camera to the empty (Press ⎈ CtrlP with both objects selected and the empty active).

Result:

enter image description here

$\endgroup$
  • $\begingroup$ Sweet! This is exactly what I needed. Thank you. $\endgroup$ – Anson Savage May 4 '15 at 18:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.