Sure, I'm aware of that but I know there is a more direct way.
I managed to achieve this using Sprite IID.
The syntax of the "set text" is :
"Hitpoints : "&sprite(2).Value
where 2 is the sprite IID and Value is the instance variable.
So if Value=40, the code above displays for sprite IID=2 "Hitpoints : 40" in textbox.
Instead of using IID, I would like to use another instance variable, for example Type="zombie"
So the code would be something like :
"Hitpoint : "&sprite(Type="zombie").value
I tried many syntaxes but came up with nothing.