A port of Skn3 excellent Tween class (monkey)
BlitzMax Forums/BlitzMax Programming/A port of Skn3 excellent Tween class (monkey)
| ||
I used Skn3's excellent Tween code when I was using Monkey and there wasn't anything comparable in BMAX (that I know of) so I converted his Monkey-x code to BMAX (not difficult). I'm sure he wont mind. Any way its all self contained as the original was, I added function calls to all the usable methods for those that prefer that. Include .bmx is below and a working example below that that shows off all 10 Tween types. tween.bmx example - all the tweens ![]() |
| ||
If you enjoy zlib/libpng-licenced code (and the formulas are kept as BSD): https://github.com/GWRon/Dig/blob/master/base.util.interpolation.bmx and the sample: https://github.com/GWRon/Dig/blob/master/samples/interpolation/interpolation.bmx Yours of course contains more "convenience helpers" - if not needed, my class should be enough to enjoy "bouncing balls" :-) bye Ron |
| ||
@Derron - always good to see alternatives, looking up Robert penner I found the curves these tweens\easings use which is nice to have too http://easings.net/ |
| ||
I experimented a bit with Monkey X. It seems to run stagger running in a browser. I would spend more time with it if they could fix this and maybe make it as smooth as BlitzMAX does with their graphics and FLIP(). |
| ||
@dw817 - I found Monkey to be just as smooth as BMAX just not as flexible as BMAX - all the games in my sig are made in Monkey, I only moved back to BMAX as I am back targeting desktops only. |