Recently Active Questions
57,685 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
2
answers
1k
views
Should I destroy dynamically created Image.sprite?
Image sprite is created programmatically
_image.sprite = Sprite.Create(texture, ...);
Should I destroy it before replacing with a new one?
P.S.
My question comes ...
4
votes
1
answer
123
views
How would I find the best set of letters for my word game?
I'm making a game where players need to spell English words (including American and British English) using a limited set of 8 distinct letters, which can be re-used multiple times.
How would I go ...
2
votes
1
answer
73
views
Why isn't my control anchored to the top left of the screen
I have this simple scene based on a Control Node and a few containers, note how the UI elements are anchored to the top left of the screen:
When I put it into another scene, it looks like this:
I ...
0
votes
0
answers
106
views
How to best simulate headlights
Goal:
How can I best simulate headlight beams, in a night-time scenario, in Godot 4?
The components I have are all sprite-based - a top-level car sprite, a shadow sprite (that is offset based on time-...
1
vote
1
answer
841
views
Can't deserialize parameters from JSON in LibGDX
I am quite new to JSON and I have been having trouble with this data-driven asset manager (not my code). I have been trying to deserialize parameters for my TmxMapLoader object from JSON. It takes the ...
0
votes
0
answers
67
views
How can I accurately calculate deltatime in SDL2/3?
I have looked up ways to calculate DeltaTime in the past, but the 'solutions' seem to have my program be slightly jittery or not move things correctly. As far as I know, you would calculate it by ...
0
votes
0
answers
70
views
Can I reference resource UIDs in save files
In Godot 4.5 beta 6, I have a drag-and-drop situation where the data being moved between nodes is stored using instances of a custom resource.
The resource instance is added to a property called ...
9
votes
6
answers
4k
views
How can I encourage players to play optimally against bosses?
I am making a shoot em up game with an aerial view. It’s main gimmick is that, instead of working like a machine-gun, your character throws a boomerang that hit the enemies both on the way there and ...
1
vote
2
answers
2k
views
How do you get the world position from the screen position in a URP shader graph used in a ScriptableRenderPass?
I'm using a shader graph in the Universal Shader Pipeline (URP) to do some post-processing in a ScriptableRenderPass. How do I get the world coordinates of the screen position?
I have tried using the ...
0
votes
1
answer
27
views
Having trouble creating a ModGUIConfig with a custom category
I'm working on a mod for 1.7.10 Forge that needs a complex config for the user to set up, but only the "general" category shows up (from ...
2
votes
0
answers
69
views
Changing prediction to interpolation on client connected to the authoritative server
Let's assume the following situation:
I have a server, that sends a snapshot of current game state to all the clients at a fixed time. Server is authoritative, all the physic calculations are done on ...
0
votes
0
answers
14
views
Transform is not available in SystemBase Script (Unity Entities)
My player is baked entity in subscene while main camera is outside on scene. For some reason system cannot find transform of camera, GameObject was found though.
<...
3
votes
0
answers
116
views
Displaying pixel art at any resolution with subpixel movement
The Goal
I have a game in Unity which utilizes pixel art. I'm not following the standard rules of pixel art, however. I'm ok with sprites having different sized pixels, pixels rotating, and pixels not ...
12
votes
1
answer
692
views
Spherical Area Lights do not match reference
So I'm adding spherical area lights to my application, and comparing my results with mitsuba, I am getting some differences (left is my approach, right is mitsuba - a pathtraced reference):
What I am ...
6
votes
4
answers
2k
views
Lunar Lander calculating gravity, acceleration and collision in GameMaker
I've already asked this on the GameMaker forums but had no response so far.
I'm making a little Lunar Lander game as my first foray in to GameMaker, I'm wanting to have the ship land and take off ...