ID:264894
 
Code:
turf
Forest
Tree
icon='Tree.dmi'
A
icon_state="1"
New()
..()
pixel_x=-32
B
icon_state="2"
New()
..()
new/turf/Forest/Tree/A


Problem description:
Can someone explain to me why "A" is not created at runtime where "B" is place on the map?

You probably want new/turf/Forest/Tree/A(src)

Although you might want to consider using objects instead, as creating turfs at runtime will remove any turf overlays/underlays at the tile (so if your trees aren't completely opaque, there'll be blackness behind them)
You would do this
turf
Forest
Tree
icon='Tree.dmi'
A
icon_state="1"
New()
..()
pixel_x=-32
B
icon_state="2"
New()
..()
new/turf/Forest/Tree/A(src)

Each location on the map is limited to one turf though so by creating A where B is you remove B from the map. This is probably not what you want.

I made this for you, because its probably more along your goal. I recommend changing it to an object though to avoid some complications.

turf
Forest
Tree
icon='Tree.dmi'
icon_state="1"
New()
..()
var/image/I = new('Tree.dmi',src,"2")
I.pixel_y+=32
overlays+=I