You can create an actor type that has empty image.
Then when you calculate the damage, create that empty actor at the X and y of enemy. Then give that empty actor an attribute number with the number.
When drawing behaviour. Draw that number. Set opacity of text as the opacity of actor.
When created. tween opacity to zero over 1 sec. Set y speed to -2. After 2 sec kill or something.
I got an old behaviour somewhere. I will try to find it later
[edit]
attached behaviour. I made it long ago. It works. Looks complicated but does the work.