Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
basic animation cycle #127920
05/04/07 02:17
05/04/07 02:17
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline OP
Junior Member
luke_was_ere  Offline OP
Junior Member
L

Joined: Mar 2007
Posts: 69
I have a city full of humans all with basic walking animations created.

They are scripted to follow individual Paths around the level but as yet do not show their animation frames and simply are stationary when they follow the path.


how would i script this so the walking animation cycles over and over?

it appears i need the function ent_animate

and that i may need to use something like

//in the while loop:
my.anm_percent += (8 * time_step) % 100;
ent_animate(my,"walk",my.anm_percent,anm_cycle);

however i am uncertain of really what to do,


Any ideas would be appreciated.

Cheers

Re: basic animation cycle [Re: luke_was_ere] #127921
05/04/07 04:09
05/04/07 04:09
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Try something like this:

Code:

var walk_speed;
...
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 7 * time_step;




Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: basic animation cycle [Re: MrCode] #127922
05/05/07 11:55
05/05/07 11:55
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline OP
Junior Member
luke_was_ere  Offline OP
Junior Member
L

Joined: Mar 2007
Posts: 69
turns out that the problem i was having was to do with the Model frames in MED,


They should have been named Walk 1, Walk 2 etc.... and were set as configure 1, configure 2 etc...




Re: basic animation cycle [Re: luke_was_ere] #127923
05/05/07 12:24
05/05/07 12:24
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
or just channge to ent_animate(my,"configure",walk_speed,anm_cycle);


Never say never.
Re: basic animation cycle [Re: tompo] #127924
05/05/07 12:43
05/05/07 12:43
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline OP
Junior Member
luke_was_ere  Offline OP
Junior Member
L

Joined: Mar 2007
Posts: 69
lol, well i like making life difficult for myself haha.

Cheers


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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