Loop count infinite

Instead of only using ‘Animation.loop' variable as a bool, check to see if it’s a number and loop N times.
Call ‘complete’ after all loops are done.