Download

How to destroy actor when clicked

I want to make a game which is a sidescroller endless runner in which you have to click objects before they leave the screen. I thought the most straightforward way would be to destroy the actor upon clicked, but that doesn’t work. Does anyone know how to do this?

[IMG2=JSON]{“data-align”:“none”,“data-size”:“full”,“src”:“https://preview.redd.it/rt97624b93p51.png?width=657&format=png&auto=webp&s=9fbd7dc42226ec5e3f77c872951a8df2fe10d4b9"}[/IMG2][IMG2=JSON]{“data-align”:“none”,“data-size”:“full”,“src”:"https://preview.redd.it/or6zy3he93p51.png?width=963&format=png&auto=webp&s=f8f9fe34df96a31c4f97eb6c8afcd8f2a085699e”}[/IMG2]

You need this in your level BP:

Click your character mesh and set collision to block all. Then put this in the character:

mesh.JPG