Shake object problem

hello, i’m using the shake object extension in my main project to make the weapons shake when they fire and i noticed that when the layer is paused, the weapon if it is shaking starts to move by itself.

i created a small example to show what is happening

I’m on my phone so I can test your project.

I’m assuming you’re setting the layer time scale to zero. I tested it by setting the layer time scale to zero while shaking an object and the object goes off on its own.

The issue appears to be that when the layer is paused, the object timers are also paused. So, the shake timing doesn’t work and it just keeps adding to the position because the set time will never be reached when the timer isn’t being updated.

Disabling the shake behavior when the layer time scale is set to 0 fixes it as does also setting the scene time scale to 0.

3 Likes

it was fixed by disabling the behavior when the layer time is 0 and re-enabling it when it is 1 it works.
thanks a lot

3 Likes