| View previous topic :: View next topic |
| Author |
Message |
Hattiwatti How do I cheat?
Reputation: 0
Joined: 14 Oct 2012 Posts: 6
|
Posted: Sun Oct 28, 2012 3:30 pm Post subject: Changing a value smoothly? |
|
|
I have some camera values, and I'd like to make it so that when I change the value, instead of jumping straight to the new value, it slides to it.
Could I for example make the camera move forward according to a function f(x)=3x, where time is x? |
|
| Back to top |
|
 |
orlaub How do I cheat?
Reputation: 0
Joined: 04 Oct 2012 Posts: 4
|
Posted: Sun Oct 28, 2012 4:48 pm Post subject: |
|
|
| To make it any good, you'd probably want to use a scripting language/programming language other than ASM. And then look into Spherical Linear Interpolation (SLERP), or the simpler Linear Interpolation (LERP). These kinds of functions are what games usually use anyway, when they translate the camera's position. |
|
| Back to top |
|
 |
shadel Advanced Cheater
Reputation: 0
Joined: 19 May 2010 Posts: 54
|
Posted: Fri Nov 16, 2012 8:43 am Post subject: |
|
|
| Well it can be done with asm script if you find a pointer to that value and a code that edits a value periodically like 10 times per second. |
|
| Back to top |
|
 |
|