How to make invisible the character for 5 seconds

Hello i am a beginner at verse and i made this code


But it look like its not working but i don’t know why, anyone know how to write a good version of it ?

You can’t use the <suspends> function as the callback for the event. You need to write your function that needs suspends async calls (e.g. Sleep) to a different function and then from your event listener call it using spawn. RunMyAsyncFunction().

Okay i see thankd you i will try to do it (but im so noob that i will get another error)