getTime not working?

Non-platform specific questions.

getTime not working?

Postby Kodo » Mon Apr 10, 2006 1:44 pm

Hi, i wanted to timelmit my beta version of Firetop Mountain, but ive had some problems with the gettime function.

I bought the latest version of GE a few days ago and completely uninstalled by old version before installing it.

When i couldnt get the gettime function to work I went looking for help and found good reference on your Script Reference page (http://www.game-editor.com/docs/script_ ... tm#gettime) even with this help it didnt work so I downloaded the demo listed on this page, when I tried it it doesnt work either, I get script errors (I've not changed the demo at all, its exactly as it was when downloaded) The errors are...

view -> Draw Actor
Error line 1: Incorrect function usage: getTime
Error line 1: Incompatible types: cannot convert from 'const function' to 'struct'

Any ideas?
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby makslane » Mon Apr 10, 2006 2:23 pm

I have downloaded the demo and works here.
Make sure thare is no other getTime function in your game.
Open the Game Editor, load the demo and tell me what's happen.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

hmm

Postby Kodo » Mon Apr 10, 2006 4:19 pm

Ok, im sorry about this, but it seems the demo now works fine after I closed down the editor and restarted it, no problems at all! I'm not really sure what happened because as I said I didnt change the demo at all, just loaded it, tried to run it and got the errors mentioned above, but it seems fine now :)

Thanks for the quick reply makslane :)
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby Troodon » Tue Apr 11, 2006 10:20 am

How the getTime function works? I mean how it displays the time. Can I do an text actor wich shows the time?
Do the game editor display the time
-like this 12.25
-like this 1225
-like this 12;25
or like this 200604111225?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Tue Apr 11, 2006 9:24 pm

You get values for hour, minute second... You can format the data.
Please, look the demo.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Wed Apr 12, 2006 3:07 pm

Wich demo?
Digital_clock.zip?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Kodo » Wed Apr 12, 2006 5:12 pm

Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby Troodon » Thu Apr 13, 2006 7:59 am

Thanks! I didn't look it from documentation :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest