tarek2 Hope you don't mind another question. I don't need the full solution I just want to know if I am barking up the right tree or if I need to switch my solution method.
So I have setup the function and animations and all that jazz, When the enemy appears the player needs to be able to tap and interact with it and I could not get it to allow me to do that as an animation so I had that family tile spawn a new object with the enemy and then set the family tile animation to empty so that it wouldn't duplicate the enemy with the animation enemy.
I then setup for the tap fight, and on enemy killed destroyed the enemy. In order to get the tiles to turn back to the default (tappable) tiles i set the instance variables back, both active and animated, to false after enemy destroy, and set the family tile animation back to default. I also tried just calling the function again after enemy destroyed. But that then also puts the tile back up on the one where the enemy had appeared and player defeated instead of staying empty.
Here's an image of the code and link in case image doesn't show, Just want to know if I am heading in the right direction with destroying the object and resetting the animation no need to give the solution, i usually figure stuff out by trial and error i just don't want to spend hours on it if I am not even going in the right direction.
I highlighted the area for on enemy death i didn't run it with both enemy death events i just did one at a time but included both for easier screenshot, but included full code in case you needed to see what i've done.