What's new

Title Animation

paoling

Developer
Here a very little and nice thing that I want to show you:

https://www.box.net/shared/m9smuf45pb

(just for contributing a little in this forum :)

Since, if I don't get wrong there aren't "on controller release" triggers, and neither On Mouse Up triggers I used a little trick for this kind of fading animation, using PGS, while and wait functions, and font types. Don't know if there's a smarter way.

This is a nice way to allow text labels on a very graphical UI that doesn't like Kontakt's fonts. (You can achieve a better effect with a custom slider for numerical values, but this is tricky since you can't use text in this way (if not melded in the background).

Paolo
 
Interesting thing, using while and wait. I made a similar thing for fade-up or in of send signals. But did you manage to use TCM for avoiding conflicts in wait commands? I do not know how that works, but if you have a good grasp on it, would love to know. The docs are above my grade. :/

Cool fading effect!
 
neither On Mouse Up triggers

XY pads have that.

But did you manage to use TCM for avoiding conflicts in wait commands?

It's relatively simple. Write your function as a taskfunc, use tcm.wait() instead of wait() and for all variables you expect would be re-entered (i.e., variables you want to preserve for each concurrent function call), you need to declare them within the function body WITHOUT "local" keyword.
 
Well it was 8 years ago, so something new to KSP and Nils Editor has been added in the meantime :D
 
It's relatively simple. Write your function as a taskfunc, use tcm.wait() instead of wait() and for all variables you expect would be re-entered (i.e., variables you want to preserve for each concurrent function call), you need to declare them within the function body WITHOUT "local" keyword.

Thanks, looking into taskfunctions now.
 
Top Bottom