Tween, delay when used in custom behavior
I use the Tween behavior to animate the button. Desired result:
To make it more useable, I’ve created a separate behavior in the project that does this animation. But when you restart the current scene (the
Change to scene CurrentSceneName() functions), there is a delay in the behavior.
In the demo project, I created 2 options for describing this animation (for each object its own version):
In scene events:
In a separate behavior:
When restarted, the animation from the behavior starts running later. Result:
At the same time, if you switch to another scene and return, then everything works correctly.
Project example: custom_behaviors_delay.zip
Can you please tell me what is the problem?