import bge

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
BlenderFan123
Posts: 0
Joined: Thu Oct 27, 2011 10:51 am

import bge

Post by BlenderFan123 » Fri Nov 11, 2011 2:22 pm

When I try to import the bge in blender python, I get an error message that the module doesn't exist. Where can I download that bge module for blender python?! I'm using blender 2.60
Thanks in advance! :-)

Droghio
Posts: 0
Joined: Sun Nov 06, 2011 4:17 pm

Post by Droghio » Sun Nov 13, 2011 6:35 pm

I have been having the same problem, from what I can gleam from documentation it seems that you don't have to explicitly declare an import, blender will do it automatically with a call to bge, for example, bge.something.something, should autoload the bge module.

Of course this hasn't worked for me but it may for you, anyone else know what's going on, I believe this is a common issue. :PP

ldo
Posts: 0
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Re: import bge

Post by ldo » Fri Nov 25, 2011 9:36 am

I think the bge module is only available while the Game Engine is actually running.

Post Reply