When you moved the code, where did you put it?
Type: Posts; User: GregBrannon
When you moved the code, where did you put it?
There are parts you're not showing us, but I suspect your animation technique is not correct. Refer to the Custom Painting tutorial and ensure that your general approach is:
A main container...