>>715511048
Nigger, I'm not coming at this from an angle of it being a performance hit or anything (You can look up his code for lighting which does it one pixel at a time for that), I'm just saying I can't see what he is extending it with, because what the currently redundant switch statement suggests he is going to do something with the enemy health bar (Or at least the parent object) but that still doesn't answer why he needs to get the object id, based on the snippet it seems like the program already knows what the enemy_health_bar's parent object is hence why he is calling it as an object. Why does he need the index for it? What could he add that would require it? I got ideas, but it doesn't make sense with the combat that he has already made for it.