I have a Mesh that should be change a several times via counter.
cont = bge.logic.getCurrentController() scene = bge.logic.getCurrentScene() own = cont.owner if own['build'] >= 0: own.replaceMesh('mon-stage1',True,False) if own['build'] >= 25: own.replaceMesh('mon-stage2',True,False) if own['build'] >= 50: own.replaceMesh('mon-stage3',True,False) if own['build'] >= 100: own.replaceMesh('mon-stage4',True,False) stage = 0 for stage in range(0,100): stage += 1 print(stage)
The problem is that the counter (game property) is increasing too fast. How can I make it slower? For example, make a delay in 5 tics after each increasing of variable "stage". "Skip" of Always sensor doesn't help. And I want to realize it through python (for loop).