[SOLVED] Create an actor just once?

Jg41095

  • Posts: 39
Probably very basic, but I'm having some trouble and can't figure this out.  I'd like to create an actor (pop-up menu)  after a level completion (when the player enters a region)  but my current behavior creates infinite amounts of the actor and crashes the game.  I'd like to create just 1.  Any help?


« Last Edit: April 01, 2017, 09:51:17 pm by Jg41095 »

stefan

  • *
  • Posts: 2263
Assign the last created aactor to an actor attribute, and only execute the code when that actor attribute has no value.

VoidShard

  • Posts: 81
Another simple way of doing this is to delete the finish region.

Jg41095

  • Posts: 39
Assign the last created aactor to an actor attribute, and only execute the code when that actor attribute has no value.
Took me a while to figure this out but I got it to work.  Thanks