Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
time function #300483
12/02/09 18:07
12/02/09 18:07
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
i need a function that shows on the screen the advance of seconds and minutes.

Does somebody has it?

thanks, friends.

Re: time function [Re: Erick_Castro] #300487
12/02/09 18:30
12/02/09 18:30
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
You mean something that sows the time? Example:
Code:
var seconds;
function timeeverysecond()
{
  while(1)
  {
    seconds += 1;
    wait(-1);
  }
}



And then a Panel with the digits code:
Code:
digits(pos_x,pos_y,0,*,10,seconds);




"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: time function [Re: Liamissimo] #300496
12/02/09 19:14
12/02/09 19:14
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
For minutes and seconds, better take this code:
Code:
var seconds_passed = 0;
var seconds, minutes;
function timeeverysecond()
{
  while(1)
  {
    seconds_passed += 1;
    
    seconds = seconds_passed % 60;
    minutes = integer(seconds_passed/60);
    wait(-1);
  }
}



Re: time function [Re: Liamissimo] #300497
12/02/09 19:23
12/02/09 19:23
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
thank you, friend.

Re: time function [Re: Erick_Castro] #300545
12/03/09 06:59
12/03/09 06:59
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
thanks, Lucas.


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