Starting the Blender Game Engine (BGE)¶
Objectives¶
The bge module¶
The bge module contains nearly all you need to write a game in Python. But if you write
import bge
in the interactive interpreter or a script, which you start with »Run Script«, you’ll get the Error:
ImportError: No module named 'bge'
That’s because the bge module can only be imported, if the Blender Game Engine is running.
Start BGE the right way¶
Change the Render Type from »Blender Render« to »Blender Game«
You can start the Blender Game Engine now by clicking »P« while the cursor is over the »3D-View« or by clicking »Start« in the Render Properties.