This one controls sprites with a callback function which I prefer.