to clarify :
the device specific variable gets resolved at the beginning, when the xml gets parsed.
after that there is only one variable x
piotrs suggestion in other words :
|
Source code
|
1
2
3
4
5
|
if(device.desktop,
tween(layer[one].x, 0, 1.0);
,
tween(layer[one].x, 30, 1.0);
);
|