Using motion capture systems to animate humanlike figures still remains difficult when the movements are complex or need to be adapted to geometric constraints. We propose a new method to blend several captured movements while adapting the trajectories to new skeletons and unknown environments. For each body part (considered as resources), a priority is defined for each movement (considered as consumers). The trajectories applied to the skeleton consist of a weighted sum of the motions trajectories. A new technique to compute the weights is proposed. Finally, the system adapts the resulting trajectories to the synthetic skeleton and to the environment. The results enabled us to animate up to a hundred of actors in interactive environments.