#tween is not working
22 messages · Page 1 of 1 (latest)
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?
its ( 0, 0)
and everything else in the function is working ?
What about your camera's position? I once ran into this and turned out my object was tweening off camera.
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.
yep when i press it it makes the sound
i dont have camera in the ui (i have in the player)
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?
This prob won't do anything but try delete the self in the create tween
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.
i did but the same issue
it prints ( 0, 0) twice
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
ok
in your DM
but i think its from time_scale bcs when i add # to it, it worked
Yup, it is indeed from time_scale.