# \[SOLVED\] How to create a queue of spawning game objects after one another and stopping based on a countdown timer

**URL:** <https://forum.defold.com/t/solved-how-to-create-a-queue-of-spawning-game-objects-after-one-another-and-stopping-based-on-a-countdown-timer/71977>\
**Category:** Questions\
**Created:** [October 31, 2022, 3:53am UTC](https://forum.defold.com/t/solved-how-to-create-a-queue-of-spawning-game-objects-after-one-another-and-stopping-based-on-a-countdown-timer/71977 "2022-10-31T03:53:39Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![accoladious](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/accoladious/32/30113_2.png) [@accoladious](https://forum.defold.com/u/accoladious)\
**Post date:** [November 2, 2022, 1:34am UTC](https://forum.defold.com/t/solved-how-to-create-a-queue-of-spawning-game-objects-after-one-another-and-stopping-based-on-a-countdown-timer/71977/19 "2022-11-02T01:34:18Z")

</div>

I see. Oh I see, I’m reading your previous [post on Explanation of the “self” argument for dummies](https://forum.defold.com/t/explanation-of-the-self-argument-for-dummies/44691/2) and I think I’m somewhat understanding it. I originally used `self` to make it so the variable be different for every instance so I think I’m doing it right.So line 7 is `self.book_code = ""`. So I’m debugging it again, reaching to the original error, clicking the triangle to forward it and jumping to here.

![image](https://defold-forum-bucket.nbg1.your-objectstorage.com/original/3X/7/3/73e74389e50a4d1208e78169c7301b8288409053.png)

So if `self` is a table, and I’m indexing a global `self` from my `book.script`, then does that mean I was trying to access the `self` table inside of `insert-book-code.script` or vice versa?  
Sorry, I’m just having a hard time grasping this.

I guess another question would be, what is the key in this case.

Wait, so I’m using the factory to create an instance of a game object, and I’m using `self` to make sure each variable of each instance of it is unique and not shared, but then inside of that game object, I have a script that’s also attempting to use `self` to make sure each instance of it has unique variable values. 🤔

Wait a minute, if I’m already making a new instance of `book.go` inside of `insert-book-code.script`, why would I need `self.book_code` inside of `book.script`.

---

_[View the full topic](https://forum.defold.com/t/solved-how-to-create-a-queue-of-spawning-game-objects-after-one-another-and-stopping-based-on-a-countdown-timer/71977)._
