How do you make a loop that subtracts 1 to a variable each frame?
Hello! I am pretty new to AE expressions so I apologize for my behavior if it is inconvenient.
I currently have this,
if (k != y) {
k = k - time
}
I wish to make it so k decreases by 1 every frame once it is not y; however, the time variable not does account for when k is not y and does not decrease it by 1 each frame.
Any tips? Should I be utilizing things such as "while"? I have noticed Javascript does not have any sleep/wait/delay functions and was wondering if AE had any of those.
