<?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[Execute and wait for behaviour bundle to finish]]></title><description><![CDATA[<p dir="auto">Is there a way to execute (behaviour on) a behaviour bundle, and wait for it to finish running before continuing the main code.</p>
<p dir="auto">Example:<br />
<img src="https://assets.forum.hyperpad.com/assets/be6228a4-072d-4e20-9d09-e451113dccbf.jpeg" alt="91EA4E2E-323B-48A9-A0C7-D3B371298053.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hyperpad.com/topic/1490/execute-and-wait-for-behaviour-bundle-to-finish</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 21:11:40 GMT</lastBuildDate><atom:link href="https://forum.hyperpad.com/topic/1490.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Nov 2020 04:25:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Execute and wait for behaviour bundle to finish on Sat, 07 Nov 2020 16:30:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kamdroid" aria-label="Profile: Kamdroid">@<bdi>Kamdroid</bdi></a> Just after doing some testing, for me the game seems to always actually wait for the calculation to finish before moving on to the next behaviour under behaviour on anyway, even when calculate result had loops.</p>
]]></description><link>https://forum.hyperpad.com/post/9819</link><guid isPermaLink="true">https://forum.hyperpad.com/post/9819</guid><dc:creator><![CDATA[Aidan_Fire]]></dc:creator><pubDate>Sat, 07 Nov 2020 16:30:24 GMT</pubDate></item><item><title><![CDATA[Reply to Execute and wait for behaviour bundle to finish on Sat, 07 Nov 2020 09:03:55 GMT]]></title><description><![CDATA[<p dir="auto">Since I'll be using the "calculate result" function multiple times in different places, I think the best option is:</p>
<ul>
<li>Use broadcast/receive message. When using "calculate result", supply a parameter that says the name of the "receive message" key to activate (basically a callback function)</li>
</ul>
<p dir="auto">Which is similar to the separated behaviour bundle + "behaviour on" technique.</p>
<p dir="auto">If I could dynamically supply the name of what behaviour bundle I want to activate, then I would choose to do that, since having multiple "receive message" might have a tiny performance impact.</p>
]]></description><link>https://forum.hyperpad.com/post/9816</link><guid isPermaLink="true">https://forum.hyperpad.com/post/9816</guid><dc:creator><![CDATA[Kamdroid]]></dc:creator><pubDate>Sat, 07 Nov 2020 09:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to Execute and wait for behaviour bundle to finish on Fri, 06 Nov 2020 14:09:06 GMT]]></title><description><![CDATA[<p dir="auto">How I’d do it: After the calculated result behaviour wherever it is, behaviour on the thing that does stuff with the calculated result. So you would disconnect Get Calculated Result and turn it off.<br />
<img src="https://assets.forum.hyperpad.com/assets/5505f371-e271-4592-8a30-50bca94f6fa6.png" alt="FD287F69-0E80-418D-A0B8-548B5308BE85.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hyperpad.com/post/9812</link><guid isPermaLink="true">https://forum.hyperpad.com/post/9812</guid><dc:creator><![CDATA[Aidan_Fire]]></dc:creator><pubDate>Fri, 06 Nov 2020 14:09:06 GMT</pubDate></item><item><title><![CDATA[Reply to Execute and wait for behaviour bundle to finish on Thu, 05 Nov 2020 05:31:01 GMT]]></title><description><![CDATA[<p dir="auto">Use <strong>broadcast message</strong> and <strong>receive message</strong>. They work like "functions" where code will only continue to run after all the code in the receive message behavior has been executed.</p>
<p dir="auto"><strong>Broadcast message</strong> to call an event (you can put parameters in it too!) and <strong>receive message</strong> to handle the event.</p>
]]></description><link>https://forum.hyperpad.com/post/9809</link><guid isPermaLink="true">https://forum.hyperpad.com/post/9809</guid><dc:creator><![CDATA[RobinsonX]]></dc:creator><pubDate>Thu, 05 Nov 2020 05:31:01 GMT</pubDate></item></channel></rss>