Exported Game Graphical Glitch

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By YuleTide

Hello All

I am getting close to releasing my first game and have just done a full export for the first time. I am unfortunately getting an odd graphical glitch with one element though. One of the sprites on screen is supposed to flash and this works perfectly in the editor but in the exported game the sprite is just black. My code to make it flash is below, does anyone know why it would look so different in the editor vs the exported game? This function is activated by a timer fyi

func Varied():
	counter += 1
	if contBool == false:
		modulate.a = 4
		modulate.v = 1
		contBool = true
	elif contBool == true:
		modulate.a = 20
		modulate.v = 10
		contBool = false

Hello if it helps to answer this when I export as a debug option it works perfectly, it only goes wrong when I export as a full release. I would really appreciate any help anyone can provide as I am stumped.

YuleTide | 2023-02-20 09:15

Also I am on version 3.5.1, not sure why I put 5.4.1 but I was tired at the time.

YuleTide | 2023-02-20 09:17