Control distance and height of camera with controller
I want the ability to control the both the height and distance of my camera with a single button press. The idea is to have a zoomed in and zoomed out view of a top down game. I've tried passing all kinds of values with various gadgets through the inputs of the camera without success. Anything I input almost always zeroes out the values of both the distance and height. I've had minimal success using the value slider to get exact distances, but its very glitchy and refuses to be bound to a button press.
There has to be an easier way to do this, I'm sure. Anyone have any ideas?
-
Try using two cameras, one zoomed in and one zoomed out.
The button press toggles one off and one on each time it's pressed. This could be done using counters or custom mapped signal manipulators with a not gate. -
'@CLOUD has it right. The easiest way of having multiple separate states where only one can be active at a time is to use a selector. It has multiple output channels (A, B, C...) which send "on" while that channel is active. They also have inputs to tell it to go to the next or previous channel (A to B) or wrap around if necessary (B to A). So this might fit your needs well.
Alternatively, if you're using the puppet's built-in camera, you can fiddle with the settings in its controller sensor and use a camera pointer. The camera pointer will tell puppet cameras to point in a particular direction (such as "down"). And you can set the distance from the puppet in the controller sensor. And use a keyframe to change that distance using a keyframe. -
Great ideas! I'll give it a go this evening and see what happens. Thank you!
-
'@cloud @supposer
Just wanted to check in and say everything is working! I can finally move on to other problems.
Thank you! -
Good stuff, glad you got it going. Please send me your level once it's published so I can try it out.
Please sign in to leave a comment.