#tween is not working

22 messages · Page 1 of 1 (latest)

trim gate
#

tween don't working

#

tween is not working

#

??

ocean loom
#

What is the position of the pause menu in the Inspector ? From the code I'm guessing you want it to slide in from the side?

night zinc
#

and everything else in the function is working ?

ocean loom
# trim gate its ( 0, 0)

What about your camera's position? I once ran into this and turned out my object was tweening off camera.

sharp parcel
#

I had a funny once where I also had tweens that didn't work when I went to my pause menu.

If you are pausing through get_tree().is_paused, you need to make sure that your $PauseMenu is indeed either on PROCESS_ALWAYS or PROCESS_WHEN_PAUSED and that the tween inherits (by default it should) the same processing variable.

trim gate
trim gate
#

guys when i pause the game i use the two tricks

#

(using the get_tree and the engine time_scale in the same time)

#

is this make the problem?

night zinc
ocean loom
#

You could try debugging it with print, print the position of PauseMenu before the tween and again after the tween (using tween.finished.connect()) to check if the position has been updated or not.

trim gate
ocean loom
#

Hmm 🤔, could you send me the project I'll have a look at it. You can just send me the scene with then pause menu function

trim gate
#

in your DM

#

but i think its from time_scale bcs when i add # to it, it worked

ocean loom
#

Yup, it is indeed from time_scale.