hi i am looking for ideas on how to delete my GO after it finishes its animation
function on_message(self, message_id, message)
if message_id == hash("sword") then
msg.post("#sprite", "play_animation", {id = hash("death")})
elseif message_id == hash("animation_done") then
go.delete()
end
end
Thanks in advance