OK... This might be a bug or it could be a feature request to alter apparently inconsistent editor behaviour, and an associated limitation this causes if you try and alter text object font colour by using variables.
The problem here occurs if you try and use variables to define the colour of the text. This appears to be impossible and, if you try, the editor either rejects your attempts or accepts your input but then nothing changes when the layout is run.
Attach a Capx
Description of Capx
One sprite with a string variable "rgb(255,255,0)", one global string of the same value, and one text object. On start of layout, the colour of the text font is altered by applying the value >rgb(255,255,0)<.
Steps to Reproduce Bug
- If you run the layout then the text object font colour is changed.
- Place the global variable in the set font colour action. This is accepted by the editor, but when you run the layout the font colour is not changed.
- Place the Sprite object variable in the set font colour action. This is rejected by the editor, even though it is a string (like the global variable).
I expected a text set colour action could be defined by the input of a string, allowing full control by variables.
Operating System and Service Pack
Construct 2 Version ID
r241 64 bit