Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,227 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Animate Character #326130
05/30/10 16:00
05/30/10 16:00
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

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: JohnnyIsDutch] #326133
05/30/10 16:27
05/30/10 16:27
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
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);
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.

Re: Animate Character [Re: Pappenheimer] #326135
05/30/10 16:42
05/30/10 16:42
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Helping a WAREZ USER???

Re: Animate Character [Re: Rei_Ayanami] #326137
05/30/10 16:51
05/30/10 16:51
Joined: Apr 2010
Posts: 265
V
Vinous_Beret Offline
Member
Vinous_Beret  Offline
Member
V

Joined: Apr 2010
Posts: 265
Originally Posted By: Rei_Ayanami
Helping a WAREZ USER???


you have sreious problems man, grin
you have 'WAREZ USER'S' Phobia grin

LOL..

Re: Animate Character [Re: Pappenheimer] #326139
05/30/10 16:59
05/30/10 16:59
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
Originally Posted By: Pappenheimer
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 Offline
Serious User
Widi  Offline
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.
Re: Animate Character [Re: Widi] #326148
05/30/10 18:20
05/30/10 18:20
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Why do you help such a user widi?? Haven't you seen his other posts?

Re: Animate Character [Re: Rei_Ayanami] #326151
05/30/10 18:24
05/30/10 18:24
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
@rey: Yes, he write in another post that he use the trial version now...


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1