Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Mar 5, 2018
2 parents 6289321 + 7d99f74 commit a11394d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example/example.gui_script
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@ local function create_characters_example()
gui.delete_node(wave.node)
for i,char in ipairs(chars) do
local pos = gui.get_position(char.node)
gui.animate(char.node, gui.PROP_POSITION, pos + vmath.vector3(0, 15, 0), gui.EASING_INOUTSINE, 2, i * 0.3, nil, gui.PLAYBACK_LOOP_PINGPONG)
local pos_2 = gui.get_position(char.node)
pos_2.y = pos_2.y - 3
pos_2.x = pos_2.x + 2
gui.set_position(char.node, pos_2)
gui.animate(char.node, gui.PROP_POSITION, pos + vmath.vector3(0, 3, 0), gui.EASING_INOUTSINE, 0.6, i * 0.12112, nil, gui.PLAYBACK_LOOP_PINGPONG)
gui.animate(char.node, "color.x", 0.9, gui.EASING_INOUTSINE, 0.2, i * 0.12112, nil, gui.PLAYBACK_LOOP_PINGPONG)
gui.animate(char.node, "color.y", 0.9, gui.EASING_INOUTSINE, 0.6, i * 0.12112, nil, gui.PLAYBACK_LOOP_PINGPONG)
gui.animate(char.node, "color.z", 0.9, gui.EASING_INOUTSINE, 10, i * 0.12112, nil, gui.PLAYBACK_LOOP_PINGPONG)
gui.animate(char.node, "scale", 1.2, gui.EASING_INOUTSINE, 1.5, i * 0.12112, nil, gui.PLAYBACK_LOOP_PINGPONG)
end
end
end
Expand Down

0 comments on commit a11394d

Please sign in to comment.