I will be using similar code for all of my sprites. How do I duplicate code?