sleitnick
(sleitnick)
March 26, 2014, 10:56pm
1
I got really tired of writing raw camera tween functions all the time, so I finally sat down and wrote an API for it. It is basically an extension of the Camera object, with given methods (just done with some metatable stuff).
The test code for the following video is linked here:
Here’s a small video example of a couple methods:
I can see why you called yourself ‘crazyman’, because that is some crazy scripting skill.
sleitnick
(sleitnick)
March 27, 2014, 4:13am
3
Haha, well thank you! The easing functions were all open-sourced though from some dude that wrote them in 2001 in like 10 different programming languages (Robert Penner). So I just had to implement those.
Even so, I just meant in general, :P.
Osyris
(Osyris)
March 27, 2014, 4:20am
5
…Is this public? I like this.
MettaurSp
(MettaurSp)
March 27, 2014, 4:43am
6
Dat spare time. Just goes to show how much I really have to learn, and that is only the tip of the ice burg.
sleitnick
(sleitnick)
March 27, 2014, 11:44am
7
Once I’m done with it, yes it will be public. Right now I want to continue working on it.
Nexx
(Nexx)
March 27, 2014, 2:24pm
8
Im literally checking his twitter nonstop so i can get it when its done
sleitnick
(sleitnick)
March 27, 2014, 8:43pm
9
I’ll try to get it out today or tomorrow
Quenty
(Quenty)
March 27, 2014, 10:43pm
10
I’ve done a lot of interpolation too. I actually learned from one of Crazyman32’s scripts at first, so… Yay
Here’s some useful interpolation algorithms:
https://code.google.com/p/tweener/source/browse/trunk/as2/caurina/transitions/Equations.as
Care if I snag these for my plugin?
sleitnick
(sleitnick)
March 28, 2014, 9:39pm
12
Go wild. Easing functions by Robert Penner:
http://robertpenner.com/easing/
sleitnick
(sleitnick)
March 31, 2014, 8:56pm
14
Hopefully tonight!
It’s pretty much done, but I need to document the code better so people can understand how to use it really easily.
Hopefully tonight!
It’s pretty much done, but I need to document the code better so people can understand how to use it really easily.[/quote]
If you want to be successful don’t document code, because if you do that means you can be replaced!!
digpoe
(digpoe)
April 1, 2014, 6:46pm
16
Hopefully tonight!
It’s pretty much done, but I need to document the code better so people can understand how to use it really easily.[/quote]
If you want to be successful don’t document code, because if you do that means you can be replaced!![/quote]
If he doesn’t document his code, nobody will know what they’re doing, that’s the problem.