In EDC, I can use script
s in collections/group
to make animation:
group { "my_group";
script {
public my_anim(val, Float:pos) {
set_tween_state(PART:"elm.text", pos, "state_begin", 0.0, "state_end", 0.0);
}
public start_my_anim() {
anim(1 /*duration in seconds*/, "my_anim", 1 /*I have no idea about this param*/);
}
}
parts {
text { "elm.text";
desc { "state_begin";
...
}
desc { "state_end";
...
}
}
}
}
If I call start_my_anim
, it will animate my text, great!
But it will animate with LINEAR transition. How can I ask anim
to use DECELERATE?