Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
question about animation... #77737
06/14/06 19:23
06/14/06 19:23
Joined: Jul 2004
Posts: 311
Aaron Offline OP
Senior Member
Aaron  Offline OP
Senior Member

Joined: Jul 2004
Posts: 311
Hi I want to know how to use bone animation with 3d models also I would want to know how can I program an animation to go off at certain event's like for example if I was shooting a car that drove by and a bullet hit the window how would I activate a animation of the glass breaking after the window get's like hit after 2 or 3 times? and gun's in my level how would I be able to make a gun appear in the player's hand when he picks it up. With 3dgamestudio could I make more animations like when the player is picking a gun up would I be able to create a gun pickup animation showing the guy leaning down picking the gun up. I only heard that you can make a run a walk a swim a jump a duck animation slides. How could I add gun's to the player's hand without animation the gun onto the player's hand.

Re: question about animation... [Re: Aaron] #77738
06/14/06 20:03
06/14/06 20:03
Joined: Aug 2005
Posts: 238
Caermundh Offline
Member
Caermundh  Offline
Member

Joined: Aug 2005
Posts: 238
You can play a bone animation just like a vertex animation with ent_animate(). As for how to play an animation of a window shattering or some such, i would make the animation for the modle in MED, name it something like "SHOOT" or some such, then put an ent_animate() command in the entities event function. like so:

Function car_event()
{ if(EVENT_TYPE==EVENT_SHOOT)
{ times_shot += 1;
if(times_shot>3)
{ anim_count = 0;
while(anim_count<100)
{ ent_animate(me,"SHOOT", 0);
anim_count += 5;
wait(1);
}
}
}
}

As for picking things up, you can make an animation where the model bends down and reaches for the ground to pick something up. You can make as many animations of whatever nature you want. The main character for the game im currently programming has like 40 or 50 different animations and over 300 frames of animations, including flips, rolls, three different mellee attacks, and more.

Re: question about animation... [Re: Caermundh] #77739
06/16/06 14:03
06/16/06 14:03
Joined: Jul 2004
Posts: 311
Aaron Offline OP
Senior Member
Aaron  Offline OP
Senior Member

Joined: Jul 2004
Posts: 311
Hi thanks for the info.

I am going to search for some good step by step on using bone animation I hope I can do somehting with it.

Thanks for your help.

Re: question about animation... [Re: Aaron] #77740
06/23/06 10:46
06/23/06 10:46
Joined: Jun 2006
Posts: 86
Asia
xboy360 Offline
Junior Member
xboy360  Offline
Junior Member

Joined: Jun 2006
Posts: 86
Asia
hi all...im a noobie, and i dont understand ent_animate..
where did that "SHOOT" come from?? is it the name of the baseframe?
how do i animate a model using this?? pls help (


Happy Birthday!
Re: question about animation... [Re: xboy360] #77741
06/23/06 15:20
06/23/06 15:20
Joined: Jul 2004
Posts: 311
Aaron Offline OP
Senior Member
Aaron  Offline OP
Senior Member

Joined: Jul 2004
Posts: 311
Hi xbox 360 , the ent_animate is a command in programming , what we were talking about is to animate a glass breaking of the window's in a car model when you shoot it, I had to create the animation in med and then script it in wed or create a script that would play the animation so the script above is the script I would need to make in order to play that animation when a bullet hit's the glass 3 times the glass would shatter, that ent_animate is a command that you want to script a entity animation.What it really is, is to control when the animation will be played by checking the event's so the animation won't play unless a bullet model hit's the window three times that's what it say's up above, in that script but I could change it, if I want to.

To answer your question the ent_animate is the control of when the animation is going to be played, you would need to animate models by med or a modeling software. SHOOT is what he suggest to name the animation frames like shoot1 ect.

Last edited by Aaron; 06/23/06 16:06.
Re: question about animation... [Re: Aaron] #77742
06/23/06 16:54
06/23/06 16:54
Joined: Jun 2006
Posts: 86
Asia
xboy360 Offline
Junior Member
xboy360  Offline
Junior Member

Joined: Jun 2006
Posts: 86
Asia
ahh, oke, got my animations working! tnx Aaron!!


Happy Birthday!

Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | 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