Thursday, 4 May 2017

Outside the Box Project Beta Work - Camera Zoom Script


As part of our Milestone 2 Feedback session we had people play test our game. One of the pieces of feedback I received was to add a function to allow the Player to zoom in to see the board in more detail, and then move the camera around the board, should the Player be zoomed in.


I managed to implement the Camera zooming in and out to a set of constraints, however I had difficulty just conceptualising how to move the camera to another set of constraints. I know I would code it for WASD movement, as is the standard in Computer Games. However I could have coded it for Mouse Input 1 (Left Mouse Button) to be able to click and drag, but again I was unsure how to even go about doing this, that and I had other things I needed to implement just for the Game's sake that took priority to this function. So unfortunately I have been unable to finish this, but the Player can still zoom in and out in our most contemporary builds and Unity projects.

For future development this function would work with our stretch goals, as we wish to market this for mobile, but for our hand-in and graduation show it will be on PC. However all input in our game has been coded for clicking with Left Mouse Button and swiping with the mouse cursor.

Both of which can be translated to Finger tapping and swiping, respectively.

This zoom-in function could also be translated from it's current Input command of the Mouse Scroll Wheel to the Player pinching the screen with their fingers to zoom-in and out-stretching their fingers to zoom-out.


No comments:

Post a Comment