Here's the simplest use of HOTween for fading out the sprite:
tk2dSprite spr;
float time = 1.0f;
HOTween.To(spr, time, new TweenParms().Prop("color", new Color(1.0f, 1.0f, 1.0f, 0.0f)));
In the other thread's example there should be two methods named UpdateTextMesh and FadeOutCompleteLevelRendered. You should know a bit about .NET delegates and casting in order to implement UpdateTextMesh. If that confuses you, here's how you can make use of .NET anonymous methods:
tk2dSprite spr;
float time = 1.0f;
HOTween.To(
spr,
time,
new TweenParms()
.Prop("color", new Color(1.0f, 1.0f, 1.0f, 0.0f))
.OnStart(
() =>
{
// insert code to execute on start of tweening (this is optional)
})
.OnUpdate(
() =>
{
// insert code to execute on each update (this is optional)
})
.OnComplete(
() =>
{
// insert code to execute when tweening completes (this is optional)
}));
If you want to fade out a tk2dTextMesh instance, you will have to call Commit inside OnUpdate.
If you want to fade out multiple sprites/textmeshes/... (or tween any other property) at the same time with single call to HOTween.To you can also use OnUpdate. Here's an example for fading out two textmeshes and a sprite at the same time:
HOTween.To(
txt1,
time,
new TweenParms()
.Prop("color", new Color(1.0f, 1.0f, 1.0f, 0.0f))
.OnUpdate(
() =>
{
txt1.Commit();
txt2.color = txt1.color;
txt2.Commit();
spr.color = txt1.color;
}));