how do i stop replicating?
APPertizing
Member Posts: 12
I have a heart actor that is the health bar, whenever the main actors eats a fish he gets an extra heart. he starts with one and I would like it to go to 6 max hearts but they just keep replicating across the screen with the more fish he eats.I also have actors that will take away hearts when collided with but does anyone know how to stop replicating after a certain amount of replications?
Cheers.
Cheers.
Answers
Of course, there would be another rule checking if your character was hit, and subtracting a heart at a time. It needs to look like this to work:
It might not be the best way, but I just did it for my game, and it's working.
So, in the collision with fish, you would just add a second rule that only adds fish if "game.lives" attribute is less than 6.
Now it is fully working and not going over by combining the two