I was trying to make a new element; but it's always red after adding the high temp transition. without the temperature transition it's the correct color. the default temperature isn't anywhere near it's melting point either.
<code>
elements.property(elements.ELEMENT_PT_SDRT, "HighTemperature", 394.261)
elements.property(elements.ELEMENT_PT_SDRT, "HighTemperatureTransition", elements.DEFAULT_PT_BRCK)
</code>
when this is removed it's the right color. is there something wrong with the values given to this?
Try setting the element properties (using element.property(elements.ELEMENT_PT_SDRT, "Properties", ...)) to something that doesn't include PROP_HOT_GLOW
jacksonmj:
Try setting the element properties (using element.property(elements.ELEMENT_PT_SDRT, "Properties", ...)) to something that doesn't include PROP_HOT_GLOW
while it's silly that it applies the hot glow too soon(i.e. at 22 Degrees); I suppose that sugestion would be the only way to fix it. at least the state it transforms into can glow, while the one it comes from doesn't need to so I'm not missing much :)
That gave me an idea. What if the update function changed the element's properties to include PROP_HOT_GLOW when the element is above X temperature? Would that work?
No, because the element properties apply to all particles on screen. If one particle is above X temperature, PROP_HOT_GLOW will be set and all particles will glow even if they aren't above X temperature.
Instead, you can use a graphics function.
antoine:
Its or when you are used:
red={0xFF0000} and
elements.property(elements.ELEMENT_PT_SDRT, "Colour", red), ZBuilder!
no. it's set to a completely different color which works just fine without the transformation parameters. furthermore it shows the correct color in the menu, indicating the color change is after it's been placed.