In Comet, I play different sounds when you stand of different surfaces.
if tile_name=="path" then
if footset==0 then
sound "footstep path 1"
footset = 1
elseif footset==1 then
sound "footstep path 2"
footset = 0
end
end
I then name all my sand, wood, grass and path tiles the same name.
To keep the above code as simple as possible.
This is fine until you want to read what a tiles is for swapping.
So a bird that files over different surfaces will read it's target's tile as dock, move to that tile, and when it moves off of it, it will place down the first "dock" with the highest tile ID
If the name
event could be updated to support
tile prototypes varname = name x,y
as well as tile IDs varname = tileId x,y
It would save me needing to multiply my code by x11 for each time I reference tiles.