libgdx change Image Sprite on runtime -
creating image actor works if sprite passed in image constructor
sprite sprite ... image image = new image(sprite);
i need change sprite on runtime. not work:
image.setdrawable(new textureregiondrawable(newsprite));
any idea how fire change?
i believe want use textureregion
, decide frame draw: https://github.com/libgdx/libgdx/wiki/2d-animation
Comments
Post a Comment