# window_time_is
window_time_is(frame)
Source (opens new window)
Check if the current window_timer
equals the given frame
and the attack is not in hitpause.
// Without Assistant
// Forgetting `!hitpause` can cause hard to detect bugs.
if window_timer == frame and !hitpause {
sound_play(sound_get("airhorn"))
}
// With Assistant
if window_time_is(frame) {
sound_play(sound_get("airhorn"))
}
Parameters:
frame
: (int) The frame to check equality for.
See Also
- window_time_is_div: Check if the current frame is divisible by a number.