Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / why isn't this working?

Author
Message
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 6th Mar 2004 16:24
Can somebody please tell me why this isn't working:


tim=timer()
if timer()-tim>=5200 then point object 3,0,0,0

once the time has gone i wan't my object 3 to point in another direction. Please help me. Thanks

he who runs away, lives to fight another day
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 6th Mar 2004 16:38
That code will not work if ALL of it is in the loop...

You need to put the first line outside of the loop ( before it starts ) then place the second line inside the loop.

Alternatively, have it when you press a key, or click the mouse, the first line is executed, and then have the second line in the loop as per the first suggestion...

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 6th Mar 2004 16:42
Cheers Jess It's working great. I've seen how many times you've helped people so if i make this game i'll stick your name in the credits if thats okay with you.

he who runs away, lives to fight another day
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 6th Mar 2004 16:50
Hehe, thanks Lee

Man, I must be in about 100 different game credits by now... lol, jk. But serisously, I've had so many offers to have my name in the cred's...

Btw, my real name is Jess Telford Just so you know lol.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 6th Mar 2004 16:56
okay then. cheers .

he who runs away, lives to fight another day

Login to post a reply

Server time is: 2025-05-23 16:22:37
Your offset time is: 2025-05-23 16:22:37