Re: Space Rangers Ep. 8 - the Rouge Robot (game project)
Posted: Wed Sep 27, 2017 12:11 am
Great scene. You should put 3po's head in there.
Let your game become a reality!
http://forum.realityfactory.info/
Kenny Baker might have had appreciated that.seppgirty wrote:Great scene. You should put 3po's head in there.
Code: Select all
if(self.player_X>-2250 and self.player_X<-2190 and self.player_Z>580 and self.player_Z<657 and self.player_Y>-360)
{
if(BOX=1)
{
SetEventState("MovieTrig", true); //trigger for the video
BOX=2;
}
if(BOX=0)
{
PlaySound("lick3.wav");
BOX=1;
}
}
else
{
SetEventState("MovieTrig", false);
BOX=0;
}
There is the low level pawn method StopAllAudioStreams() the docs says it stops all audio streams. If it doesn't stop a sound created using PlaySound() then you might try the StartSoundTrack() low level pawn method to play the sound.Grok wrote:When skiping a cut scene the sound keep playing. I have found no way to stop a sound file once it has started to play.
Code: Select all
if(GetMousePosX()> KNOB1X and GetMousePosX()< KNOB1X+21 and GetMousePosY()> KNOB1Y and GetMousePosY()< KNOB1Y+56)
//checking if the mouse pointer is over the slider knob
{
if(KNOB1H=0)
{
if(IsKeyDown(72)) //left mouse button down
{
YSTART=GetMousePosY();
KNOB1H=1;
}
}
if(KNOB1H=1)
{
KNOB1Y=KNOB1Y-YSTART+GetMousePosY(); //changing the y-value of the slider knob with the difference between mouse-y this loop and the value the previous loop
YSTART=GetMousePosY();
if(KNOB1Y<94)
{KNOB1Y=94;}
if(KNOB1Y>324)
{KNOB1Y=324;}
}
}
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
ShowHudPicture(20, true, "", KNOB1X,KNOB1Y,"");
Thanks.Allanon wrote:Maybe use a AudioSource3d entity with a large radius, you can turn them on and off using the LevelController class.
Could be. I did however have a hard time finding a combination that would play at all with sound. I don't see a lot of options to chose between.Allanon wrote:You might try using a different codec for video and/or audio in the AVI file. That might prevent it from getting out of sync.
That is a wise choice. You can't allow yourself to be bogged down by any one issue. Too many projects die that way. You've got to keep forging ahead, and the way you are going, it's going to be great!Grok wrote:Could be. I did however have a hard time finding a combination that would play at all with sound. I don't see a lot of options to chose between.Allanon wrote:You might try using a different codec for video and/or audio in the AVI file. That might prevent it from getting out of sync.
For the time being I stick with this solution and concentrate on getting a game together.
In the future, who knows?
Yes. That is pretty much the way I see it.steven8 wrote: ... You can't allow yourself to be bogged down by any one issue. Too many projects die that way. You've got to keep forging ahead, ...
Someone mentioned that problem a couple of months ago. I think the stock animations need edited. Should be a bit easier now with the new equity.Shooting works fine from idle standing or crouching, but not in any other animation.