def delay(seconds)
for i in 0...(seconds * 1)
sleep 0.01
Graphics.update
end
end
delay(0.1)
def update
@count += 1
#rest of the update_method
end
if @count / Graphics.frame_rate == 15 # 15 seconds
# do something
end
rpgmaker said:There is ID3 class for ruby