How to destroy and spawn actor?

michaeln93michaeln93 Member, PRO Posts: 68

My game I am collecting coins but when I put collides with player and destroy the coin doesn't appear anymore. What do I do? I want it to disappear when the player touches it but also spawn again randomly later.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2014

    Eats, shoots and leaves ! :)

    Your question is not very clear !

  • michaeln93michaeln93 Member, PRO Posts: 68
    edited April 2014

    @Socks said:
    Eats, shoots and leaves ! :)

    Your question is not very clear !

    I am trying to create a platformer game where the player collects as many coins as he can to score points. The problem is that I want the coins to disappear when the player touches it. To do this I put a rule in the coin to be destroyed when it overlaps or collide with the player. But since the (first) coin gets destroyed, the game doesn't spawn anymore coins. So my question is how can I make the coin disappear when the player touches it but also have it spawn more?

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    dont have the coin spawning coins, have a different actor to spawn the coins for you.
    then your problem will be solved

  • michaeln93michaeln93 Member, PRO Posts: 68

    @CodeMonster said:
    dont have the coin spawning coins, have a different actor to spawn the coins for you.
    then your problem will be solved

    Omg it's so simple. Thank you. xD

Sign In or Register to comment.