<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Timer at 0 seconds doesn’t fire?]]></title><description><![CDATA[<p dir="auto">So, I am just trying out a simple breakout style game, and attempting to move the paddle by touch/holding it to do this, I have a while-holding behaviour set for world coordinates, I save the x coordinate into a box container. Then, I have a timer which reads the box container value, and sets the x position of the paddle object to that value.</p>
<p dir="auto">This works ok, if the timer is set to every 1S, although there is obvious lag from the time I move my finger to the time the paddle moves. However if I set the timer to anything less than 1s the paddle does not move at all. The ‘pong’ example states that if a timer is set to 0 then it should attempt to fire every frame, so what’s going on here?</p>
<p dir="auto">Note the label does indeed show the x position of where I am touch/holding correctly, and updates every frame (I believe). iit is simply the paddle movement that ceases to work if the timer is set to 0.</p>
<p dir="auto"><img src="https://assets.forum.hyperpad.com/assets/367533a3-09f0-472d-bff8-5b29a94fed28.jpeg" alt="ca5cc269-863d-42a3-82aa-076b1b6f09ba-image.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hyperpad.com/topic/1780/timer-at-0-seconds-doesn-t-fire</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 11:50:21 GMT</lastBuildDate><atom:link href="https://forum.hyperpad.com/topic/1780.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Sep 2023 08:35:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Timer at 0 seconds doesn’t fire? on Sun, 24 Sep 2023 02:36:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aceboss" aria-label="Profile: Aceboss">@<bdi>Aceboss</bdi></a> Yep!</p>
<p dir="auto">If the time to move (<code>duration</code>) is equal to or less than the <code>interval</code> of the timer, then it will be able to complete its movement.</p>
]]></description><link>https://forum.hyperpad.com/post/10789</link><guid isPermaLink="true">https://forum.hyperpad.com/post/10789</guid><dc:creator><![CDATA[RobinsonX]]></dc:creator><pubDate>Sun, 24 Sep 2023 02:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to Timer at 0 seconds doesn’t fire? on Fri, 22 Sep 2023 06:18:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robinsonx" aria-label="Profile: RobinsonX">@<bdi>RobinsonX</bdi></a> Got it (I think) - so if the timer is 0.02 the animation succeeds because there is sufficient time for the move to complete and the starting point to be updated before the next iteration, but in the case of 0 seconds it is firing so fast that the move doesn’t have time to complete and therefore it constantly starts at the same point, is that it?</p>
]]></description><link>https://forum.hyperpad.com/post/10784</link><guid isPermaLink="true">https://forum.hyperpad.com/post/10784</guid><dc:creator><![CDATA[Aceboss]]></dc:creator><pubDate>Fri, 22 Sep 2023 06:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to Timer at 0 seconds doesn’t fire? on Thu, 21 Sep 2023 18:44:26 GMT]]></title><description><![CDATA[<p dir="auto">This is case because every time the move behavior is triggered, it resets its previous animation. So using a duration of <code>0s</code> works because there's no animation.</p>
]]></description><link>https://forum.hyperpad.com/post/10782</link><guid isPermaLink="true">https://forum.hyperpad.com/post/10782</guid><dc:creator><![CDATA[RobinsonX]]></dc:creator><pubDate>Thu, 21 Sep 2023 18:44:26 GMT</pubDate></item><item><title><![CDATA[Reply to Timer at 0 seconds doesn’t fire? on Sun, 17 Sep 2023 02:07:32 GMT]]></title><description><![CDATA[<p dir="auto">UPDATE: Move to point works successfully as long as the timer duration is set to &gt;= 0.02</p>
<p dir="auto">If, however, timer duration is set to any value &lt; 0.02 (i.e. 0.019, 0.01, 0) then move to point fails. I am not filing this as a bug (yet) because I do not know whether this is expected behaviour.</p>
<p dir="auto">Remember: This code works as expected if timer duration &gt;= 0.02 but move to point fails silently if timer duration is set to &lt; 0.02</p>
<p dir="auto"><img src="https://assets.forum.hyperpad.com/assets/67108e05-ab48-456e-a5fc-53582bc733d4.jpeg" alt="985e7e94-093a-43f9-98c5-6a7160b3cc50-image.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hyperpad.com/post/10772</link><guid isPermaLink="true">https://forum.hyperpad.com/post/10772</guid><dc:creator><![CDATA[Aceboss]]></dc:creator><pubDate>Sun, 17 Sep 2023 02:07:32 GMT</pubDate></item></channel></rss>