another question for health bar?
sorry guys to bother you! I created a health bar but when my actors collide to each other and one actor loses life all of the same actors are destroyed as well which I want that if one the same actor loses its life others should not?
Best Answer
-
famekrafts Posts: 834
Make hp variable local instead of global, put it inside the actor and not in the game attribute. If you put in the game or stage attribute it will effect every actor on stage, but inside each actor it will only effect that actor.