Can in play other motions while keeping the parameters I set in Ultra? and can Flip Horizontal?
Viewing post in GameMaker Live2D Extension comments
Sorry, I haven't opened itch for a long time. It wasn't until now that I saw your comment.
For the first question, you only need to set the parameters after updating the model parameters.
for example:
//update model
UltraModelUpdate(model, delta_time / 1000000);
if(mouse_check_button(mb_right)){
// If you want to set the parameters manually, you need to call UltraModelSetParameter after UltraModelUpdate.
// After setting, you need to call UltraModelUpdateParameter to apply the updates.
var dis = point_distance(room_width / 2, room_height / 2, mouse_x, mouse_y);
var dir = point_direction(room_width / 2, room_height / 2, mouse_x, mouse_y);
UltraModelSetParameter(model, "ParamAngleX", dis / 10 * dcos(dir), 1);
UltraModelSetParameter(model, "ParamAngleY", dis / 10 * dsin(dir), 1);
UltraModelUpdateParameter(model);
}
For the second question, you only need to set the xscl parameter to -1 when drawing the surface of the character.
for example:
surface_set_target(surface);
draw_clear_alpha(c_white, 0.0);
UltraModelDraw(model, mat_trans);
surface_reset_target();
draw_surface_ext(surface, 0, 0, -1, 1, 0, c_white, 1);
Hope this can clear up your confusion.