Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Focus on the problem, not the genre
Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

Making Unpausing a one touch mobile game in godotwhen a TouchScreenButton node is released

Source Link

Making a one touch mobile game in godot

I'm making a mobile game in the Godot game engine. I made a spike scene where the spikes will respawn at a random time in a particular position moving upwards. Then I instanced the scene in the main scene, it worked perfectly, the spikes moving up and appearing in a particular position. Then I created a TouchScreenButton node in the main scene and changed it pause property to process and then added a _OnPressed and _OnReleased signal to the main scene script then added this code to the _OnPressed function get_tree().paused = true And added this code to the _OnReleased function get_tree().paused = false

But when ever I press and release the button it only pauses the scene

What should I do?