<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[A5] Timer events</title>
		<link>http://www.allegro.cc/forums/view/612407</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 14 Apr 2013 06:10:12 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello, i recently started out with Allegro and game programming in general so i don&#39;t really get all the concepts yet so sorry if this is a bad question.</p><p>I&#39;ve read up a bit about interpolation and handling of frame skipping on the forums and i think i get most of it, except one part which i would like to get a bit of clarity on.</p><p>The general way of determining interpolation values seem to be<br /><span class="source-code">interpolation <span class="k3">=</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/al_get_time"><span class="a">al_get_time</span></a><span class="k2">(</span><span class="k2">)</span> <span class="k3">-</span> offset <span class="k3">-</span> gametime<span class="k2">)</span> <span class="k3">/</span> dt</span></p><p>and for calculating gametime there seems to usually be something in the form of<br /><span class="source-code">gametime <span class="k3">=</span> event.timer.count <span class="k3">*</span> dt</span></p><p>Now the thing i&#39;m having a bit trouble with is what <b>event.timer.count</b> refers to.</p><p>Is it the time since the timer itself started counting? The time it has been sitting in the queue?</p><p>Would love to get some clarity on this.</p><p>Thanks in advance.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (boNltt)</author>
		<pubDate>Sun, 14 Apr 2013 05:33:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It increments by 1 every time an ALLEGRO_EVENT_TIMER is triggered, and it starts at 0 when the timer is created. You can also reset it via <span class="source-code"><a href="http://www.allegro.cc/manual/al_set_timer_count"><span class="a">al_set_timer_count</span></a></span>, so it&#39;s not quite as simple as simply saying &quot;number of times it ticked since being started&quot;.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sun, 14 Apr 2013 06:10:12 +0000</pubDate>
	</item>
</rss>
