I'm sorry, probably late to the party :D
Looking to do things through program rather than nodes. c#
Made a float variable, set an if statement to check if it's working.
public class maketimer : Node2D
{
// Declare member variables here. Examples:
// private int a = 2;
// private string b = "text";
public float myTime = 0.0f;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
System.Console.WriteLine("confirm script");
hello();
}
// // Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(float delta)
{
myTime += delta;
System.Console.WriteLine(myTime.ToString());
if(myTime > 3){
System.Console.WriteLine("tick");
myTime = 0;
}
}
public void hello(){
System.Console.WriteLine("from timer");
}
}