timer w/min. and seconds.

Game Editor comments and discussion.

timer w/min. and seconds.

Postby J Slayer67 » Sat Jun 09, 2007 2:16 pm

hey does anybody know how to make a timer with minutes and seconds because im trying to make one with a timer but it is going wacko :shock: the timer is supposed to move the second textnum. but it is moveing the minute textnum TOO fast if it helps i'm using 2 text numbers. heres my code:
Code: Select all
if (second.textNumber=second.textNumber=60)
{
    minut.textNumber=minut.textNumber+1;
    second.textNumber=second.textNumber=00;
}
this is in draw actor of minute and my timer + 1 to the second textnum. but the stupid second textnum. doesn't move at all. :evil:
...any ideas?
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby J Slayer67 » Sat Jun 09, 2007 2:21 pm

here's a print screen of what happens
Attachments
mine game timer help.JPG
my mind is blank on what's going on
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby Oman » Sat Jun 09, 2007 2:23 pm

how long is ur timer supposed to be, 1 second?
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby J Slayer67 » Sat Jun 09, 2007 2:46 pm

yeah i have it for 1000 and i tried 10000 neither worked the same thing happened for both. i'm tying to make a timer like your cliffclimb game oman :wink:
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby Rux » Sat Jun 09, 2007 3:53 pm

Try this. Unfortanetly I don't know how to make a timer counting down, but try it anyway.

1.Make a second textNumber, a :, and a Minute textNumber, Make sure they're seperate.

2.Second,Create Actor, Create Timer, 1000 ms.

3.Second,Timer, (Your Timer's Name),Script Editor.

Code: Select all
Second.textNumber = Second.textNumber + 1;
if(Second.textNumber > 59)
{
     Minute.textNumber = Minute.textNumber + 1;
     Second.textNumber = 0;
}
//The next part is optional\\
if(Minute.textNumber > 3)
{
    PlaySound("Beep")
    DestroyActor("Second");
    DestroyActor(":")
    DestroyActor("Minute");
}


What this does is when the second = 59 Minute + 1 Second = 0.
After 3 minutes The timer gets destroyed and a beeping sound Occors. :)

I will make a quick demo if you don't understand.
Last edited by Rux on Mon Jun 11, 2007 4:05 pm, edited 1 time in total.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Postby Rux » Sat Jun 09, 2007 4:25 pm

Here you go.
It lasts for 3 minutes.
Attachments
TimersZip.zip
Here it is!
(108.54 KiB) Downloaded 93 times
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Postby J Slayer67 » Sun Jun 10, 2007 5:22 pm

thx rux it worked great now i can have lvls that you haveto stay alive in a confind area :D
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron