i’ve been working an a game lately but came across a error i could not sovle.
if dead.isPositive(): own.death = 1 print own.death if (own.death == 0): GameLogic.addActiveActuator(Move, True) print own.death if (own.death == 1): if resume.isPositive(): own.death = 0
Now I have a property thats already set to 1 when the game starts, so when i start the game my cube doesnt move. (as it should).
when i press resume the cube can move again like it should.
BUT, when i press the dead button my cube still moves.
so i printed out when the variable is what.
-when the game starts death=1 (good)
-when pressed resume death=0 (good)
-when pressed dead death=1 (good, but my cube still moves but i clearly said that if death=1 it should not move).
anyone see the error I made or a way araound this?
btw, is ths the correct support forum about python scripts?