Forum rules - please read before posting.

Most correct way to hide/show NPC

What would be the most correct way to "toggle an NPC on/off"?

Specifically I need an NPC to start out invisible, and then at a later point make him appear. I've been looking at the options in Character -> Change rendering (e.g. put the character on a sorting layer that's behind the camera), but I'm not sure how to make the engine remember that, when the scene is reloaded. Also, I'm not sure if there is a better way?

Comments

  • 2D or 3D, and would the character still need to be interactive when hidden?

    If not, it's easiest to just re-position him to a Marker out of view with the Object: Teleport Action.

  • 2D, and the character need not be interactive, but he will need to be able to speak. At the moment I used Visibility on the sprite child. Is that problematic in any way?
  • You'll need to attach a Remember Visibility component to save the invisible state, which should be find so long as you don't control their visibility also through animation.

  • Yes, I am aware of Remember Visibility. Thanks, I'll just use this method then.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.