Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Animation + Bone rotate #272986
06/20/09 20:54
06/20/09 20:54
Joined: Jun 2009
Posts: 18
3
3DGSDutch Offline OP
Newbie
3DGSDutch  Offline OP
Newbie
3

Joined: Jun 2009
Posts: 18
Hi.

Is it possible to run an animation:

Code:
if(key_r){ seats = 1; }
		if(seats == 1){ my.skill1 += 1*time_step; }
      if (my.skill1 > 100) my.skill1 -= 100; 
      ent_animate(me,"gondel",my.skill1,ANM_SKIP);



And at that same moment rotate a bone?

Code:
if (key_q){ gondelarmsnelheid += 0.005; tegen = 1; mee = 0;}
		if (key_a){ gondelarmsnelheid -= 0.005; mee = 1; tegen = 0;}
		if(tegen == 1 && gondelarmsnelheid >= 1.8){ gondelarmsnelheid = 1.8; }
		if(tegen == 1 && gondelarmsnelheid == 0){ gondelarmsnelheid = 0; }
		if(mee == 1 && gondelarmsnelheid <= -1.8){ gondelarmsnelheid = -1.8; }
		if(mee == 1 && gondelarmsnelheid == 0){ gondelarmsnelheid = 0; }
		
		ent_bonerotate(my,"gondelarmkruis",vector(gondelarmsnelheid,0,0));



I tried this, and it won't work. Only the animation works. When i remove the animation code i can rotate the bone. But not if they are both in the script.

How can i rotate the bone, and run the animation both?
Hope somone help me out,

Regards,
3DGS Dutch

Re: Animation + Bone rotate [Re: 3DGSDutch] #273043
06/21/09 04:55
06/21/09 04:55
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
You cant use vertex animation and bone rotation at the same time.
Use bone animation instead...

Re: Animation + Bone rotate [Re: bart_the_13th] #273048
06/21/09 07:12
06/21/09 07:12
Joined: Jun 2009
Posts: 18
3
3DGSDutch Offline OP
Newbie
3DGSDutch  Offline OP
Newbie
3

Joined: Jun 2009
Posts: 18
And how do i make Vertex Animation ? Just animate in MED and de-select the bone animation icon?

It needs to rotate a part of the model with bones. And also animate 3 other parts from the same part.

Re: Animation + Bone rotate [Re: 3DGSDutch] #273555
06/23/09 12:27
06/23/09 12:27
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Do ONLY bones animations, NO vertex animations.

Re: Animation + Bone rotate [Re: the_clown] #273566
06/23/09 12:43
06/23/09 12:43
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
If a model contains ANY bones, vertex animations dont actually move at run-time.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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