Yan
Member
I've made a simple invicibility variable so my player character won't be able to get stuck being hit over and over again without being able to fight back, it works fine but there is no way to tell when it starts and ends since my character doesn't change at all. So how do I make my character sprite flicker on and off whenever that specific variable is above zero?
(I'm also using Davey's sprite cycling [http://nesmakers.com/viewtopic.php?f=40&t=5960] that cycles all objects except the player character in case that interferes with anything)
I would also appreciate if anyone could tell me a way to make the enemies change palette for a few frames after being hit before going back to their original color.
thanks in advance and sorry if that has been asked before :lol:
(I'm also using Davey's sprite cycling [http://nesmakers.com/viewtopic.php?f=40&t=5960] that cycles all objects except the player character in case that interferes with anything)
I would also appreciate if anyone could tell me a way to make the enemies change palette for a few frames after being hit before going back to their original color.
thanks in advance and sorry if that has been asked before :lol: