alpha code with apparently working linear interpolation between frames