Gamestudio Links
Zorro Links
Newest Posts
No errors in the command line
by JMMAC. 05/06/26 16:20
U4GM Where I Found Water Filters for Avian Alarm
by Hartmann846. 05/06/26 08:52
U4GM Why Black Ops 7 Campaign Feels So Different
by Hartmann846. 05/06/26 08:51
Purchase A8 full licence version
by jcl. 05/05/26 11:20
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 5,935 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
salisy, Hartmann846, dangyc, ukgamer, valino
19213 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