Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Can digits() display local var? [Re: FiniumTech] #405872
08/08/12 21:24
08/08/12 21:24
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
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

Check out my new game: Pogostuck: Rage With Your Friends
Re: Can digits() display local var? [Re: sivan] #405873
08/08/12 21:52
08/08/12 21:52
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650
Originally Posted By: sivan
grin what was it, South Park? (goblins stealing underwears or something like this...)




Teleschrott-Fan.
Re: Can digits() display local var? [Re: Sajeth] #405880
08/09/12 05:08
08/09/12 05:08
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
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/12 10:42
08/09/12 10:42
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Actually 'pan_setdigits' is the way to include digits in a on the run created panel. I was suprised because it was not mentioned confused

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.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1