Loveboy
2nd October 2013, 17:13
Hello Guys!
Is it possible to move a text?
I tested it:
as first i precached the text in tdm.gsc
precacheString(&"Test");
Then called a thread in Callback_StartGametype()
thread test();
Then i created down a new thread and here is it:
untendertext()
{
level.text = newHudElem();
level.text.x = 60; //630
level.text.y = 450; //475
level.text.alignX = "left";
level.text.alignY = "middle";
level.text.sort = 1; //-3
level.text.alpha = 1;
level.text.fontScale = 0.9;
level.text.archived = true;
level.text setText(&"Test);
// Now it's possible to move the text? I tested it!
level.text movex(-320,1);
// and hide and show too?
while(1)
{
level.text hide();
wait 1;
level.text show();
}
Now i have get this error:
not an entity: (file 'maps/mp/gametypes/tdm.gsc', line 1614)
level.text movex(-320,1);
So I see it's not possible.
But there is another way to move it?
Would be nice if you help me :)
Thank you!
Is it possible to move a text?
I tested it:
as first i precached the text in tdm.gsc
precacheString(&"Test");
Then called a thread in Callback_StartGametype()
thread test();
Then i created down a new thread and here is it:
untendertext()
{
level.text = newHudElem();
level.text.x = 60; //630
level.text.y = 450; //475
level.text.alignX = "left";
level.text.alignY = "middle";
level.text.sort = 1; //-3
level.text.alpha = 1;
level.text.fontScale = 0.9;
level.text.archived = true;
level.text setText(&"Test);
// Now it's possible to move the text? I tested it!
level.text movex(-320,1);
// and hide and show too?
while(1)
{
level.text hide();
wait 1;
level.text show();
}
Now i have get this error:
not an entity: (file 'maps/mp/gametypes/tdm.gsc', line 1614)
level.text movex(-320,1);
So I see it's not possible.
But there is another way to move it?
Would be nice if you help me :)
Thank you!