A key feature that everyone seemed to want in their level, for the side-scrolling game I’m currently working on, was the ability to change the position of the camera at key points in the environment. Whether it was to reveal something up ahead or mainly to zoom out and showcase the environment it was something that came up in all 4 maps.
I decided to tackle this by creating a volume that when walked into it would move the position, relative to the character, to the new desired location giving the effect everyone wanted. Using a volume meant it was localised to the area in which it was needed and that when the character leaves the area it would move back to its default position.
This was relatively easy to achieve as it just mean changing some variables that already exist on the character. Getting hold of said variables was a bit tricky at first as they are part of a different blueprint to, meaning I had to cast to that blueprint to gain access to them before I could manipulate them. The other obstacle I came across was holding the original value of the variable before I changed it so that I could reset it when the player leaves the volume.
You may be reading this thinking how where those things issues, basically I’m a massive noob when it comes to this stuff. But with every blueprint I make I’m learning new things. Coming from an artistic background and not a programmer one it’s going to be baby steps to start with but I’ve got big plans for what I can achieve with this in the future. So watch this space.
I am Elliott Pacel, a Technical Artist at Reflections, Ubisoft. This blog includes all the MaxScript/ Blueprints I have developed and for any working progress updates for script projects I am currently working on.