<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Spawners — Orx: Portable Game Engine</title>
      <link>https://forum.orx-project.org/index.php?p=/</link>
      <pubDate>Sun, 05 Apr 2026 23:53:45 +0000</pubDate>
          <description>Spawners — Orx: Portable Game Engine</description>
    <language>en</language>
    <atom:link href="https://forum.orx-project.org/index.php?p=/discussions/tagged/spawners/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Child Objects with Associated Bodies</title>
        <link>https://forum.orx-project.org/index.php?p=/discussion/9064/child-objects-with-associated-bodies</link>
        <pubDate>Fri, 15 Nov 2019 20:53:49 +0000</pubDate>
        <category>General discussions</category>
        <dc:creator>zgcrowno</dc:creator>
        <guid isPermaLink="false">9064@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Hi, all. I'm currently working on a project which involves a number of "Ship" objects which all share a large number of behaviors with one another. Each ship has four associated spawners (guns) which spawn different projectiles in similar, but not identical ways from ship to ship. I've encountered some odd behavior when trying to implement the latest projectile, however, and was hoping for a little elucidation on the matter.</p>

<p>Most of the projectiles spawned by the ships' spawners are to be completely detached from their respective spawners upon spawning, but one in particular is meant to be parented by its spawner, and move along with it (this behavior might seem a little odd, but I'm wishing to implement it this way so as to leverage the base Ship class' behaviors for all of its descendents). Unfortunately, when parenting the spawned projectile to its spawner, the projectile doesn't move along with it at a 1:1 ratio, but rather follows it incredibly slowly, in effect not being attached to its parent in any meaningful way at all. I've found that the forum threads, <a rel="nofollow" href="https://forum.orx-project.org/discussion/3837/creating-a-laser/p1" title="Creating a Laser">Creating a Laser</a> and <a rel="nofollow" href="https://forum.orx-project.org/discussion/comment/3497#Comment_3497" title="UseSelfAsParent Makes Spawner Move Twice as Fast">UseSelfAsParent Makes Spawner Move Twice as Fast</a> seem to address the same problem, and removing the projectile's Body attribute <em>does</em> "resolve" the issue, but the fact remains that this projectile <em>must</em> have a Body in order to collide with its necessary colliders. I attempted to circumvent the issue by following the <a rel="nofollow" href="https://wiki.orx-project.org/en/tutorials/passing_objects?s[]=child&amp;s[]=body#discussion__section" title="Passing Items from one Object to Another">Passing Items from one Object to Another</a> tutorial, and explicitly setting the parent of spawned objects, but this results in the same behavior.</p>

<p>Is there some trick to parenting objects with Body attributes that I'm unaware of, or do I really need to dispense with my universal spawner behavior and incorporate these projectiles as body parts of their associated ships? Thanks in advance.</p>
]]>
        </description>
    </item>
    <item>
        <title>New tutorials: Relative Position and Scale for Objects and Spawners</title>
        <link>https://forum.orx-project.org/index.php?p=/discussion/9032/new-tutorials-relative-position-and-scale-for-objects-and-spawners</link>
        <pubDate>Fri, 14 Jun 2019 02:21:10 +0000</pubDate>
        <category>Website</category>
        <dc:creator>sausage</dc:creator>
        <guid isPermaLink="false">9032@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Objects and Spawned objects can both operate within a Parent's relative position and scale. These two tutorials show you how easy it is:</p>

<ul>
<li><a rel="nofollow" href="http://orx-project.org/wiki/en/tutorials/useparentspace" title="UseParentSpace for Relative Object Positioning and Scaling">UseParentSpace for Relative Object Positioning and Scaling</a></li>
<li><a rel="nofollow" href="http://orx-project.org/wiki/en/tutorials/useparentspace_for_spawners" title="UseParentSpace for Spawners using Relative Position and Scale">UseParentSpace for Spawners using Relative Position and Scale</a></li>
</ul>
]]>
        </description>
    </item>
   <language>en</language>
   </channel>
</rss>
