Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

load_char.py 558B

12345678910111213141516171819202122232425
  1. import bge
  2. def main(cont):
  3. own = cont.owner
  4. scene = bge.logic.getCurrentScene()
  5. actu = cont.actuators['start_level']
  6. dict = bge.logic.globalDict
  7. mainDir = bge.logic.expandPath("//")
  8. fileName = mainDir + "characters/" + str(dict["character"]) + '.blend'
  9. path = bge.logic.expandPath(fileName)
  10. bge.logic.LibLoad(path, 'Scene')
  11. # fileName = mainDir + "characters/sun.blend"
  12. #
  13. # path = bge.logic.expandPath(fileName)
  14. # bge.logic.LibLoad(path, 'Scene')
  15. cont.activate(actu)