playMaker

Author Topic: Get Next Child Issue  (Read 1048 times)

apageeltd

  • Playmaker Newbie
  • *
  • Posts: 38
Get Next Child Issue
« 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,

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get Next Child Issue
« Reply #1 on: April 29, 2019, 04:56:48 PM »
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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Next Child Issue
« Reply #2 on: May 07, 2019, 01:57:36 AM »
Hi,

 Did you get a resolution on this?

 Bye,

 Jean