First just add instance variable "parent" type number to your text object (eg "linktext")
then you can try the following events:
On "Obstacle" create: system create text"linktext" layer "your layer" at X,Y
--- text"linktext" set value "parent" to Obstacle.UID
Text and Obstacle object are linked by Obstacle.UID