Basically what I did was made it work with only 1 sprite
Original code from @Nyan-Mining I simply made this a whole lot easier to use in projects