Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 17,416 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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