bias curves?

For questions about using Classic.

Post » Sun Feb 13, 2011 5:53 pm

I was wondering, can construct do bais curves?

This is taken from GM

"[code:294mr0qg]** 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]




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.
http://www.mediafire.com/?56ic5t4rhw02iyb

Try adding 1 point at a time (left click) until you reach level six. The restart and hit right click.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Sun Feb 13, 2011 6:17 pm

"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.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sun Feb 13, 2011 7:26 pm

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.
B
3
S
1
G
4
Posts: 37
Reputation: 1,299

Post » Sun Feb 13, 2011 10:10 pm

[quote="Davioware":37cimqdt]"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.[/quote:37cimqdt]
I'm not too keen on bezier. :oops:
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Feb 14, 2011 1:55 am

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.

[url:21gjbo6f]http://dl.dropbox.com/u/5426011/examples3/bias.cap[/url:21gjbo6f] made in 0.99.96
B
79
S
24
G
53
Posts: 4,728
Reputation: 40,219

Post » Mon Feb 14, 2011 2:28 am

Oh, that's pretty neat. I'll try some you guys suggestions.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Mon Feb 14, 2011 3:04 am

[quote="Azu":3fouy3c8]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.[/quote:3fouy3c8]
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
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Mon Feb 14, 2011 8:08 am

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?
B
11
S
3
G
8
Posts: 473
Reputation: 4,569


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests