This is a possible bug.
I get the following warning:
WARNING: Attempt to set object.alpha to 1.00667 which is outside valid range. It will be clamped to the range [0,1]
The warning happens on the following line of code:
transition.to(score_label, { time=300, alpha=0})
Considering this should move the alpha from 1.0 to 0.0, it seems to be perhaps setting it above 1.0 for the initial value in the transition. Here’s the declaration of score_label:
local score_label= ui.newLabel{
bounds = { x, y, 30, 10},
text = marble_score[marble_score_index][3],
font = “AmericanTypewriter-Bold”,
textColor = {255, 255, 0 },
size = 18,
align = “center”
}
I originally had textColor={255, 255, 0,255 } which produced the same warning.
Not a big deal since the code runs fine, but I hate warnings. [import]uid: 8776 topic_id: 5027 reply_id: 305027[/import]
[import]uid: 9905 topic_id: 5027 reply_id: 23773[/import]