There must be a way of delaying a GUI node from being unloaded but I am not sure how to implement it, I want this as my gui animation when pressing a pause button works fine but once i press resume it doesn’t show the animation from resume being pressed, so I want to delay it being unloaded so it has time to show the animation then unloads once the animation is done or a certain period of time
Use the complete_function
argument of gui.animate()
to run code once an animation has completed. Small example:
gui.animate(my_node, "position.y", 100, gui.EASING_LINEAR, 2, nil, function()
print("Animation done!")
end)
2 Likes
Thank you. i should stop skimming through API references