GameSalad

Howdy, Stranger!

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

Spawn actor for a certain amount of time

pedro006pedro006 Posts: 0Member
Hi
I would like to know how to spawn an actor for a certain amount of time :)
thanks in advance

pedro

first time here :P

Comments

  • master200012master200012 Posts: 372Member
    In order to do so, spawn the actor, then put in a rule.

    When (attribute) self.time > (the number of seconds you want this actor to exist,

    Destroy.

    Or use a timer.

    After (time you want),

    Destroy.

    For better results, you can also have the actor start off-screen, then move into view, then back out of view. Make sure you look up recycling actors for this.

    Hope this helps!
  • J_PANJ_PAN Posts: 140Member
    @pedro006, try the timer behavior, it should work
This discussion has been closed.