SpriteReplace(ind, fname, imgnumb, removeback, smooth, xorig, yorig) Original code: sprite_replace(...) This function replaces the texture of a sprite with the given index.