I’ve been working on a game for a while now. There are a lot of things that are working perfectley, but even more things don’t work XD… yet.
I just want to ask some things about problems I run into.
Ok first off all, I have this script:
import GameLogic players = GameLogic.globalDict.get("players") activePlayer = GameLogic.globalDict.get("activePlayer") ow = GameLogic.getCurrentController() pID = ow['pID'] # get the property if activePlayer == pID : if players[pID]["energy"] <= 0 : # if player is dead activePlayer = activePlayer + 1 # next player in turn else : # player is still alive # turn starts -> set state actuatorTurn1 = ow.actuators['setStateTurn1'] activate (actuatorTurn1) else : actuatorEmpty = ow.actuators['setEmptyState'] activate (actuatorEmpty)
Now in this case the pID is equal to the property pID. Also the energy is 100, so it should change the state?
But it doesn’t do that. Any idea how that comes? I know it might be confusing because you fall in the middle of a project, so if you need additional info, just let me know.
I will probably also upload a blend file any time soon.