How to fade an Actor when it hits an enemy/ another actor?

DreamStudiosDreamStudios Removed Posts: 148
edited November -1 in Introductions
Hi, how do you fade an actor when it comes into contact with another actor and then resets the scene?
Like a ball gets hit by an obstacle, ball would fade 1st then reset scene afterwards.
Thanks

Comments

  • RHRH Member Posts: 1,079
    When actor overlaps or collides with actor of tag obstacle:

    interpolate self.color.alpha to 0 for 1 second (or however long you want)

    Now you could do either:

    1. When attribute self.color.alpha = 0 reset scene
    or
    2. Timer: after 1 second reset scene
Sign In or Register to comment.