Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,134 guests, and 76 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 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