Gamestudio Links
Zorro Links
Newest Posts
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
Pause button for evaluation shell?
by AndrewAMD. 08/06/26 05:33
phantom() not defined in indicators.c
by AndrewAMD. 08/05/26 17:49
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,583 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19222 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 | 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