Sorry about that. Here is what I'm trying to do:
The active_enemy_array contains the values for the instance variables of each enemy sprites.
The textDebugging is just a simple text which I use to see if the values I'm getting are correct.
And yes, I tried moving the textDebugging to the sub-event and it still doesn't work.
I already have the existing enemy sprites with their corresponding instance variables. Then what I wanted to do was to update each enemy sprite after they were hit with a bullet. I wanted to change the other instance variables' value based on the enemy sprite's ID.