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?
ID:264894
Feb 14 2011, 9:20 pm
|
|
Code:
turf Problem description: Can someone explain to me why "A" is not created at runtime where "B" is place on the map? |
You would do this
turf 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 |
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)