Godot Version
4.1.2
Question
I’m trying to create a crafting menu in my game that completely pauses the game and allows the player to move items around and craft items.
func resume():
$crafting.hide()
get_tree().paused = false
func pause():
get_tree().paused = true
$crafting.show()
func craftUI():
if Input.is_action_just_pressed("crafting") and !get_tree().paused:
pause()
elif Input.is_action_just_pressed("crafting") and get_tree().paused:
resume()
func _process(delta):
craftUI()
The issue I’m having is that some of my crafting menu functions like tweens and placing items on top of another item to combine them are not working due to the game being paused. Is there a way around this?
My crafting menu control node (which contains the UI elements and is what is displayed when the crafting menu button is hit) and item scenes have all of their process modes set to When Paused.
I have heard that you can enable the PhysicsServer even while the game is paused but I’m having a hard time understanding how that works.