Jump to content

gamecreator

Members
  • Posts

    4,937
  • Joined

  • Last visited

Everything posted by gamecreator

  1. With the caveat that this is not exact. I don't know about the character controller (after the latest updates) but if you're coding your own character movement, you are better off using a fixed framerate, or things like jumps won't be the same height on all computers, as per here.
  2. If you give me a specific model with an animation (something basic, nothing fancy), I'm happy to test it for you using the program I set up in my other thread that I linked to above. I'm on a 780M right now.
  3. So what exactly is the problem now? I thought you said above that you could spawn more enemies once you switched to release.
  4. I do but I also use printf/cout to write to the console, which you can enable by right-clicking on your project name in the Solution Explorer, Properties, Configuration Properties, Linker, System, change SubSystem to Console.
  5. The character.fbx only has 25 bones, which is very reasonable. That shouldn't be the problem. https://www.leadwerks.com/community/topic/17544-character-fps-test/
  6. For my part (and I think some others who posted about this in the past) I would love a significant speed increase. It always feels like we're on a light/shadow/bone/quality budget so that we can get above 30fps once we start setting a scene up.
  7. You can put whatever texture on whatever face/triangle you want. I've attached a zip file with an FBX (also converted to MDL) and two textures as an example. twotextures.zip
  8. I don't use Blender so I can't help with the rest of your question but yes, Leadwerks supports multiple textures on a single model.
  9. I don't know Lua but it looks like you might sometimes trigger more than one PlayAnimation function per frame. Meaning, if you hold down both the W and D keys, the first if statement will be true and it will trigger that PlayAnimation AND the next if statement will also be true and will trigger its respective PlayAnimation. So I think you'd be blending two animations together. Look into using elseif statements. Something like this (again, I don't know Lua but this seems like it could work): if KeyDown(Key.W) and KeyDown(Key.D) then PlayAnimation(“^>”,0.02,100,0) elseif KeyDown(Key.W) and KeyDown(Key.A) then PlayAnimation(“^<”,0.02,100,0) elseif KeyDown(Key.W) PlayAnimation(“^”,0.02,100,0) end As for posting, if you have several questions at once, you probably want to use a single post for it. If it's two or three that are unrelated topics, you may want to split them up. But I'm not the Leadwerks police; that's just my preference. Ideally you also search the forums first and you might find something that already covers your question and you can just continue the conversation in that thread. That will help for anyone searching the forums for the same issue so they don't have to open 10 different threads to find their answer.
  10. I believe it's only wav and ogg. We never got mp3 in.
  11. On that page it's just those three choices and "Auto-select" is probably the closest. Maybe there are similar choices elsewhere but it doesn't seem like it.
  12. Got a chance to test it and it didn't work for me. When I went into the NVIDIA Control Panel, Manage 3D settings, Global Settings and chose Auto-select (the default, I believe) or Integrated graphics, it used my Intel(R) HD Graphics 4600. I had to choose High-performance NVIDIA process manually to force the Leadwerks program to use my GTX 780M. Also interesting to note that with the Intel processor, the program starts up immediately. With the GTX it takes about a second to initialize (or whatever it does) to show the screen. I was using the DrawText example to test.
  13. A speed test against both Leadwerks 4 and the top engine competitors would be very welcome (I'm aware that you didn't say you'd do all of that).
  14. Below is a simple example if you want to write your own system. void characterclass::animate() { double lastanimframe = animframe; animframe += timesincelastframe * animationspeedvariable; // While animation frame is over the total length of the animation, reduce it // so we always stay between 0 and the animation length - 1 while(animframe > (double)model->GetAnimationLength(animstate)-1) animframe -= (double)model->GetAnimationLength(animstate)-1; // You can see if animation hit a specific frame to check for a sword hit on an enemy or whatever action you'd like // The below line checks if we're animating an attack and we hit or passed frame 10 if(animsate=="attack" && animframe >=10 && lastanimframe<10) { // Do action here } // When animation ends... if(animframe > (double)model->GetAnimationLength(animstate)-1) { // You can change your animation state to whatever you'd like // For example, if a sword finished swinging, you can switch back to an idle animation } model->SetAnimationFrame(animframe, 0.7, animstate, true); }
  15. You need to load the models in as separate copies first. Check out this thread: https://www.leadwerks.com/community/topic/12249-model-copy/
  16. There's also a chance you don't have OpenAL installed. Try the installer here: https://www.openal.org/downloads/ But I'd try Rick's suggestions first.
  17. You can turn off all shaders, set quality of everything to lowest, turn off shadows, etc. There are a lot of things you can do to make your game run faster, at least while you're developing it.
  18. Good start. It looks like the run is just a faster walk animation. I suggest doing a separate run animation. It will make a big difference.
  19. We've diverged from the original post anyway but I guess I was addressing the wider topic of cheating in multiplayer games (whether through packets, input, lag switches, whatever).
  20. Even in that type of game there are input cheats (just like for shooters) where a bot/cheat engine could automatically, optimally place things for you literally as soon as you have the mana/whatever available. Cheating for a game that's popular enough is unavoidable. It's just effort versus effort: how much time do you want to spend to deter and fight it? As a dev, your goal is to grow a community but if there are enough known cheaters it will make legitimate players leave.
  21. Of course but if the client decides important things like this then the game is susceptible to cheating/hacking. That's the idea behind making the host authoritative. Now, the other thought is that if your host is also a player, what prevents them from cheating? This is when you can get hardcore and rent or buy your own server but I'm not there yet.
  22. Oh, good to know! I should test this at some point...
  23. I have a CyberpowerPC Fangbook Evo HX7-350 laptop with a GeForce GTX 780m and also integrated graphics and have had minimal problems. I can't speak to the battery life since I'm always plugged in but I can run the editor and my programs fine. Remember that you can change your preferred video card if you go into the Nvidia Control Panel and Manage 3D Settings.
×
×
  • Create New...