timer
based on FPS? Timer from Chingu often misses some crucial lines in my game (jump distance, attacking delays, etc)...timer
method from Chingu?class YourWindow
def initialize
...
$time = 0
end
def update
$time += 1
...
end
...
end
@timer ||= $time
if $time == @timer + your_time
@timer = nil
...
end
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill