Issues with the Control Camera behavior

I am trying to make a game in which you try to launch a projectile as far as you can from a cannon. I wanted to have the camera follow the projectile after it is spawned, but the Control Camera behavior does not seem to function and it appears that there is no other way to manipulate the camera. I do not have the Control Camera behavior on any other actors.

I am using Windows 7. A quick response would be very much appreciated! Thank you.

Answers

  • ericzingelerericzingeler Member Posts: 334
    Sounds like camera control doesn't work for spawned actors? If true, then you could try having the spawned actor constrain its X and Y positions to Game Attributes, and then constrain the camera origin to those attributes (camera origin position is bottom left, not center like actors).
  • ShirokageShirokage Member Posts: 4
    Sounds like camera control doesn't work for spawned actors? If true, then you could try having the spawned actor constrain its X and Y positions to Game Attributes, and then constrain the camera origin to those attributes (camera origin position is bottom left, not center like actors).
    This sounds good, but I cannot find any attributes to manipulate the camera outside of the control camera behavior. I made an attribute to keep track of the projectiles x position (don't need one for y, since I want the camera to keep the ground on screen). Is there some behavior that I do not know about that can accomplish this?
  • PixelMetalPixelMetal Member Posts: 283
    Try making an unlocked actor in the scene that checks the value of global variables and constrains the camera's x/y position to those variables.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Control Camera definately works on spawned actors, I just used it for this tutorial:

    http://gamedev.tutsplus.com/tutorials/from-scratch/angry-snowman-build-an-angry-birds-game-from-scratch-setup-and-shooting/

    This was created on a Mac though so if there is an issue with the Windows version I'm unaware of that.
Sign In or Register to comment.