How to fade an Actor when it hits an enemy/ another actor?
DreamStudios
Removed Posts: 148
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
Like a ball gets hit by an obstacle, ball would fade 1st then reset scene afterwards.
Thanks
Comments
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