platform independent sprite speed implemented