pooling and spawning

hii …i am working on endless runner  game…my problem is with concept of  pooling …i have read different posts about pooling…so what i have done so far is 

 - i have created a table with near about 16 obstacle

  • second thing is i created a varibale to cik a random object from my obstacle pool

the problem start  when i try to restore any obstacle to the pool  again …

what i  want is

-randomly spawn an object randomly select from a pool of 5 object

-if  that object  get off the screen then again randomly spawn another object.

-second thing is after every 5 seconds i want to add one object to the obstacle pool

 so after  5 seconds pool have 6 object ,after seven second pool have 7 object and so on

You might want to look at:

https://marketplace.coronalabs.com/asset/endless-sk8boarder

This is an endless runner style game that randomly spawns things from a pool of objects. 

Rob

@rob 

thanks

Also, you may check Tutorial: Basic Spawning

And here…

Object Pooling in CoronaSDK

… not to mention, perhaps an upcoming announcement.  :o

You might want to look at:

https://marketplace.coronalabs.com/asset/endless-sk8boarder

This is an endless runner style game that randomly spawns things from a pool of objects. 

Rob

@rob 

thanks

Also, you may check Tutorial: Basic Spawning

And here…

Object Pooling in CoronaSDK

… not to mention, perhaps an upcoming announcement.  :o