I'm writing some code in c# and I just want to stop code execution for about half a second. This would be in the middle of functionality and I don't care at all about freezing the game or making it behave unresponsively, (although if avoiding making the os realises it's unresponsive can be avoided that would be good but not necessary).
So i tried a couple of things and it just doesn't seem to pause the game and I was wondering why this was, for example if I have a little code snippet like
GD.Print("start waiting");
OS.delay_msec (500);
GD.Print("stop waiting");
that kind of general structure but there was no discernible delay between "start waiting" and "stop waiting" being printed.
I also tried some other things such as
System.Threading.Thread.Sleep(500);
again no luck and I was wondering why this was and how I could fix it.