Page 2 of 2

Posted: Wed Sep 19, 2007 6:13 pm
by Jay
What's with these commands:
The docs wrote: FadeIn(float Time, float Alpha );

Increase the alpha of the actor from its present value to Alpha in Time seconds. The next action is executed only after the alpha value is reached. If the pawn has a weapon actor attached its alpha is taken from the current alpha of the pawn actor.

FadeOut(float Time, float Alpha );

Decrease the alpha of the actor from its present value to Alpha in Time seconds. The next action is executed only after the alpha value is reached. If the pawn has a weapon actor attached its alpha is taken from the current alpha of the pawn actor.
Do they have the same problem? (anims not working). I never got the SetAlpha to work, strangely.

You could use FadeOut(1.0,128) in the Setup order of the script to see if this works.

Posted: Wed Sep 19, 2007 6:23 pm
by incenseman2003
As strange as it sounds I am glad that it is not just me that has this issue.

That means that I am no more insane then I was yesterday.

I can still do the game the way that I want to. I just won't have ghosts that can be seen through or that can walk through walls. That would make them something other than your run of the mill ghosts, but can't imagine what.

Just one more thing to make you say Hmmmmmm.....

Posted: Wed Sep 19, 2007 6:50 pm
by incenseman2003
Is it possible to slow the die animation down so that it doesn't happen so fast?

Im using the genericmelee.s to run the actor.

I just figured it out. It has to be done the hard way. I just recreated the animation with more frames.

Now I wonder whay my injury sound isn't playing when I shoot the enemy.

Code: Select all

PlayAnimation(PAIN, true, "injury1.wav");
Is that correct?

Posted: Wed Sep 19, 2007 7:46 pm
by bernie
Yes jay I use that for my ghost
Spawn[()
{
Console(true);
BoxWidth(10);
BoxHeight(10);
FadeOut( 0,128);
NewOrder("Init");
}]
Works well
To slow down animation to half speed use
AnimationSpeed(0.5);
PlayAnimation("Your_animation", true, "");
in your script

And yes if the pain animation works the sound should work if you have that .wav file in your audio directory.

Posted: Wed Sep 19, 2007 8:02 pm
by incenseman2003

Code: Select all

AnimationSpeed(0.5); 
PlayAnimation("Your_animation", true, ""); 
That did the trick slowing the animation down. Thanks a ton!

Indeed I do have the wav file in the audio directory. The animation plays just fine but the sound doesn't. I think that is really strange.

Posted: Thu Sep 20, 2007 4:29 am
by steven8
All right! Many heads are better than one!

Posted: Thu Sep 20, 2007 3:58 pm
by incenseman2003
Unfortunately all I know at this point is that it should be working but it isn't.

I wish I knew more about scripting. I learn a little when I can.