Howdy, Stranger!

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

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

DreamStudiosDreamStudios Posts: 148Removed
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.


  • RHRH Posts: 1,079Member
    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
    2. Timer: after 1 second reset scene
This discussion has been closed.