Jump to content

Recommended Posts

Posted

Hey all,

 

Now this used to happen me with LE2 also. When a level loads for the first four seconds or so everything moves really fast (i.e character controller) . After it then it evens out and the game speed is as expected .

 

It's like I've hit the turbo button on my old 386 DX =) for a few seconds.

 

Am I alone in seeing this? and is there anyway to stop it?

 

Cheers!

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Posted

I have paused it.

It seems it helps a bit. At least the speedup have gone down from around 4 seconds or more to 1 or 1/2 second.

 

my method for loading levels:

void App::LoadMap(std::string mapfile = "")
{
if (mapfile == "") {
 mapfile = nextMap->nextMapFile;
}
//if ( mapfile != "" && mapfile != ".\\" && FileSystem::GetFileSize(mapfile) > 0 ) {
if ( mapfile != "" && mapfile != ".\\" ) {
 Time::Pause();
 world = World::Create();
 world->Clear();
 entities.clear();
 //world->Release();
 //create camera
 camera = Camera::Create();
 camera->SetFOV(70);
 camera->SetRotation(90, 0, 0, true);
 Map::Load(mapfile, StoreWorldObjects);
 // target camera at player
 if (player)
 {
  //Vec3 cameraPosition = Vec3(player->entity->GetPosition());
  //cameraPosition.y += 5;
  camera->SetPosition(0,10,0);
  camera->SetScript("Scripts/Cameras/TopDown.lua", true);
  camera->SetObject("target",player->entity);
  if (cameraEffect)
  {
   cameraEffect->entity->SetObject("camera",camera);
  }
 }
 Time::Resume();
}
}

  • Upvote 1
Posted

i hope we can somehow fix this completely, because currently even this short period of time can kill the player when he presses a movement key while it is speeded up.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...