0 registered members (),
1,227
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Animate Character
#326130
05/30/10 16:00
05/30/10 16:00
|
Joined: May 2010
Posts: 63
JohnnyIsDutch
OP
Junior Member
|
OP
Junior Member
Joined: May 2010
Posts: 63
|
how can i animate a Character? ent_animate(me,"walk", ????? ,ANM_CYCLE);
wath by ?????
Last edited by JohnnyIsDutch; 05/30/10 16:05.
|
|
|
Re: Animate Character
[Re: Pappenheimer]
#326139
05/30/10 16:59
05/30/10 16:59
|
Joined: May 2010
Posts: 63
JohnnyIsDutch
OP
Junior Member
|
OP
Junior Member
Joined: May 2010
Posts: 63
|
You have to fill in a variable that counts up.
function play_animation() { var counter; var anim_speed = 10;// fill in here the wished animation apeed while(1) { ent_animate(me,"walk", counter ,ANM_CYCLE);thax, but wath is warez user
counter += anim_speed * timestep; counter %= 100;// if the counter is higher than 100 it proceeds at zero wait(1); } }
But, there is an example in the manual, too. thanx
Last edited by JohnnyIsDutch; 05/30/10 17:44.
|
|
|
Re: Animate Character
[Re: JohnnyIsDutch]
#326146
05/30/10 18:18
05/30/10 18:18
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
Make the workshop, above all the workshop 21, there is explain all this stuff about animating models. Beginners "must" do this workshop.
Last edited by Widi; 05/30/10 18:19.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|