# Objects spawned from same factory are not showing

**URL:** <https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633>\
**Category:** Questions\
**Created:** [October 10, 2019, 2:56pm UTC](https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633 "2019-10-10T14:56:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kidkiedis](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@kidkiedis](https://forum.defold.com/u/kidkiedis)\
**Post date:** [October 10, 2019, 2:56pm UTC](https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633/1 "2019-10-10T14:56:32Z")

</div>

Trying to spawn 2 groups of objects (from same factory) in 2 runs.  
On a first run it is a field of spawned factory GOs showing where character can go, and then on a second run I spawn a line of the same GOs showing path to target, just with sprites switched from fill to lines. While field is showing perfectly, line is not showing at all.

No errors, all instances are in a table, and if I change factory, it works. It just doesn’t show up if I use the same factory. Is some cases coordinates match, but other factories still spawn.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 10, 2019, 4:28pm UTC](https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633/2 "2019-10-10T16:28:44Z")

</div>

Are the spawned game objects and their visual representation (sprites?) perhaps rendered behind a background image or outside rendered z-range?

---

<div class="post-metadata">

**Author:** ![kidkiedis](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@kidkiedis](https://forum.defold.com/u/kidkiedis)\
**Post date:** [October 10, 2019, 5:31pm UTC](https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633/3 "2019-10-10T17:31:41Z")

</div>

Nope, I’ve tested it with new objects which are absolute copy of original and even use the same atlas. And they work.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 10, 2019, 7:44pm UTC](https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633/4 "2019-10-10T19:44:38Z")

</div>

Share the project or a repro case here and I’ll take a look.

---

<div class="post-metadata">

**Author:** ![kidkiedis](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@kidkiedis](https://forum.defold.com/u/kidkiedis)\
**Post date:** [October 11, 2019, 8:46am UTC](https://forum.defold.com/t/objects-spawned-from-same-factory-are-not-showing/63633/5 "2019-10-11T08:46:04Z")

</div>

Oh guys, I’am so dumb. 🤣 All objects are being initiated with 0 alpha and I forgot that.

I guess you’re so responsive that it made me a bit lazy in terms of checking everything twice before asking on forums.

Sooo sorry for that.
