Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Rabagast on June 03, 2014, 07:56:23 PM

Title: Create object
Post by: Rabagast on June 03, 2014, 07:56:23 PM
Hi!
I try to make a memory game, but with a new twist.
It select random object. And I store that in a variable. But when I create the objects. I want it to create only a specific numbers of cards, 2, 3, 6, etc.
Now it create a random of all the cards I have in the "Select Random Object". For example red, green and blue, until the randomspots in the scene are full. It can be 4 blue, 2 green and 7 red. Is it a way to do this, so I can choose how many of each color I want it to create?

Thanks! :)
Title: Re: Create object
Post by: vonpopov on June 04, 2014, 11:59:11 AM
you should use a database bro ;)

it sounds to me like the best way to manage this.
Take a look at this tutorial :

If you feel this could do the trick, then go for simplesqlite on the asset store ;)
(Monosqlite is discontinued)


Title: Re: Create object
Post by: Rabagast on June 04, 2014, 08:51:45 PM
Hi!
Thank you!
I will take a look at it. It looks something I need. :)