I have been trying to get a Timer working to make my own mission. I have looked at the other missions and found this code as a timer.
mission_timer = 40
mission_timer = mission_timer - delta
if mission_timer == 0 then
When I use that on my own code it does not work. I printed the value of mission_timer out and instead of going down from the original it just lingers going up and down and never reaches the value it should(0 in this case). Can someone explain to me how to make a timer or how delta is used? Thanks.