Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gamedivision on February 26, 2014, 07:39:41 PM

Title: Poolmanager question
Post by: gamedivision on February 26, 2014, 07:39:41 PM
Is there someway of spawning a random game object from poolmanager,I'll add 4 cubes 1 red,1white, 1blue,1yellow I would like to be able to randomly spawn one of those cubes,in the poolmanager actions I don't see random spawn

Thanks
Title: Re: Poolmanager question
Post by: mweyna on February 26, 2014, 07:50:00 PM
You could do something where you have an FSM with a Random INT action, then INT compare to the number it picks. Assign each Game Object a corresponding INT, then have it randomly pick one of those numbers with a corresponding spawn game object action.