define _ani1, skill52; // don't use skill 1, or share skills
var ani_nPicker = 0;
STRING s1[256];
STRING s2[256];
TEXT ani_t1 {
strings = 1;
pos_x = 0;
pos_y = 0;
layer = 15;
font = _a4font;
}
function anif_showPicker() {
str_cpy(ani_t1.string[0], "Picker: ");
str_for_num(s2, ani_nPicker);
str_cat(ani_t1.string[0], s2);
ani_t1.visible = ON;
}
// no parenthesis for action
action animate_this {
ani_nPicker = 0;
while(me != NULL) { //
my._ani1 += 2*time_step; // well...
//ani_nPicker += (ani_nPicker >= 99.998);
ani_nPicker += (ani_nPicker >= 100);
my._ani1 %= 100;
ent_animate(me,"dance", my._ani1, ANM_CYCLE);
anif_showPicker();
wait(1);
}
}
// model and / or this code could be a problem