Best way to create a list of text updates that fades out
Posted: 16 Aug 2013, 15:20
Two scenarios:
1) Player gets hit continously by 10 dmg. Above the player I want to display -10 dmg, -10 dmg, -10dmg etc, each string fades out.
2) I have TextBlock in my GUI in the upper left of the screen showing the value 0. Each time it's incrased by 1 I want to display +1, +1, +1 in a "list" below it which also fades out.
I assume both scenarios are solved in a similar way. But the first scenario needs to factor 3D space while the second only 2D space.
Do I just add textblocks dynamically with xyz values of the "parent" object and animate opacity and xyz accordingly? Is this best solved in XAML or through the Unity API?
Thanks!
1) Player gets hit continously by 10 dmg. Above the player I want to display -10 dmg, -10 dmg, -10dmg etc, each string fades out.
2) I have TextBlock in my GUI in the upper left of the screen showing the value 0. Each time it's incrased by 1 I want to display +1, +1, +1 in a "list" below it which also fades out.
I assume both scenarios are solved in a similar way. But the first scenario needs to factor 3D space while the second only 2D space.
Do I just add textblocks dynamically with xyz values of the "parent" object and animate opacity and xyz accordingly? Is this best solved in XAML or through the Unity API?
Thanks!