Slideshow presentation using UPBGE, how to move the camera?

Hi!

I’m trying to do a powerpoint-style presentation using UPBGE. I have already created the slide content in regular Blender and I’m animating the camera from one slide to the next. Now I’m trying to convert this to UPBGE.

My question is, how can I control the camera animation in UPBGE? For example, if I press the right arrow key, I would like the animation to progress to the next set of camera position keyframes and the stop until I press the right key again.

You could sync/drive the animation with a game-property.

image

Switch the Play dropdown menu to Property, and then select a game-property (of type Integer or Float).

I made a shoulder camera setup a while ago, camera switches smoothly from left to righ and center, you can use this for your screens. It uses python tho.

smooth camera movement.blend (526.5 KB)
(hit spacebar to switch position)

Another simple way is to simply have an integer property on your camera called “slideNumber”, a keyboard sensor for “right arrow” and many property sensors.

The logic bricks would be like “if right arrow pressed AND slide number property equals 2, then play animation 2”

there may be cleaner ways to do it but this is pretty easy and gives you transitions if you have animated them.


You can also use the Action brick in property mode like RPaladin mentioned. It might be a bit more difficult to set up with that method though, if you want to play the transition animation in-between (the property has to go through the frames, not jump)