its done… Just spent time fixing on Warioware game, it took a really long, I was trying to figure out why my level for some reason, was going on level 1,2,3 straight to 5! What happened to my level 4. I literally just exported the game, uploaded it on itch.io played it, then realised HUH? for the next hour I just sat there staring at lines of code scrutinizing every individual variable line of code, (heck I even paid attention to the yellow labels!) I realised that I had been giving an extra command Global.minigames_done += 1 when my timer screen was already running that command, so the Global variable will run twice causing it to skip the 4th level. And also it happened that the lose screen buttons happened to not work, it was so annoying, RAAAAH. After another whole hour, it works! I had this function
func _process(delta):
if lives == 0:
lives = 5
get_tree().change_scene_to_file("res://lose_screen.tscn")
so i just added a line in front of the get_tree() function lives = 5. It’s finally working now!!
Comments 1
DUDE GOOD JOB. debugging can be a pain fr sometimes
Sign in to join the conversation.