12345678910111213141516171819202122232425 |
-
- import bge
-
-
-
- def main(cont):
- own = cont.owner
- scene = bge.logic.getCurrentScene()
- actu = cont.actuators['start_level']
- dict = bge.logic.globalDict
- mainDir = bge.logic.expandPath("//")
-
- fileName = mainDir + "characters/" + str(dict["character"]) + '.blend'
-
- path = bge.logic.expandPath(fileName)
- bge.logic.LibLoad(path, 'Scene')
-
-
- # fileName = mainDir + "characters/sun.blend"
- #
- # path = bge.logic.expandPath(fileName)
- # bge.logic.LibLoad(path, 'Scene')
-
-
- cont.activate(actu)
|