summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2014-12-19 17:13:20 +0800
committersanikoyes <sanikoyes@163.com>2014-12-19 17:13:20 +0800
commit64f77aa8f365e0be713a06d940f9a2ec912553e3 (patch)
tree43bbbc255cb31c84759dffc2b3bf11207c1878a4 /demos
parent04362defe7c5cb0d41164dcc533f0383a0edb98b (diff)
1.Change interpolate_callback:p_times_in_sec argument before p_callback argument(more readable)
2.NodePath replace to instance_ID(can control object doe's not in scene tree) 3.Change interpolate types from Node to Object, can control more types(etc script class object) 4.Add pending_update counter, avoid insert/remove interpolates-list while traversal it
Diffstat (limited to 'demos')
-rw-r--r--demos/misc/tween/main.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/misc/tween/main.gd b/demos/misc/tween/main.gd
index 364651c827..a0106a7682 100644
--- a/demos/misc/tween/main.gd
+++ b/demos/misc/tween/main.gd
@@ -112,8 +112,8 @@ func reset_tween():
tween.interpolate_property(sprite, "transform/rot", 360, 0, 2, state.trans, state.eases, 2)
if get_node("modes/callback").is_pressed():
- tween.interpolate_callback(self, "on_callback", 0.5, "0.5 second's after")
- tween.interpolate_callback(self, "on_callback", 1.2, "1.2 second's after")
+ tween.interpolate_callback(self, 0.5, "on_callback", "0.5 second's after")
+ tween.interpolate_callback(self, 0.2, "on_callback", "1.2 second's after")
if get_node("modes/follow").is_pressed():
follow.show()