I want to create random objects in an infinite runner platformer. The objects are tiled backgrounds and I need to create 1 out of them randomly each time.
Here's How I am doing it for 1 Object currently :
<img src="https://dl.dropboxusercontent.com/u/16564767/Screenshot%202014-02-01%2022.05.35.png" border="0" />
I tried using Object families, but couldn't get it to work. I created a family "Blocks" and put all my tiled Bg Objects that I wanted to choose randomly from,in it. Then I replaced the "Block" object with "Blocks" family object (in the pic that I showed above). But, that doesn't create any object at all, on the screen. As far as I read somewhere, It should randomly choose and create one object from the family.
I've tried giving the same behaviors to the family as those of its objects (bullet, solid)
Is there any other way to get it to work ? Am I missing something ?