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
1 registered members (TipmyPip), 18,449 guests, and 6 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
play animation #189182
03/18/08 12:50
03/18/08 12:50
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
Hi,

I have made animation of heart beats in max.
I want to play this animation after click on button.
How can i do this?

Please help

Re: play animation [Re: harry3174] #189183
03/20/08 17:18
03/20/08 17:18
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
I believe this will work. There are better ways to that but this one is good enough too. Hope this is helpfull.


Code:

action heart_beat()
{
var beat;
var anim_perc;

while(1)
{
if(mouse_left && beat == 0){while(mouse_left){wait(1);}beat = 1;}
if(mouse_left && beat == 1){while(mouse_left){wait(1);}beat = 0;}

if(beat == 1){
ent_animate("heart.mdl", anim_perc, ANM_CYCLE);
anim_perc += 10 * time_step;
}

wait(1);
}
}





Ubi bene, ibi Patria.

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