i tried to animate some NewObjects...
They should work parallel (same frame), if they are built next to another animated object....
I think "nearby_tile_animation_frame" is the right thing for this task, or?
The newgrf-specs and NML Tutorial aren't that useful here

Code: Select all
spriteset (spriteset_animated) {
template_animated()
}
spritelayout gfx_animated(frame) {
ground {
sprite: GROUNDSPRITE_NORMAL;
}
building {
sprite :spriteset_animated(frame);
xextent :16;
yextent :16;
zextent :40;
zoffset :0;
}
}
item (FEAT_OBJECTS, item_animated) {
property {
class :"INFR";
classname :string(STR_CLASS_INFR);
name :string(STR_NAME_animated);
climates_available :bitmask(CLIMATE_ARCTIC);
size :[1,1];
build_cost_multiplier :0;
remove_cost_multiplier :0;
introduction_date :date(1800,1,1);
end_of_life_date :0xFFFFFFFF;
object_flags :bitmask(OBJ_FLAG_ANIMATED, OBJ_FLAG_NO_FOUNDATIONS);
animation_info :[ANIMATION_LOOPING,48];
animation_speed :2;
animation_triggers :1;
height :5;
num_views :1;
}
graphics {
default :gfx_animated(animation_frame);
additional_text :string(STR_animated_PURCHASE);
anim_control :return CB_RESULT_NEXT_FRAME;
anim_next_frame :return CB_RESULT_NEXT_FRAME;
}
}
Where do I have to insert code for synchronising?
At "animation_frame" ?