Hi, I've been wracking my brain over this math for the past couple of hours and I just can't seem to grasp it.
I was wondering how one can use a simple system of multipliers to tell a function to do something over time. For example, I'm working on a project right now and need a sprite to fade over time.
I would like to be able to make a timer-based function that would look something like this:
function fadeSprite(spr,time)
That I could call once and have it do the rest, using a separate updateSprite function from the main loop, allowing me to do multiple ones at once if I want.
This isn't really a request for code, as much as a request for an explanation. All of the examples on this forum go right over my head. Thank you!