Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Akow, MaliceTheMaker), 14,199 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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