Author Topic: (no subject)  (Read 1778 times)

Schrinzo

  • Member
  • *
  • Posts: 11
    • View Profile
    • http://www.cornalien.tk
(no subject)
« on: December 23, 2003, 04:11:58 PM »
Damn :angry:  I tried to make a timer but it doesn't want to work. Made one with #Delay, one with a plugin and some other stupid things but nothing want to work. In the shack isn't a good one too  Sad  
Could someone please help me?
« Last Edit: December 31, 1969, 06:00:00 PM by Schrinzo »
HuHu

Check <a href=\'http://cornalien.proboards25.com/\' target=\'_blank\'>CornAlien.tk</a>, k? -- i know it suck

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #1 on: December 23, 2003, 05:23:40 PM »
what kind of a timer are you trying to make? if you want one with only seconds it's extremely easy, just do something like this (not exactly though, it may have a few errors from multitasking and such  Wink )


Code: [Select]
:recalc
#Delay(1)
#seconds!=seconds!+1
#Branch (:recalc)

but for a timer with seconds, minutes, hours, and days, you have to include a bit more, like this...

Code: [Select]
:recalc
#Delay(1)
#seconds!=seconds!+1
#If (seconds!=60)
{
#minutes!=minutes!+1
#seconds!=0)
}
#If (minutes!=60)
{
#hours!=hours!+1
#minutes!=0
}
#If (hours!=24)
{
#days!=days!+1
#hours!=0
}
#Branch (:recalc)


remember, you can always change the delay time if you dont want the game time to be real time  Smile
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

Schrinzo

  • Member
  • *
  • Posts: 11
    • View Profile
    • http://www.cornalien.tk
(no subject)
« Reply #2 on: December 24, 2003, 09:55:07 AM »
I made this kind of stuff but because of the delay-thing it's getting stuck.
It is made for seconds. It's made for a minigame where you got 50 seconds to collect the stuff so you need to walk at the same time as the timer goes. This is the code I made:

#Method Timer(sec!,lose$)
{
:timer
#Delay(1)
tl!+1
#If(tl!==sec!)
{
#Run(lose$)
#End()
}
#Branch(:timer)
}

That was the timer. It didn't work if I just let the program run alone (you couldn't walk) so I set it in an item. But even then it didn't work :angry: After that I made something with
#wait(c$)
#If(c$=="LEFT") {#Push("W")}
ec.
Only now it give a new character what's under something and it make the screen black where it is. I don't know the problem..... :unsure:
« Last Edit: December 31, 1969, 06:00:00 PM by Schrinzo »
HuHu

Check <a href=\'http://cornalien.proboards25.com/\' target=\'_blank\'>CornAlien.tk</a>, k? -- i know it suck

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #3 on: December 24, 2003, 10:06:10 AM »
hmmm... its that damn multitasking crap.... i'd ask xorlak or cesque about that stuff, they're well experienced and always help  Razz
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #4 on: December 30, 2003, 07:31:03 PM »
i just made my own game time program.. like the one in moonews's method pack.. moonews's, it said you could set the program as an items multitasking program and just put it on the board you want to be affected by time...but it wouldnt work!!! does anyone no whats wrong!??!?
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!

DarkElite

  • Member
  • *
  • Posts: 1452
    • View Profile
    • http://cryosoft.mysticsoftware.net/Home.html
(no subject)
« Reply #5 on: December 31, 2003, 01:08:11 PM »
its wintermoon's method pack, srry  <_<
« Last Edit: December 31, 1969, 06:00:00 PM by DarkElite »
DarkElite

Dei vobem omniam proditiverunt.  Iam vobis quis deposcibitis sacrificium rersum vitae est!