Prof. Monster just finished this simple SlideShow Player (developed in 2.62).
It allows you to define a camera animation and play it sequences in-game.
The Demo-File is a SlideShow by itself. Just give it a try. P to start the game (cursor in 3D view) Space to continue ESC to exit
You can use the Camera from the demo for your own projects. Simply replace the keyboard sensors with the controls of your choice.
Please do not forget to add a list of keyframes at the property “frames” this tells the player when to stop.
[
Many thanks to the contributors of outdoorItems which made this little demo look so nice.
If you have questions do not hesitate to ask.
Edit:
updated to version 2.5 to support immediate switching to a certain frame (via property “frame”) PlayerDemo_v2.5_bge2.73.blend
updated to version 2.4 to support starting at another given frame (via property “frame”)
updated to version 2.3 to support non-ascending frames
updated to version 2.2 to support starting with the first given pose
updated to version 2.1 to support looping animation
updated to version 2.0 to support BGE 2.73
Since a while the player does play the first section of the sequence only. This is because of changes to the ActionActuators behavior. It resets the frame after finishing the playing. Player v1.* relies on that frame and can’t determine what the last played sequence was.
Therefore the player v2.0 is redesigned to work with 2.73 (and maybe earlier, but not pre 2.50).
Added support to start the sequence at a different frame then the current/initial one. This allows to use the same animation but start with different frames.
Attention: The BGE will always start with the initial pose. This might result in a short but noticeable jump/flicker/hickup. If you do not want that you should tasteful hide this effect e.g. By blinding the camera with a black plane when starting the scene. You can move or delete this plane via logic bricks. This way only the first frame is black. Alternative: Fading out black material :p.
I skip version 2.4 - it adds the support to start at any given frame number of the list by setting a property “frame”.
e.g.
frames: “0 20 40 60”
frame: 20
-> starts at 20 and allows to navigate to 0 and 40…60
version 2.5 - allows to dynamically set that property while the game is running. Be aware it immediately switches to the given frame without animation.