Actors Following Camera

richcoyrichcoy Member Posts: 211
edited April 2012 in Working with GS (Mac)
I am trying to make my title screen, settings and world select all one scene. I have an invisible actor that is set to control the camera and it moves up or down based on the buttons pressed. It works real smooth.

My problem is I have a background image that I want to follow the camera too. It just fills the screen and I want it to slide along with the camera so that it looks to the player like everything else is sliding around, not the background.

I've tried adding an interpolate to the background image with the same settings as the camera control actor but the it does not stay exactly lined up. It seems to slip a little or be jittery no matter how much I tweak it.

Is there a better way to make the background stick to where the camera is?

Thanks.

Rich

Best Answer

Answers

  • richcoyrichcoy Member Posts: 211
    Thanks Manto1, That works but something weird happens.

    I've made my scene 3x the normal height with the camera starting in the middle so that if you press Settings the camera goes down and if you press World Select the camera goes up.

    If I put the background behind where the camera starts (in the middle of the scene) in the builder it is out of place when I hit preview. If I place the background in the bottom third it looks right when previewing. Is that expected behavior or have I messed something up?

    Thanks again.
  • simo103simo103 Member, PRO Posts: 1,331
    @richcoy ... that's expected. A non-scrolling layers camera will pick up actors within the scene size starting at x=0 and y=0 so place all your HUD/backgrounds etc in that bottom left corner of a non-scrollable layer.
Sign In or Register to comment.