![]() |
Request: Variable Tweening
This is something I think could really improve some things on Graal. Most likely one of the most useful things that could be added to GScript2: tweening.
Right now Stefan has added createAnimation() to v6, but I really think it would be much more effective to add tweening instead. Example of how it would work. PHP Code:
More interesting things like player tweening could be usable too. PHP Code:
Tweening should also be usable on GuiControl objects, for tweening a window's alpha or other variables. Thoughts, ideas? Any more to add? I would really like to see this added in v6. It is similar to createAnimation() but much more powerful and flexible. |
100% supported.
This would help developers on ALL stations. Ganiists, GFX, LATs, Scripters easily. |
I absolutely support this idea. A simple tweening function would remove all hassle from such needed scripts.
|
A few years back Robin made a pretty interesting tweening class but honestly, it's much more efficient to have it built-in and that way it's not interrupting other scripts that are currently running just to do simple nice aesthetic things like fading.
|
Something to associate an optional ID with the tween, and onTweenCompleted event would be nice.
|
I support this 100%, but I'd rather see it like so:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
This would be amazing to have! I await the day we have it, and hopefully this does NOT get overlooked.
|
Oh support indeed.
It also may be possible to revisit that tween class and perhaps make it not interrupt the script or so. Although a far cry from the quality of building it in. |
where do i sign the support list?
|
Quote:
|
I support, for sure!
|
I support, tweening would be awesome for Graal.
|
I'll support this, yeah.
|
I support it!
|
Quote:
|
Good idea Tig. *supports*
|
Someone build a thing that lets you schedule callbacks instead of just setting the timeout
Then you can just have the tweening thing be a function that does a thing and then adds itself again until it turns out to be already done; also you now have a really cool and generic mechanism but I kind of forgot whether you guys have proper first class functions so I do not know how elegant that would end up being in implementation also can you do, like, (@ "this.derp") or only this.(@"derp") |
This could be interesting, although the gui animations do more than just changing a value, there is also page-flip, you can set the time offset, several animations can work together, and you set the animation function (linear or sinus curve) and interval. What you want is basicly a combination of the new gui animation and the particle emitter modifiers and make it working for any script variable?
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
Is something like this what your thinking? You don't need any timeouts, you create the bar onCreated, and it works and animates and polls it's set variable all on it's own. |
Yeah, pretty much that. I did not know we had scheduleevent, this is pretty cool. So setTimer(x) is just schedulevent(x, "Timeout", null)?
|
Quote:
|
That is a good point
|
PHP Code:
I never use timeouts because I like to pass state to the function via. scheduleevent instead of relying on this. variables like you need to in timeouts. |
Quote:
PHP Code:
|
Quote:
In the same script it's possible to create hundreds of bars (prabably some slowdown X.x) but they all update independently of eachother as separate TStaticVar objects. |
GScript2 version: http://forums.graalonline.com/forums...hp?t=134260288
|
Timeouts of DBNPCs also survive server restarts, while scheduleevents don't.
|
|
| All times are GMT +2. The time now is 09:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.