I need to implement to deduction coin for every 1 minute from user.
I would do this Player.gd
var game_started = false
var time_start = 0
var time_now = 0
func _process(delta):
if game_started == true:
//deduct_one_coin_every_one_minute(uid)
func start(pos):
print("clicked start the game");
time_start = OS.get_unix_time()
set_process(true)
game_started = true
How to call or execute a function deduct_one_coin_every_one_minute(uid)