<?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[Add a block to point at closest clone&#x2F; closest clone of a certain sprite]]></title><description><![CDATA[<p dir="auto">This could save so much effort into making a decent targeting system for top-down shooter games and stuff.</p>
]]></description><link>https://forum.creaticode.com/topic/1882/add-a-block-to-point-at-closest-clone-closest-clone-of-a-certain-sprite</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 21:32:01 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/1882.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Mar 2025 15:51:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Add a block to point at closest clone&#x2F; closest clone of a certain sprite on Fri, 27 Jun 2025 14:50:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.creaticode.com/uid/627">@sirbots</a></p>
<p dir="auto">We have added 2 new blocks to make it easier to work with clones. Please check them out there:</p>
<p dir="auto"><a href="https://www.forum.creaticode.com/topic/2032/2-blocks-to-scan-for-clones" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.forum.creaticode.com/topic/2032/2-blocks-to-scan-for-clones</a></p>
]]></description><link>https://forum.creaticode.com/post/7999</link><guid isPermaLink="true">https://forum.creaticode.com/post/7999</guid><dc:creator><![CDATA[info-creaticode]]></dc:creator><pubDate>Fri, 27 Jun 2025 14:50:48 GMT</pubDate></item><item><title><![CDATA[Reply to Add a block to point at closest clone&#x2F; closest clone of a certain sprite on Wed, 19 Mar 2025 00:03:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.creaticode.com/uid/4">@info-creaticode</a> I have 2 solutions to that.</p>
<p dir="auto">1: Have the find closest clone automatically log each clone’s x and y coordinates of the target sprite every time it’s run.</p>
<p dir="auto">2: Add a block to calculate the positions of all clones of the target sprite.</p>
]]></description><link>https://forum.creaticode.com/post/7350</link><guid isPermaLink="true">https://forum.creaticode.com/post/7350</guid><dc:creator><![CDATA[SirBots]]></dc:creator><pubDate>Wed, 19 Mar 2025 00:03:35 GMT</pubDate></item><item><title><![CDATA[Reply to Add a block to point at closest clone&#x2F; closest clone of a certain sprite on Tue, 18 Mar 2025 23:14:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.creaticode.com/uid/627">@sirbots</a></p>
<p dir="auto">This needs some further discussion. Even if there is a block that returns the “clone ID” of the nearest clone of another sprite, you will still not know that clone’s x/y positions, right? So how would you calculate the distance to that clone?</p>
]]></description><link>https://forum.creaticode.com/post/7347</link><guid isPermaLink="true">https://forum.creaticode.com/post/7347</guid><dc:creator><![CDATA[info-creaticode]]></dc:creator><pubDate>Tue, 18 Mar 2025 23:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to Add a block to point at closest clone&#x2F; closest clone of a certain sprite on Tue, 18 Mar 2025 17:01:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.creaticode.com/uid/4">@info-creaticode</a><br />
So, as a block to fit in operators (for example: If touching - (closest clone of -sprite name-) then)</p>
<p dir="auto">Based on what the closest clone is, it would calculate the distance of the closest clone of the target Sprite from the clone or sprites location. Once the distance is calculated, then (As an example: See which clone is the closest, and if that distance is in a certain parameter of what Sprite is preforming the calculations with the block from where its at, then it would affect what code is gonna run.) it does the same for other clones of that target sprite, and changes the closest clone (use the ID for the number), accordingly when updating.</p>
<p dir="auto">So, simply put, it calculates where all clones of a target sprite is at, stores the coordinates, repetitively updates, and then points at whatever clone is the closest to it. Now that I think about it, this might need multiple blocks for each function.</p>
]]></description><link>https://forum.creaticode.com/post/7333</link><guid isPermaLink="true">https://forum.creaticode.com/post/7333</guid><dc:creator><![CDATA[SirBots]]></dc:creator><pubDate>Tue, 18 Mar 2025 17:01:58 GMT</pubDate></item><item><title><![CDATA[Reply to Add a block to point at closest clone&#x2F; closest clone of a certain sprite on Tue, 18 Mar 2025 16:30:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.creaticode.com/uid/627">@sirbots</a></p>
<p dir="auto">Can you describe in more detail what would be the input parameters and how the block would work?</p>
]]></description><link>https://forum.creaticode.com/post/7332</link><guid isPermaLink="true">https://forum.creaticode.com/post/7332</guid><dc:creator><![CDATA[info-creaticode]]></dc:creator><pubDate>Tue, 18 Mar 2025 16:30:15 GMT</pubDate></item></channel></rss>