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 Professional Discussion / Tickers and counting - a function, needing help

Author
Message
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 11th Oct 2012 04:38
So here's a little description:

I made a working clock for this little app of mine and was quite happy with it. But just as in some games, I want the user to be able to specify the speed of the game. So I nixed the idea of using the timer() function and started building a new clock off of IanM's functions pertaining to tickers.

in the do/loop:


function:
NOTE - clock_time is not used anymore, tick = a value of one or zero which is returned from the checker (ticked) in the main do/loop.

Anyone care to explain why I am reporting no change or update to the clock? I am a little confused.

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 11th Oct 2012 07:04
figured it out - for any one who comes across the post for answers - you have to increment outside of the function in the main loop and report the incrementing value into the function.

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.

Login to post a reply

Server time is: 2026-07-07 15:10:03
Your offset time is: 2026-07-07 15:10:03