Most active questions
32 questions from the last 30 days
12
votes
1
answer
1k
views
Destroying the parent when all children are destroyed
I have a spell system where a the spell is a self-contained game object handling all the logic. When done, it destroys itself. This works great
Then I added a second game object handling animation, ...
6
votes
3
answers
1k
views
Do customizable blank-slate protagonists limit the narrative potential of action RPGs?
I am examining protagonist design in action RPGs, and my conclusion so far is that fixed, authored protagonists consistently allow for deeper and more effective storytelling than blank-slate ...
2
votes
2
answers
925
views
Is it worthwhile to use events when there’s only one subscriber?
I'm trying to determine the best architectural approach for handling communication in Unity, specifically when the interaction is strictly one-to-one.
The Core Design Conflict
I have five crucial, ...
2
votes
4
answers
248
views
How are deltatime overshoots typically dealt with--or are they dealt with at all?
So I was implementing deltatime adjustment into a game when I thought of this problem. Consider a control case, with no adjustment for framerate:
Here, our character jumps up to a max height of 12.5 ...
0
votes
2
answers
183
views
Do GPUs re-draw a all of a character's vertices/triangles/fragments every frame?
I'm a beginner in game programming and I want someone to confirm my understanding.
Let's say there's a 3D model for a character in the game. This character is made up of triangles. Each vertex in ...
0
votes
1
answer
135
views
In game engines and 3D rendering, which coordinate system results in the least amount of operations to transform and render scenes?
I understand this is a slightly esoteric question, but its something I've constantly asked myself over and over when using various 3D design tools and game engines.
In what way should models be facing,...
0
votes
3
answers
148
views
How do big open worlds handle Object Pooling?
Object pools are great. They are fun to make, save you a lot of memory and fps.
But as my projects grow in size and complexity it gets harder and harder to work with them. If you only have a couple of ...
3
votes
1
answer
148
views
What’s the correct / idiomatic way to pause a game in Unity?
I'm trying to implement a robust pause system in Unity and I'm confused about the correct approach. My first (very simple) implementation in my previous project used a ...
0
votes
2
answers
143
views
Why is it so difficult to port Windows games to Linux?
Steve said said that Windows games won't run the same on Linux and you can't even test them equivalently because Linux doesn't know how to compute how many frames were generated in a second.
Aren't 3D ...
0
votes
1
answer
141
views
How to make enemies spawn off-screen in Godot 4.5?
I am trying to make a game using Godot 4.5 where enemies spawn off-screen, but I faced this bug where they spawn on-screen instead:
The white squares are the spawned enemies and the red is the player....
0
votes
2
answers
142
views
Does it make sense to use a compute shader with Dispatch(1,1,1) and Numthreads[1,1,1] to draw a cone?
I was working on this idea of drawing a cone rotating on the y axis with a parametric equation, using a compute shader with a function like:
...
1
vote
1
answer
124
views
How does one efficiently render depth in an oblique top-down "2.5D" game?
I'm making a 2.5D game in Pygame with an oblique top-down view, where you can see both the top and front sides of the objects/environment, similar to top-down JRPGs and 2D Zelda games:
(Graphical ...
1
vote
1
answer
59
views
Animation can't disable gameobject
I'm using a very basic animation to create a transition, which involves deactivating a gameobject on the last keyframe.
Goal:
The ChangeRound animation is about 1 second long. It enables the UI image ...
0
votes
1
answer
89
views
Decelerating player's momentum without changing direction
I'm adding deceleration to my player character, decreasing their velocity over time when the player releases the direction keys.
With the code below, at non-perfect angles, the character seems to re-...
0
votes
1
answer
43
views
Capsule collision sticking in mirrored section of level
I have a problem with importing a 3D model from Blender into Godot 4. I created my apartment model in Blender and exported it as a .glb file into Godot 4.5. I generate the CollisionShape3D using Mesh →...
1
vote
1
answer
51
views
Can't get a Prefab to scale down accordingly inside a Container
I have a prefab with some fixed sizes on itself and its elements:
Then added a Aspect Ratio Fitter and a Preferred Height:
.
When using that prefab from a container with Horizontal Layout Group with ...
0
votes
0
answers
60
views
How to model tic-tac-toe as a Model View Controller Pattern in JavaFX?
I wrote a Board.java class which
draws the initial board
draws the Reset button
draws the label to indicate whose turn is it
In the Main class:
I initialized a Pane.
Initialized the Board's board ...
1
vote
1
answer
52
views
Sign out of Google Play Services through code
In the Unity engine, I am using GPGS as a token to log in via Google sign-in. It works, but now I have another issue:
As of the last update of the SDK 2.1., this method in PGS for Unity is deprecated:
...
0
votes
1
answer
40
views
Godot Multiplayer Player Doesn't Spawn
Godot Version
4.5 Stable
I'm trying to create a multiplayer game. Since this is my first multiplayer game I started with a simple LAN setup.
How it is supposed to work:
When ...
0
votes
0
answers
42
views
Coding a health and stamina bar above player in Adobe Animate
I am using Adobe Animate for my school assignment.
I have a three-segment health and stamina bar that is above the player (it isn't set to be attached to the player yet).
I have a single enemy ...
0
votes
1
answer
64
views
Is an assumption of Welzl’s algorithm valid?
The stated assertion that a point outside some intermediate Minimum Enclosing Sphere is on the boundary of the final Minimum Enclosing Sphere seems unsupportable. It is true only for the first point ...
1
vote
1
answer
48
views
Is there a "best practice" for making changes to packages
This could be answered from a perspective of Unity dev, or generically for programming - either would be beneficial.
I'm working on a game and am using two packages, More Mountains' TopDownEngine (for ...
0
votes
0
answers
37
views
Need help with 2D player controller
I'm trying to create a 2D side-scrolling player controller like in Terraria, but I can't get the delta time right. If I set my laptop's mode to battery saver, my character jitters (from dt jitters), ...
0
votes
0
answers
45
views
how to implement event system with SDL2?
I'm writing a C++ game engine using SDL2 and I have an SDL event loop, but I'm not really sure what I want to do with these events. I know that I'll have systems that will be interested in these ...
0
votes
0
answers
32
views
Procedurally generated 2D planets [closed]
I'm pretty new to making games, so excuse my ignorance if I say something stupid. I'm coding in cpp with raylib as a graphics thing. What I basically wanted to do is have procedurally generated ...
0
votes
0
answers
52
views
How to implement a bilateral filter in a shader?
I want to implement a bilateral filter because I have read the it preserves the edges. The equation is given as:
$$ BF\left[I\right]_p =
\frac{1}{W_p}\sum_{q\in S}
G_{\sigma_s}\left( \left\Vert p-q \...
1
vote
0
answers
24
views
Halftoning Multipass HDRP Unity
I am pretty new to rendering, and I wanted to add a black and white halftone effect. I wrote the two shaders and created the materials (pass 0 to create mask and pass 1 to mix it with the scene). They ...
0
votes
0
answers
31
views
How to properly manage vertical offset for ghosts oscillating between tiles in Pac-Man ghost house
-2
I am implementing ghost behavior in a Pac-Man clone, specifically the behavior when ghosts are inside the ghost house during the waiting phase.
The issue is that ghosts inside the ghost house do ...
0
votes
0
answers
28
views
Active ragdoll in Godot 4.5: how to achieve good results?
I'm working on a 2.5D game in Godot 4.5 that uses skeletal animation + ragdoll physics.
I'm really happy with how the full ragdoll mode behaves, but I can't get anything close to a good active ragdoll ...
0
votes
0
answers
20
views
Controlling a material attached to a Post Process Volume's opacity in Unreal 5.5.1
I'm trying to create a Slenderman-style TV static effect in Unreal Engine 5.5.1, where the effect slowly fades in as you're looking at Slenderman. I'm using an unbound Post Process Volume with the ...
0
votes
0
answers
22
views
Can Godot's AnimationTree blend multiple skeletons using Animation Playback Tracks?
I have a setup in Godot with two different skeletons for male and female models. The skeletons are different because the proportions are different, but I want to use the same animations on both.
Both ...
0
votes
0
answers
20
views
How to set only the yaw in Transform (Modify) Bone node?
I'm trying to modify the hips bone as to make it fixed at one global yaw rotation but the "Transform (Modify) Bone" node only has the option to modify all 3 Roll, Pitch & Yaw:
Is there ...