playMaker

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

Davision

  • Playmaker Newbie
  • *
  • Posts: 23
[SOLVED] Hide Parent+Children?
« on: June 23, 2012, 02:32:16 PM »
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, 07:03:39 PM by Alex Chouls »

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Hide Parent+Children?
« Reply #1 on: June 23, 2012, 03: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
Re: Hide Parent+Children?
« Reply #2 on: June 23, 2012, 03: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: 15500
  • Official Playmaker Support
Re: Hide Parent+Children?
« Reply #3 on: June 23, 2012, 04: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
Re: Hide Parent+Children?
« Reply #4 on: June 23, 2012, 04:31:36 PM »
Sweet!