Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, Quad, Grant, Martin_HH), 4,922 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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 | 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