Hi, I recently started programming in Godot Engine
I had the idea of making a game, where you need to press a button to add 30 seconds to a timer, but I don’t know how to do it, is it possible to do it and how can I do it
I’m using Google Translate to make this post
i created this and this should do what you want. i have the button to add time, the label to display the time, and a timer.

This is the setting on the timer.
what this will do is you have a set time of 30,
var time = 30
and then every second using the _process and delta time the label will update and it will show the time. it uses .text and = to decide what the text will be
You then connect the button to a function, and every time the button is pressed, the time variable will increase.
now the timer wait time is every second and so every second the timer will call the function to decrease the wait time by 1 second.
I’m not sure how you could do this with only using a timer to wait for the variable, but I do think that it would be possible. What this does is just make it simple by using an int variable.