Game Development Community

Does mounted objects automatically get visible? [closed]

by Max Kielland · in Torque Game Builder · 02/08/2013 (3:53 pm) · 1 replies

I have a cursor sprite and in some game modes I mount another static sprite to the cursor sprite. So far everything is fine.

Then I hide the mounted sprite (Visible = false) and then hide the cursor sprite. When I show the cursor sprite the mounted sprite is visible as well, even if it Visible was explicitly set to false before.

Can some one confirm if I show a sprite, all mounted sprites will also be shown, and to do what I want I need to destroy and recreate the mounted sprite to control its visibility.

#1
02/11/2013 (9:34 am)
I found the attribute inheritance flag, but solved it by destroying and creating the sprite instead of hiding/showing it.