Floquet engineering of localized propagation of light in a waveguide array