I am learning DML, and i use this code:
turf
grass
icon = "grass.dmi"
I use this code to give a icon to the grass, and draw it on the map, but when i compile, system draw a error:
Lessons.dm:3:error: "grass.dmi": bad file
But i have the icon grass.dmi... help me Please??
ID:157877
![]() Dec 18 2009, 2:00 am
|
|
Basically what he is saying is that if you have '' it will load up the first blank icon in that folder. But, if you wanted to load a certain file (say you had two grass files)
you would use: turf icon = 'grass.dmi' icon_state = "grass2" |
Thus, it would be either
or