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 (), 18,561 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
Question about Models and Uses #89477
09/11/06 04:34
09/11/06 04:34
Joined: Dec 2005
Posts: 40
M
mbmSOG Offline OP
Newbie
mbmSOG  Offline OP
Newbie
M

Joined: Dec 2005
Posts: 40
Ok i have a model that I want to use as the badguys in a game, I want to have 3 or so on the screen at one time. The problem is that if I assign two differnet actoins to different copies of the one model all of the copies fallow the animations of just one of the actions...??? Why is this? Why cant two copies of one model have two different animations running at the same time?

Re: Question about Models and Uses [Re: mbmSOG] #89478
09/11/06 06:04
09/11/06 06:04
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
well then I gues you just have to write 3 different actions


Visit:
schwenkschuster-design.de
Re: Question about Models and Uses [Re: mbmSOG] #89479
09/11/06 10:49
09/11/06 10:49
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
That depends on your script.

Code:

action char_action
{
while(my == NULL) {wait(1);}

while(my.skill1 == 1) // set skill1 to 1 in WED
{
ent_animate(my,"walk",my.skill2,anm_cycle);
my.skill2 += 5 * time_step;
my.skill2 %= 100;
wait(1);
}


while(my.skill1 == 2) // set skill1 to 2 in WED
{
ent_animate(my,"attack",my.skill2,anm_cycle);
my.skill2 += 5 * time_step;
my.skill2 %= 100;
wait(1);
}
}



Re: Question about Models and Uses [Re: vlau] #89480
09/11/06 12:26
09/11/06 12:26
Joined: Dec 2005
Posts: 40
M
mbmSOG Offline OP
Newbie
mbmSOG  Offline OP
Newbie
M

Joined: Dec 2005
Posts: 40
Thank you all for your replys let me try to explain a little better. I have different "actions" controlling the different copyies, all movments and animations are based on skills so no globa var. are being used to mess things up. But no matter what the different actoins tell the copyies to do, ALL of them only display one animation even if some are movine, attacking or just being idel. the strange part is when you move the screen so only one is on frame at a time they behave correctly. Whats going on??

Re: Question about Models and Uses [Re: mbmSOG] #89481
09/11/06 15:55
09/11/06 15:55
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I suggest test your code with cbabe.mdl, if it still doesn't
work, the problem should be coming from your script, post your
codes here.

Are you using template script?


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