Any potential causes for Godot to just hang on the splashscreen when you debug your game (not showing any errors)
The issue started after I implemented a while function that set daygoal minutegoal etc and sped up time until it hits that
while day != daygoal or minutes != minutegoal or ampm != ampmgoal:
$Timer.wait_time = 0.1
if day == daygoal and minutes == minutegoal and ampm == ampmgoal:
$Timer.wait_time = 15
this is the code that causes hanging (removing it makes my game run fine)
The problem is Timer.wait_time never changes from 0.1, it's always 0.1 in your code.
It should be $Timer.wait_time+=delta, or something like this. What variables are advancing to break the loop?
Is minutes passing the minutegoal rather than landing on it?
I don't think it is because time only moves on 15 "minute" intervals, so when it's 0.1 every 0.1 seconds it would add 15 minutes (and change the hours and days as necessary)
Also what confuses me is that the time isn't speeding up UNLESS the player enters the bed which is by design but why would that cause a hang right when the game starts when the player isn't