How to use building:getAnimationColor()?

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
dnswodn
Inhabitant of a Megacity
Reactions:
Posts: 271
Joined: 08 Feb 2022, 08:14
Location: 🏞️ Theonia 🌁
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

How to use building:getAnimationColor()?

#1

Post by dnswodn »

Hello. I am currently puzzled about the correct usage of function building:getAnimationColor()
I have tried to use it in this way:

Code: Select all

local building = Tile.getBuilding(x, y)
local colorR, colorG, colorB, colorA = building:getAnimationColor()
Here colorR can get the correct value but the others get nil, so could anyone please teach me the correct way to use it? Thanks.

User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3688
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to use building:getAnimationColor()?

#2

Post by JustAnyone »

Try Tile.getBuildingAnimationColor and report back if the return value is the same

Post Reply Previous topicNext topic

Return to “Problems”