Announcement

Collapse
No announcement yet.

2D Camera

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    2D Camera

    Hi

    Looked around the net for a while, but not even sure what to search for, so here I ask.

    Busy with a 2D side scroller with a moving background. I have this all set up and working fine, the issue that I have is that I
    want the player to start on the left of the screen and the camera to only move once she has got about to the middle of the
    screen, this so that if she turns back she can then see where she is going as the camera will stay in the middle of the screen.

    The camera is currently connected to the sprite in the sprite BP.

    I am using a Tick Event to eliminate the background moving up and down when she jumps.

    So........not really sure where to start, should this connected camera be deleted and another separate one be used?

    This vid should explain what I am looking to do.

    https://youtu.be/rLl9XBg7wSs?t=13

    Regards

    Shaun
    https://speed7.artstation.com/

    #2
    Sorry for Bump.

    Anyone?
    https://speed7.artstation.com/

    Comment


      #3
      Here's what I did: I made a new camera actor. On begin play I spawn the new camera actor and set my new view to it. I do some quick maffs to break up the camera and my locations and add offsets, then vinterp between them. Lastly, for rested behavior, I added a timeline that would scrub from 0 to 1 based on a proximity bool to the camera's center view and plug that into the vinterp speed. Works OK.
      working example: https://youtu.be/k-Ad8nx1ij8

      Comment


        #4
        Hi Thanks

        Sorry so long to reply, between your code and scrounging the net I managed to come right.
        https://speed7.artstation.com/

        Comment

        Working...
        X