The Daily Click ::. Forums ::. Klik Coding Help ::. curve maths and stats/custom timer
 

Post Reply  Post Oekaki 
 

Posted By Message

SolarB



Registered
  26/12/2011
Points
  564
6th November, 2012 at 06/11/2012 11:46:53 -

Hi,

I'm trying to make a game where the player stats are unlimited but the gain from them decreases as more points are added (to infinity).

For instance: speed = speedstat*(curve formula)

I have tried quadratic (x^2) but this still isn't right and I want to invert it to get the desired effect. How can I do this?

Also I want to have a counter that increases/decreases it's speed based on the value of another counter. I'm using a custom timer for the count.

So far I have a working example but I would like a gentler curve for the increase. Right now (I think) it's exponential but I would like something like a quadratic or sin movement (without the downturn) so that it never hits a wall but the speed increases quite a bit (but not as much as I have it now) at the start then gradually increases less and less as the counter goes up.

My maths is awful so I would greatly appreciate any help here

Cheers!


Example:

http://dl.dropbox.com/u/22580256/countspeed.mfa

 
My Open Source Examples: http://bit.ly/YyUFUh
   

Post Reply



 



Advertisement

Worth A Click