Blockland Forums > Modification Help
Milkshape Animation
<< < (2/4) > >>
Mr.Noßody:

--- Quote from: Uxie on April 02, 2011, 09:02:08 AM ---Wait, isn't auto "cyclic"? There is a check box for that.

--- End quote ---

Yea, that's in the export.
Azerath called it Cycle..

My animation is exported as such.

Okay, went into my coding and swapped 'Shiftaway' with my animation 'Ambient'..
Ironical, Shiftaway was still what it was called..
Ill report back soon.
Simply doing that didn't work. The projectile still stays static when shot.
soba:

--- Quote from: Treynolds416 on April 02, 2011, 08:36:34 AM ---Look at the bottom of the example gun script provided by Azerath

It says something like

--- Code: ---function gunImage::onFire(%this,%obj,%slot)
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, shiftAway);
Parent::onFire(%this,%obj,%slot);
}
--- End code ---
The number after %obj.playThread (2 in this case) is what sequence the animation is being played in. If you want it to play when you fire, leave the number as 2. The next argument after %obj.playThread is which animation to play. You have to name your animations in the torque exporter. Then, swap out 'shiftaway' with your animation.

If you want to have the animation cycle while you are shooting, you will have to change some of the state-system.

But don't get into cycling yet, just try that first to see if it works.


--- End quote ---

Thats the animation the player plays when he shoots the gun, not the animation the gun plays
Mr.Noßody:

--- Quote from: soba on April 02, 2011, 01:48:28 PM ---Thats the animation the player plays when he shoots the gun, not the animation the gun plays

--- End quote ---
So, what should I add/edit to specify a projectiles animation?
Treynolds416:

--- Quote from: soba on April 02, 2011, 01:48:28 PM ---Thats the animation the player plays when he shoots the gun, not the animation the gun plays

--- End quote ---
Wrong. All weapon animations are played through the player object.


And Nobody, wait, you want the projectile to perform an animation?
Mr.Noßody:

--- Quote from: Treynolds416 on April 02, 2011, 06:27:51 PM ---And Nobody, wait, you want the projectile to perform an animation?

--- End quote ---

Correct, like how the Rocket Launcher makes a spinning rocket...
Navigation
Message Index
Next page
Previous page

Go to full version