How to create an endless supply of an object

lauryv
22 Feb 2013, 17:38
Hello everyone

I'm trying to make my very first Quest game and I'm having a little trouble with something. It's probably very easy, but I can't figure it out.

I want to make a big box with crackers in it (for a puzzle involoving a parrot). The player can take a cracker from the box and he needs it to complete the puzzle, but he can also lose the cracker without completing it (for instance by simply eating it himself).
I want the player to be able to take a cracker from the box over and over again until he has completed the puzzle.
The only way I can think of to do this is by making a very large amount of "cracker" objects and make them invisible, but there's probably a much simpler way.

jaynabonne
22 Feb 2013, 18:11
Can the player have more than one cracker at a time? If not then, you can simply reuse the same object, moving it around as needed. If you do want to have an unlimited number at a time, then you can clone an internal cracker object to create as many as needed. (That is a more advanced concept, though.)

lauryv
22 Feb 2013, 18:29
I think I'll do it by moving it around then. I probably should have figured that out myself.
Thanks for your help!