I have an issue with a few things that are all related.
I'm making an Incremental/Idle game to learn C2 along the way.
The income is tied to tick rate, which is affected by framerate. It seems that deltatime is a better option, but there's not many tutorials and I'm still confused about where to put it.
Currently income from one unit works like this:I think to use deltatime it needs to be something like ((Buy1Value*Buy1Stock)/60)/(dt*60), that works but is still effected by framerate.
The /60 can be removed, it's just to update the income quickly.
I've heard I can use Every x Seconds but that seemed to be affected by framerate too.
Using a font and updating text every tick is lagging the game (and income).
I'm trying to use a webfont but it isn't loading on people's browsers, only people who have the font locally.
I've heard I should swap over to a sprite font, I've added one but not sure how to actually use it without replacing loads of text objects, will be a lot of work unless there's an easier way.
Last thing is a small bug, I'm using Scroll To when user presses a button, when it changes the view, the mouse no longer created particles on click. Not a big thing but it's confusing me.
Any help appreciated.
Download of file:
If you download the project file, my example picture of the income is in the Buy1 event group (which is building 1 within the game).
Last edited by Oos
on Mon Dec 07, 2015 6:05 pm, edited 1 time in total.