GameSalad

limited time for spawned actor to be seen on screen

last_hero_87last_hero_87 Posts: 1Member, PRO

Hello guys, I am working on a project and have difficulty in limiting the time of the spawned actor. I've made it spawn random(3,5) seconds but don't know how I can make it disappear after -for instance-0.2 secs. Help please

Comments

  • Two.ETwo.E Posts: 436Member, BASIC

    In the actor being spawned.

    Add a timer, and change it to "After". Type in the number of seconds you want the actor to disappear afterwards. Eg, random(0,20)/100

    In the timer, add a destroy behaviour.

    Now the actor will destroy it self after 0 - 0.2 seconds after being spawned.

    Best,
    Two.E

Sign In or Register to comment.