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.

AppGameKit Classic Chat / AGK Snippets locked

Author
Message
Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 10th Oct 2013 21:54
I was going to post this to AppGameKit snippets, but it's locked due to inactivity... If a mod could unlock it and wants to move this post to it, that'd be swell.

Anyway, I needed an old-fashioned analog counter effect for my game and it took way longer than I thought it would to figure it out, so I'm hoping to alleviate that issue for anyone else.

Below is code framework for a decreasing counter and an increasing counter. The main area needs a little adjusting to switch between increase and decrease. Should just be the function name and when to rotate the next digit (when the previous digit is either 9 or 0).

I hope this is useful to someone.



Login to post a reply

Server time is: 2024-05-08 01:12:16
Your offset time is: 2024-05-08 01:12:16