Panning camera using blueprint
I'm currently trying to pan a camera in the side scroller template, but so far with no luck. I've managed to it to detect when it reaches the edge of the screen using a blueprint from another thread here. I have not managed to find anything that tells me how to pan the camera once I move to the edge of the screen. I'm looking for something like the League of Legends unlocked camera, but usable in the side scroller template. If anyone could provide me with an explanation or even just a screenshot of how to continue what I currently have to get it working, that would be great. Thanks in advance.
asked Dec 19 '14 at 10:13 PM in Blueprint Scripting
That looks quite good. Now let's think how this could work.
You need a way to determine where the camera should move. You get a boolean out of your setup however you don't really want to check with branches if you are overlapping two of those at once (I assume you don't want straight up, down, left right movement but also diagonal).
I do this by creating a temp vector which I set each frame by +1 or -1 in X or Y depending on which branch triggers.
The result gets fed into a function inside of my character.
Inside of that character I have the camera attached to a spring arm and then move around the spring arm in this function. That's pretty straight forward. It looks like this:
I hope this helps :)
answered Dec 19 '14 at 11:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here