Having trouble trying to make an Idle game in C# / forms


Im currently working on an idle game in C# to get better at programming, and it's my first "big" program.

I'm currently trying to get a background worker to constantly update a int based on when seperate timers run out

For eksample

Public int Cash = 1; Every 0.25 second ( currently i use while / if loops but i'm trying to twist my head around how i would do this) { Cash + Amount of idle catagory 1 (lemons for example) * 2 } Every 0.25 second { Cash + Amount of idle catagory 2 * 4.5 } 

etc etc

This would all have to run in the background while another thread update the form interface

by Skinkelynet75 via /r/csharp

Leave a Reply