I noticed that the engine slows a little bit when there are 2 or more draw_text functions at the same time.
As you might have guessed, this is not really the cause for the slowdown. If you have many entities, you should use one loop instead of many while loops to draw the text of all your entities. This will increase the performance significantly (many while loops/ waits are slow).
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual
Using the 'digits' element in the panel definition wont work 'easily'.
But I do see many ways mentioned above that will work, but many of them are mostly 'not easy' or even downright difficult to impliment.
BUT :: If you use 'pan_setdigits" to create a new element, or to overwrite an existing digits element, then you can directly assign an entity skill, or even a local var that has been declared as STATIC...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
Re: Can digits() display local var?
[Re: EvilSOB]
#405894 08/09/1210:4208/09/1210:42
Actually 'pan_setdigits' is the way to include digits in a on the run created panel. I was suprised because it was not mentioned
be carefull with static modificator because it makes the variable global, so two different entities with same action will share the variable and they will also share its value.