chrismweb

For my current setup, some of the items on the character can have different colors- so I save it out white, and in LibGDX, use the "batcher.setColor " before drawing the bottom layer.

Is it possible to do that now? Or set the color before having it render one of the items? If not, is there a way I can control the rendering to be able to do it?
Аватара пользователя
chrismweb
  • Сообщения: 135

chrismweb

I "fixed" it by changing the slot's 'color' variable to public (and removing final). I tried using a setter, but I needed to tween the color, so I just ended up making it public.
Аватара пользователя
chrismweb
  • Сообщения: 135

Nate

You can change a slot's color by mutating the returned value. Eg, calling slot.getColor().set(...).
Аватара пользователя
Nate

Nate
  • Сообщения: 9264


Вернуться в Editor