Let’s say I have an enemy with 100 health and every time my bullet hits him he loses 10 health. So I’m testing for collision to see if my bullet hits him… and I’ve got that. The bullet deletes itself. But I want to refer and decrease the health of the enemy (a property of enemy). And than once the health is 0 i will delete the object or switch to death animation. So how do I refer to a property of one object from the function of another object.
Not to sure on how to store and point to values properly in python across objects.
The bullet is a property of the player… i suppose. Well it’s a function in the player.
Also… I’m looking for a conclusive obj. library.