A new video tutorial has just been uploaded showing how in the Blender game engine you can load a next level stored in a different file.
The tutorial also shows how information can be passed to the new level (in the tutorial a score). To do this the ‘global dictionary’ object is used (in Python bge.logic.globalDict), which is a relatively easy way to pass information between objects (and files) without having to send messages.
The original ideas (and files) were taken from the Blender book ‘the Blender Gamekit 2nd Edition’ which was written for version 2.49 of Blender. The files are adapted to work with 2.5x and are demonstrated in the tutorial, then a simpler version is worked through.
Click the links for the tutorials –
Blender 2.5 Game Engine Tutorial How to Load a Second Level and Pass a Score to it Part 1 & Part 2
The files created in the tutorial – level1.blend , level2.blend two levels of a game (dummy game) both must be saved in the same folder.
These are the files adapted from the Gamekit book – GlobalDict_L1b.blend , GlobalDict_L2a.blend as above two levels of a game (dummy game) both must be saved in the same folder.
Every time I make a new tutorial a new beta is released that changes it! The people behind Blender are doing a brilliant job creating fantastic software for free and it cannot be easy. In version 2.56, the ‘Report’ view of the Python console has moved to the ‘Info’ window. The ‘Scripting’ layout has not been changed to reflect this, you need to go to the bottom right window and change it from ‘Python Console’ to ‘Info’ and then the tutorial matches.
When you work in the 3D view, Blender converts your actions into API (application programming interface) commands. The Info window (Python console in report view in older versions) displays these commands and you can copy and paste them into a Python script.
This tutorial shows how to make a simple model of a monkey man. The commands used are – adding meshes, scaling, moving, rotating duplicating.
Click here for the tutorial page.