
D
Publisher
display
easy tween (test)
Tools
Tween Easing Color Motion Customizable Transition Visual Effects
Easy tween (kind of useless)
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
tw
Easy tween
Default parameters:
tw.tw(
node = null, #required
time = 0.1, #required
property_dict = {}, #required
easing_style = 'linear',
easing_direction = 'out',
delay = null
)
Configuration:
tw.set_default_time(1.0)
#tw.set_default_easing(style := '', direction := '')
tw.set_default_easing('quint')
tw.set_default_easing('quint', 'out')
Usage:
tw.set_default_time(1.0)
tw.set_default_easing('quint')
tw.tw(self, 1.0, {modulate = Color.RED})
tw.tw($Node, 1.0, {modulate = Color.RED, rotation = 360}, 'quint', 'out')
tw.tw(self, 1.0, {modulate = Color.RED, "position:x" = 20}, 'QuiNT', 'OuT')
tw.tw(self, 1.0, {modulate = Color.RED}, 'quint', 'in')
tw.tw(self, 1.0, {modulate = Color.RED}, 'elastic', 'out')
tw.tw(self, 1.0, {modulate = Color.RED}, 'elastic')
tw.tw(self, 0.0, {modulate = Color.RED}, 'elastic')
#equivalent to "self.modulate = Color.RED"
tw.tw(self, -2.0, {modulate = Color.RED}, 'elastic')
#equivalent to "self.modulate = Color.RED"