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.

player.py 247B

1234567891011121314
  1. import bge
  2. import FSM
  3. def update(cont):
  4. #print('-------------player updating----------------')
  5. dict = bge.logic.globalDict
  6. own = cont.owner
  7. if 'playerFSM' not in dict:
  8. dict['playerFSM'] = FSM.PlayerFSM(own)
  9. dict['playerFSM'].Execute()