how do you use system|math|exponent?

For questions about using Classic.

Post » Wed Jan 28, 2009 10:52 pm

x to the y power
exp() ?

where do I put the x and the y?
Spriter Dev
B
95
S
21
G
12
Posts: 3,252
Reputation: 16,780

Post » Wed Jan 28, 2009 11:02 pm

I don't know what purpose that serves. You can do exponents using the "^" symbol, like this: x^y
Moderator
B
109
S
41
G
20
Posts: 1,586
Reputation: 18,996

Post » Wed Jan 28, 2009 11:05 pm

Yup, x^y. Exp is the inverse of ln (logarithm with base e). See http://en.wikipedia.org/wiki/Exponential_function
B
2
S
1
G
4
Posts: 60
Reputation: 1,320

Post » Wed Jan 28, 2009 11:20 pm

thanks guys!

this was getting a little cumbersome:
sqrt((Sprite3[Physics].VelocityX*Sprite3[Physics].VelocityX)-
(Sprite3[Physics].VelocityY*Sprite3[Physics].VelocityY))

:D
Spriter Dev
B
95
S
21
G
12
Posts: 3,252
Reputation: 16,780

Post » Thu Jan 29, 2009 1:21 am

Or use distance(0, 0, Sprite3[Physics].VelocityX, Sprite3[Physics].VelocityY)
Scirra Founder
B
373
S
218
G
84
Posts: 23,444
Reputation: 186,078

Post » Thu Jan 29, 2009 9:25 am

[quote="Ashley":2ojwnwsf]Or use distance(0, 0, Sprite3[Physics].VelocityX, Sprite3[Physics].VelocityY)[/quote:2ojwnwsf]
I was looking for a distance function. can't believe I didn't see that the first time. at least now I now how to do exponents, too

thanks again ash
Spriter Dev
B
95
S
21
G
12
Posts: 3,252
Reputation: 16,780

Post » Thu Jan 29, 2009 9:33 am

Hehe, you ask one question, you learn many things!
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest