How to respawn actor. (fixed)

ohtukrwohtukrw Sir dogeMember Posts: 106
edited July 2016 in Working with GS (PC)

My hero collects these static coins and I have set up a destroy actor behaviour for them to disappear,
but I have no idea how to re spawn them after a set amount of time?
Unless I shouldn't destroy them in the first place? :neutral:

Comments

  • IceboxIcebox Member Posts: 1,483

    In your coin actor ,

    if actor overlaps or collides with actor hero
    change attribute self.color.alpha to 0

    if self.color alpha is 0
    return it to 1 whenever you want

  • ohtukrwohtukrw Sir doge Member Posts: 106

    @Icebox said:
    In your coin actor ,

    if actor overlaps or collides with actor hero
    change attribute self.color.alpha to 0

    if self.color alpha is 0
    return it to 1 whenever you want

    But that only changes the colour, I think the points on collision will still be accounted for :neutral:

  • IceboxIcebox Member Posts: 1,483

    make it so that it only adds a coin if self.color alpha = 1 :)

  • ohtukrwohtukrw Sir doge Member Posts: 106

    @Icebox said:
    make it so that it only adds a coin if self.color alpha = 1 :)

    Snap! He did it again :-D

Sign In or Register to comment.