Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: apageeltd on April 28, 2019, 03:28:15 PM
-
Hello,
I am having some trouble with the action Get Next Child
1st : I have a Empty game object where inside the object i placed some Coin with (Position :3 z) apart . As a Child. Then Made The prefab of the Empty Game Object
Now I want to Spawn the Child of The Game Object . With the Position of ( 3 z pos apart)
So When i trying to spawn the Child by calling the action Get Child Next.
It only spawn 1 Object in the spawner which i placed on the scene.
Then i tried to put a Child count : Which represents the exact number of Child The Game object have .
But when i spawn it shows 1 object only ....or is it that it got 4 object inside each other.
so i want to spawn the coins in the position i paced into the Intial Game obj .
Any Help Would be of freat help.
Regards,
-
Hi.
From the image i can see that your setup is probably wrong.
try this :
State 1 :
get next child.
State 2 (loop) :
option 1 :
get position of the child object then create object to that position
option 2 :
create object and store in a variable, then use Set Parent and reset position.
transition back to State 1
Place another state to connect when next child has finished
-
Hi,
Did you get a resolution on this?
Bye,
Jean