So I have some tiles like so, with numbers placed on top of them:
[3]
[2]
I want the 3 to fade in (using an alpha effect). Consider the following code:
Please login to see this attachment.
The teal dotted square is the group of tiles - all tiles.
The 0 is the number, while the orange square is an icon associated with each square.
Now, the problem lies in that, depending on the order of the tile that I set to appear with alpha, the orange square icon associated with that tile, ALSO fades in, even if the actual tile does not have the value "appearing" set to 1.
So let's say we have:
[3] (appear = 1; therefore set to fade in)
[2] (appear = 0; therefrore not set to fade in)
The square icon on tile with 2 on it, still fades in - but the NUMBER DOES NOT, as it should. It's just the icon associated with it. So even if the coding's the same, I'm getting this error.
Logically this doesn't make any sense to me.
And if I for example do the following instead (swap around the appear values):
[3] (appear = 0; no fading in)
[2] (appear = 1; do fade in)
This will work! Nothing will do a fading animation on tile 3. So it MUST be an ordering problem right?
Difficult to explain, I hope I made sense and that I can get some help on this.
Thanks in advance!