J
Josh Broderick
Guest
Hi! I am creating a game where I have enemies wandering around until they come within "sight" (variable) of the player, then they will go after the player until the players goes outside their "sight". Everytime they see the player, I want them to flash, so the player knows they enemy has seen them. So far I've done a good job at making the enemy constantly white while they are chasing the player, then go back to normal afterwards, because I can't figure out how to set a variable to a given value only once until the if statement happens again. Please help!
I can post any of the coding needed to better understand what I need help with. I've seen other similar questions online, but none have been able to help me.
Thanks!
I can post any of the coding needed to better understand what I need help with. I've seen other similar questions online, but none have been able to help me.
Thanks!