What is the easiest way to change a picture a couple of second after collision

So my plan is to get lots of banana to drop from top to bottom and in the bottom there is a floor. So when the banana touch the floor it will change into a banana peel for a couple of second and then disappear. What is the easiest way to do this? I’m stuck…

Right now my script is just the floor
when the banana collision with the floor I add e.other:removeSelf()
So I what I have is that the banana is immediately disappear as soon as it touch the floor.

My question is how to make it change to other image for a couple of seconds and then disappear.

Because if I try to change the sprite it would change the banana from the top that hasn’t touch the floor to change image too.

If I use e.other: I don’t know what else can be used after e.other…

Any idea? Any help or suggestion would be great… [import]uid: 117857 topic_id: 24536 reply_id: 324536[/import]

Hey royuros,

This is really basic and the sprite is not very well made (I’m terrible at making sprites) but it should still show you the logic you are after.

http://www.filedropper.com/bananademo

Hope this helps!

Peach :slight_smile: [import]uid: 52491 topic_id: 24536 reply_id: 99370[/import]