How can I use a boolean without being affected by delay?

animation notifies or set timer by event/function name … both will work.