Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Moving" the player forward by it self - help please.
jssjr90 Offline
Member

Posts: 169
Threads: 39
Joined: Jun 2011
Reputation: 0
#7
RE: "Moving" the player forward by it self - help please.

Well I have the hospital bed going down a hall, like you are on it rolling down, then I fade the screen to black and telaporting the player to a patient room, where he is laying on another hospital bed. At this point when I press the pause menu and go back in game, the player will automatically hurt him self and the frame rate will drop drastically infinity. Well here is my code so far.

/////////////////////////////////////


//Begin hospital bed moving down the hall.
void MoveForward(string &in asTimer)
{
AddTimer("", 20, "FO");
FadePlayerRollTo(1.0f, 0.5f, 0.5f);
SetPlayerMoveSpeedMul(0.8f);
SetPlayerLookSpeedMul(0);
MovePlayerForward(1.0f);
AddTimer("", 0, "MoveForward");
AddTimer("", 43, "NEXT");
}

//"Ends" the moving down the hall and teleporting back to a diffrent room.
void FO(string &in asTimer)
{
RemoveTimer("MoveForward");
FadeOut(3);
}

//I decited to restore all movement speeds back to normal while retaining "playeractive- false" still into play.
void NEXT(string &in asTimer)
{
SetPlayerMoveSpeedMul(1.0f);
SetPlayerRunSpeedMul(1.0f);
SetPlayerLookSpeedMul(1.0f);
AddTimer("", 1, "NEXT2");
FadeOut(3);
StopPlayerLookAt();
}
void NEXT2(string &in asTimer)
{
StartPlayerLookAt("ddd", 1.0f, 1.0f, "");
TeleportPlayer("ER3");
AddTimer("", 1.0f, "NEXT3");
}
//Fade in the screen to normal state.
void NEXT3(string &in asTimer)
{
FadeIn(0.5f);
//PlaySoundAtEntity("", "spot.snt", "Player", 0.0f, true);
StartEffectFlash(0.0f, 1.0f, 2.0f);
}

///////////////////////////////////////////////////////////
10-12-2012, 03:16 AM
Find


Messages In This Thread
RE: "Moving" the player forward by it self - help please. - by jssjr90 - 10-12-2012, 03:16 AM



Users browsing this thread: 1 Guest(s)