import error No module named bge

kindhearted friend !! please give enlightenment …

import error: No module named bge

Anda memberitahu saya, berarti bahwa Anda menyediakan sangat menguntungkan ilmu !! Anda semua guru yang ada di sini, kecuali aku …

Moved from “General Forums > Latest News” to “Game Engine > Game Engine Support and Discussion”

Could you show us the code? This usually makes it much easier for others to help : )

import error: No module named bge

looks to me that you use something like: testvar = bge.logic.getCurrentScene()
So you call the bge module, but this module needs to be imported with: import bge.
so you get:


import bge
testvar = bge.logic.getCurrentScene()