Hi, I have the following problem.
I've go an unspecific amount of hero objects in a "Heroes" Family.
I randomly create an unspecific amount of heroes, neatly standing in a line.
All good so far.
Every time a Hero is created, a nametag is created for that hero.
That name tag is then pinned and positioned to the hero just created.
The pinning works nicely. When I move a hero by mouse down, the name folows nicely.
BUT! When the nametag is created it doesn't position itself correctly at heroes imagepoint 1.
When created, the first nametag appears about x + 100, y + 100 from the hero, the second about x + 200, y + 200 , the third about x + 300, y + 300 , and so on. The numbers are just an aprox-guess and are there to give you an idea of my problem. (but might have something to do with the way I create the heroes, see below...)
I assume I do something wrong but cannot understand what...
Example with 3 heroes:
+System -> On start of layout
System -> Create object Heroes on layer 0 at (LayoutCenter.X -100, LayoutCenter.Y -100)
System -> Create object Heroes on layer 0 at (Heroes.X + 60,Heroes.Y)
System -> Create object Heroes on layer 0 at (Heroes.X + 60,Heroes.Y)
+Heroes -> On created
System -> Create object txtName on layer 1 (Heroes.X, Heroes.Y)
txtName -> Pin Pin to Heroes(Position & angle)
txtName -> Set position to Heroes(image point 1)
Works fine, but the position is wrong for some reason...