This is just showing up "0"...
The echo right above the gui shows the correct value as well. I've also done it without destroy(), destroyonhide, and without the tween. None of that is effecting it.
PHP Code:
// Function to move in name on the screen
function showName()
{
echo(this.speaker);
Dialog_Name.destroy();
new GuiTextCtrl("Dialog_Name")
{
y = 30;
profile = Armageddon_Text;
destroyonhide = true;
text = this.speaker;
width = 128;
height = 320;
//layer = 7;
zoom = 0.7;
alpha = 1;
fonttype = "Palatino Linotype";
fontstyle = "bu";
textshadow = true;
shadowcolor = {60, 60, 45};
shadowoffset = {4, 3};
this.join("tween");
}
Dialog_Control.addcontrol(Dialog_Name);
// tween the image
(@"Dialog_Name").tween("x", 0.25, 0, 110);
waitfor((@"Dialog_Name"), "TweenFinished", 0.05);
}