Hallo Harald,
wieder Fragen aus Deutschland (Mecklenburg).
- Kann man die Dauer einer Animation im Inspector ändern oder muss ich es per Script machen ?
I found out that the animation duration can be changed via script.
Another problem has arisen.
With mixed animation, I want to animate "Idle" again after "Shoot". "Shoot" should run for 20 seconds in the example (attachment).
The following instructions are in sequence,
skAnim.state.SetAnimation (0, "4_Gun_Type3_Shoot", true);
skAnim.state.SetAnimation (0, "4_Gun_Type3_Idle", true);
Unfortunately there is no shooting for 20sec, "Idle" takes place immediately afterwards. What am I doing wrong ?
deutsch
Habe herausgefunden, daß die Animationsdauer per Script zu ändern geht.
Ein weiteres Problem ist dabei dazu gekommen.
Bei den Mixed-Animation, ich möchte nach "Shoot" wieder "Idle" animieren. "Shoot" soll m Beispiel 20sec laufen.
Folgende Anweisungen stehen hintereinander
,
skAnim.state.SetAnimation(0, "4_Gun_Type3_Shoot", true);
skAnim.state.SetAnimation(0, "4_Gun_Type3_Idle", true);
Leider wird nicht 20sec geschossen, "Idle" erfolgt sofort danach. Was mache ich falsch ?
Danke Wolfgang