# bias curves?

This forum is currently in read-only mode.
0 favourites
• 8 posts
• I was wondering, can construct do bais curves?

This is taken from GM

"

``````**  Returns:
**      If (t) varies over the [0,1] interval, then
**      the result also varies over that interval.
**      The zero and one endpoints of the interval
**      are mapped onto themselves. Other values
**      are shifted upward toward one if (b) is
**      greater than one, and shifted downward
**      toward zero if (b) is between zero and one.
**[/code:294mr0qg]

<img src="http://i52.tinypic.com/291ji3b.gif">

Also, I'm having issues with my EXP formula.  If I raise it manually 1 point at a time, it adds up.
So let's say, I need 97 yo reach level 6. If add it 1 point at a time to my current Xp, I'll get me to level 6 when I get 97 XP. However, I just add 97 XP, it would put me at level 8.
[url=http://www.mediafire.com/?56ic5t4rhw02iyb]http://www.mediafire.com/?56ic5t4rhw02iyb[/url]

Try adding 1 point at a time (left click) until you reach level six. The restart and hit right click.``````
• "qarp" and "cubic" expressions can do this. It's a bit more complicated than just setting the bias value though. If you want to control it with a bias variable you'll have to map it to one of the bezier control points yourself.

• I still don't understand why you have trouble with leveling up depending on your experience.

Maybe I am misunderstanding your problems, but can't you just floor a division to see if you should level?

if floor(totalXP/99) > currentLevel (or currentLevel+1 if you need 99 to reach level 2, 198 for 3, and so on)

Below 99 will return 0, 99 to 197 returns 1, 198 returns 2.

• "qarp" and "cubic" expressions can do this. It's a bit more complicated than just setting the bias value though. If you want to control it with a bias variable you'll have to map it to one of the bezier control points yourself.

I'm not too keen on bezier.

• I think I've found the formula to graph those curves. You could also use qarp or cubic but I was having difficulty getting a curve with the exact shape.

• Oh, that's pretty neat. I'll try some you guys suggestions.

• Also, I'm having issues with my EXP formula. If I raise it manually 1 point at a time, it adds up.

So let's say, I need 97 yo reach level 6. If add it 1 point at a time to my current Xp, I'll get me to level 6 when I get 97 XP. However, I just add 97 XP, it would put me at level 8.

Try adding 1 point at a time (left click) until you reach level six. The restart and hit right click.

I maybe wrong, but are you now trying to raise the exp needed per level according to some curve? If so, just take the cap I gave to you in the other thread and change event 41 to... ah, it's easier to show it in the cap. Of course, you need to adapt the change rate, this example simply starts with 1 exp needed for level 1, another 2 for level 2 (3 in total), another 3 for level 3 (6 in total) and so on. Just paste your own values.

stats4.cap

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Oh thanks, should work. This should work with a formula, right?

Also, off topic, is there a plugin that can read the CRC/HAsh of external file?