Why the act
method in your Loot class is empty ?
Try adding super.act(delta);
.
By the way, you don't need to declare position, width, height... in your class, Actor has already theses fields.
Actions animates actors properties, not your own. You need to modify your code to use the base class properties, like this :
public Loot(Vector2 position, float rotation, int TYPE) {
// set position and size
setBounds(position.x, position.y, keyTexture.getWidth(), keyTexture.getHeight());
setRotation(rotation);
this.TYPE = TYPE;
}
public void draw(Batch batch, float alpha) {
batch.setColor(1f, 1f, 1f, alpha);
batch.draw(keyTexture, getX(), getY(), getWidth()/2, getHeight()/2, getWidth(), getHeight(), 1, 1, rotation, 0, 0, keyTexture.getWidth(), keyTexture.getHeight(), false, false);
}