Hello! Help a novice developer understand the basics.
How to set a fixed number of frames per second? For example 70.
How to measure the time between two events? For example between two presses on the spacebar.
How (what are the ways) to make a bleeding effect when a character is injured?
How to cut off a limb from a character?
- Use a node called [Execute Console Command], and the command is “t.maxFPS xx”;
- Use a node called [Get Game Time In Seconds]. It returns the time that has elapsed since the level was opened. Just subtract values, and you’ll get the time difference.
- Particle system for bleeding + decals for blood stains on floor/walls. This is a wide topic, you need to research it.
- I haven’t done anything like it, so I can’t help with this one.
Still shows 60 fps
Is it possible to speed up the falling speed of the character during the activation of the ragdoll?
Maybe you have VSync enabled? Or your system can’t go higher as it is?
Unfortunately, UE can’t change gravity for physics objects separately from each other. But you can manually add some downwards force on Tick to the ragdoll.
Note that the Editor Viewport might be limited if you are on a laptop.
You can disable this by the command r.DontLimitOnBattery 1
When you play the game outside the editor this command has no effect.
Even if you are plugged in it might still report as being on battery so disable it just to make sure.
Also check your ProjectSettings for “FrameRate” under the General Settings make sure that “Smooth Frame Rate” is not checked.
“Use Fixed Frame Rate” is actually what you are looking for so if it is checked here this is what will be used and t.maxFPS
will be ignored. Either uncheck “Use Fixed Frame Rate” and call the command or simply set the value of 70 as the Fixed Frame Rate.
The point about Vsync is also valid so make sure Vsync is disabled with r.VSync 0
but note that your GPU driver can override this and force the program to enable VSync so check your GPU settings too outside Unreal Engine.
Just because you set a frame rate to be fixed doesn’t mean that the FPS can’t drop below 70 but it will never exceed 70.
That’s what I need.
During the activation of the ragdoll, the sword falls through the floor. I can’t fix it at all.
https://www.youtube.com/watch?v=aev4s1tdHIM