Hello.
Does anybody know why I get a TypeError, when using repeat_forever method for scene.Action? If I use sequence instead it works, but I would really like to use repeat_forever.
Here is the part of the code:
blasers = SpriteNode('spc:LaserRed9' , parent=self)
blasers.position = twinboss.position + (0, 30)
blasers.z_position = -1
b = random.uniform(10.0, 250)
actions = [A.move_to(b, 100, 2 * 1), A.remove()]
blasers.run_action(A.repeat_forever(actions))
self.blasers.append(blasers)
But if I use:
blasers = SpriteNode('spc:LaserGreen13' , parent=self)
blasers.position = twinboss.position + (0, 30)
blasers.z_position = -1
b = random.uniform(10.0, 250)
actions = [A.move_to(b, 100, 2 * 1), A.remove()]
blasers.run_action(A.sequence(actions))
self.blasers.append(blasers)
It works fine, happy for any help...