playMaker

Author Topic: Create object  (Read 2299 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Create object
« 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! :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: Create object
« Reply #1 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)



Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Create object
« Reply #2 on: June 04, 2014, 08:51:45 PM »
Hi!
Thank you!
I will take a look at it. It looks something I need. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no