playMaker

Author Topic: [SOLVED] Hide Parent+Children?  (Read 1668 times)

Davision

  • Playmaker Newbie
  • *
  • Posts: 23
    • View Profile
[SOLVED] Hide Parent+Children?
« on: June 23, 2012, 11:32:16 AM »
I would like to hide a parent and all its children at once, is there a way to do this without turning off the script of the parent and the collisions of the childs?

I dont want to hide each children on its own with a loop because there a lot of children and after the hide it needs to unhide very quick again.
« Last Edit: June 24, 2012, 04:03:39 PM by Alex Chouls »

kiriri

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: Hide Parent+Children?
« Reply #1 on: June 23, 2012, 12:26:35 PM »
I don't know if there's any educated way of doing this.... but I'd just transform it by 100000 on the y axis to hide it, and by -100000 to show it again. It all happens in one frame so there's no way the player could say it was moved.
Best,
Sven

Davision

  • Playmaker Newbie
  • *
  • Posts: 23
    • View Profile
Re: Hide Parent+Children?
« Reply #2 on: June 23, 2012, 12:39:41 PM »
Yea, that would be a good way to do it but changing the position of the collisions will break it for me.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14585
  • Official Playmaker Support
    • View Profile
Re: Hide Parent+Children?
« Reply #3 on: June 23, 2012, 01:02:37 PM »
Hi,

 Maddox has it all covered for you :)

http://hutonggames.com/playmakerforum/index.php?topic=159.0

bye,

 Jean

Davision

  • Playmaker Newbie
  • *
  • Posts: 23
    • View Profile
Re: Hide Parent+Children?
« Reply #4 on: June 23, 2012, 01:31:36 PM »
Sweet!