All Questions
56,253
questions
0
votes
0
answers
32
views
Transparent portions of a texture show up as pink? [closed]
Why does the transparent portion of this texture show up as pink?
0
votes
0
answers
6
views
In LibGdx, how to add another music format?
I would like to add multiple music formats to the LibGdx library, like .vgm, .mod, .s3m, .xm and so on. I already have the Java code to do so, but it's hard to integrate it with LibGdx code.
I know ...
1
vote
1
answer
46
views
Detect if a key other than "this" key has been pressed
I'm wondering if there is a way to detect if the key being pressed is NOT matching a specific KeyCode.
I tried using: ...
0
votes
0
answers
20
views
Why when switching between scenes the loading transitions is loading empty scene before loading the scene in index 1?
I have two scenes: Opening Scene and Game Scene.
The logic is to play the Opening Scene and then fade out then when the Game Scene has loaded to fade in when the Game Scene is already loaded.
the ...
0
votes
1
answer
62
views
Optimal Approach for Transmitting and Rendering Large Pixel Art Game Maps in Unity
I'm working on a pixel art game in Unity, and my backend (Which is actually written on Golang) has generated a massive dataset of tiles for a 1000 by 1000 world (it could be even more). I'm wondering ...
0
votes
1
answer
79
views
Converting number in name of gameobject into alpha keycode
So I have no idea if there is a way to do this, but I'm trying to find a way to turn an alpha number in a game object name string into an Alpha key code, which I'm going to use in an Input.GetKey.
...
0
votes
3
answers
87
views
What is the best way to implement a scene manager?
I'm trying to create a scene manager system for a small framework I'm writing on top of SDL2. I have implemented a scene management system that works, but I am not sure if it is structured how it ...
0
votes
1
answer
117
views
Inconsistent Speed Of A Projectile Traveling On A Bezier Curve
What I'm doing:
I'm moving a projectile to it's target along a Bézier curve with one control point.
The projectile moves from Transform A to ...
0
votes
1
answer
39
views
Unity 2d with the Android platform crashes with the urp package
I’m new to developing lights in Unity, I looked at the tutorials and decided to use the URP package. When installing the package, the project crashed at first, but then I restarted and the textures ...
1
vote
0
answers
67
views
Use of a Global Shaders in Unreal Engine to apply some pre-processing operations
I'm a little experienced in Unreal Engine, but I don't know the Unreal's graphics programming from a very low level. More in details I would like to know how could use an Unreal's Global Shader to ...
0
votes
1
answer
43
views
How to render a portion of a texture (upscaled) without affecting the border with SDL2?
I noticed that render a portion of the texture, upscaling it, it affects is border values with the proximity of the outside remaining parts of the texture (when not using Neareast neighbour ...
0
votes
0
answers
33
views
How does bullet physics filter 4+ contacts in GJK?
If the bullet GJK (Convex vs convex) collision algorithm has more than four penetrating points, then how is it filtering that down to the four it needs?
What I've tried
Staring at the code, but I get ...
0
votes
0
answers
37
views
Problem with light in Unity2D
I'm new to working with lights in Unity, I watched a lot of tutorials and decided to use URP. It seems like I have everything set up, but when I set the lighting, the light doesn’t fall on the ...
0
votes
1
answer
39
views
Unity RB Controller Jitter on a Moving Platform
Brief Description: I have a RB based character controller that I want to move along with my Train platform (non physics based) when the player steps on it.
Main Problem
I manage to make the player ...
0
votes
0
answers
22
views
How to trigger a local file download for a screenshot from a Unity WebGL game?
Is it possible for a Unity WebGL app to trigger a local file download - binary data generated in the app, somehow triggering a browser download?
0
votes
1
answer
30
views
c++ SFML Window in std::thread ignore animation
I have a main window whose loop is just in the program and a Window class in which separate sf::RenderWindow objects are created and the loops for them are in ...
0
votes
0
answers
26
views
Create Flexible Grid Of Points with rows and columns [closed]
I want a flexible grid position , I want to move some objects to that grid position,
I want the grid have rows and columns
can anyone help with this ?
1
vote
1
answer
64
views
Actual Custom Nodes in Godot
So I am creating a plugin for Godot 4, and I want to create an actual custom node.
What do I mean by that?
First to create a custom node I do:
...
21
votes
2
answers
7k
views
What is a "normal" in game development
I'm new in Game development and probably this is a silly question.
I had a look online but haven't found a clear answer, I did it bit quick but enough to evaluate that this is a confusing topic ...
2
votes
2
answers
102
views
Calculating average ttk given accuracy and healing
I'm trying to calculate the expected ttk for weapons in my game but I'm having trouble because players can miss and enemies can heal.
Let's say an enemy has 100 health and every second you have a \$p\$...
0
votes
0
answers
27
views
Add a controls instruction overlay to game HUD
I was wondering how I could make an instruction panel for the users of my game in Unity.
I will add a photo to this post that shows an instruction panel.
Any explanations would be much appreciated!
0
votes
0
answers
36
views
Install Unreal Engine 4.22.2 on Ubuntu 22.04
I am trying to setup NDDS on Ubuntu 22.04 which requires Unreal Engine 4.22.2.
Looking at the oldest available versions of Unreal Engine for Linux, I don't find 4.22.2. What do you suggest to do?
The ...
0
votes
0
answers
64
views
How Virtual Textures work?
I'm trying to understand how Virtual Textures work. After coming across this post:
https://discourse.threejs.org/t/virtual-textures/53353
And more research here:
https://docs.unity3d.com/Manual/...
1
vote
1
answer
25
views
How to detect colored pixel of Sprite3D texture with perspective camera ray?
I've tried to ray cast my mouse position to Sprite3D on screen but I have some problems with it.
...
0
votes
1
answer
56
views
Unity Mirror Networking Audio Behaves Differently on Host and WebGL Client
I am creating a system in Unity using Mirror Networking which will only require one host/server and one client. It is a WebGL build so the client will connect on a browser. I want to send commands ...
0
votes
0
answers
42
views
thicker line in render [closed]
I have a project with many lines as the pipelines, unfortunately when I render the project, lines are rendered so much thicker than real size how they cover all the project. how can I fix it.
1
vote
0
answers
70
views
Is there a reason that we have to use homogeneous coordinates in rasterization?
Looking at the pipeline of games, I am confused about the necessity of homogeneous coordinates.
For gameplay logic, a 4x3 matrix is enough to handle translation, rotation, and scale. I can't think of ...
0
votes
1
answer
25
views
OnCollisionStay outputs strange contactpoints
I am currently trying to make a pen draw on a paint.
I am searching for contact points on the paint but there is too much contact points than expected.
I'm not sure to properly understand how ...
0
votes
0
answers
35
views
Need help with artefacts when rendering shadows using a shadow map
I am encountering some weird artefacts when rendering shadows using a shadow map.
I am using C++ with Vulkan and GLSL shaders.
This is the vertex shader that calculates the ...
0
votes
1
answer
57
views
Pygame code/file structure
I am currently working on a Pygame project and would like to seek your advice on best practices for organizing my code, particularly when it comes to creating additional scripts. I find myself ...
0
votes
1
answer
20
views
Seamless way to have touch be mapped to Input.mousePosition again in new input system
had not expected such a basic mapping to not come as default... what is the simplest way to do that simple mapping - that does not require modifying existing scripts?
0
votes
1
answer
66
views
How to Code Rhythm Sync
I'm trying to make an object's movement automatically sync to the music in Unity. I want a way to get the "key points" (when there is a loud beat) and make the object dash at those moments.
...
17
votes
3
answers
5k
views
Game loop isn't performing well enough, so my frame rate is too low (Windows Form + GDI+)
I decided to learn about building games, so I picked up C# to use it along with Windows Form - I already have C# experience, so that was the main reason I did so. That said, I tasked myself to build a ...
1
vote
0
answers
74
views
Why does ROBLOX use an object-oriented system rather than an entity component system? [closed]
I decided I would develop a game engine in c++, so I was thinking about different ways of handling objects. I also have experience with ROBLOX, so I know that it uses an object-oriented design as ...
1
vote
0
answers
83
views
Trying to implement undo system
I've got a problem with my undo system that ive made, the idea is I want to make a sort puzzle game like this => https://www.youtube.com/watch?v=VdXi9UQhOng
WHAT I UNDERSTAND
There is some ...
1
vote
0
answers
35
views
How to fix collision for objects beyond their green lines?
As you can see in the image those are collision lines but its kinda of disingenuous as there are I would say invisible collision blocks on the X's, I tried messing around with the sorting layers and ...
-1
votes
0
answers
11
views
IDE cannot build task core minimal.h no such file directory [closed]
I am following udemy and created a cryptraider project I added a grabber component at first it worked fine I added some c++ code to that component bt now I added two more function in the c++ file but ...
1
vote
1
answer
61
views
Flying AI shakes when chasing and avoiding obstacles simultaneously
I've got a problem with my flying AI in Unity. When it just chases a target it's ok, but my system contains avoiding obstacles so when it starts to do it, it shakes weirdly.
As I understood using <...
1
vote
1
answer
51
views
What would be the best way to gradually increase the speed of a 2D arcade game with gravity physics in Unity?
I'm somewhat new to Unity, so I'd like to hear some more experienced thoughts on this. I'm using C# if that helps.
I'm currently working on an arcade game somewhat similar to "Doodle Jump" ...
0
votes
1
answer
74
views
How can I correctly pass 2 vertices instead of all 4 for a quad to a vertex shader?
If I am rendering quads, but all the quads will be axis-aligned (that is, their plane is always parallel to either the X Y or Z plane), I thought I could cut vertex video memory usage in half by ...
0
votes
1
answer
48
views
Reward System For HTML Game
i am new to coding and have started a little clicker game and right now im working on a reward system for when the players click amout reaches a certain value. i have figured out how to make one ...
1
vote
0
answers
15
views
Is there a way to set SteamVR OpenXR to strict mode
Background
I'm having an issue where steamVR with an Oculus Quest 2 is being lenient with my use of OpenXR. For example
This is wrong (but works on steamVR)
...
0
votes
4
answers
125
views
How to tell whether an expression is independent from frame rate?
I'm working on a videogame where part of the logic involves increasing a value each render frame (a render frame is equivalent to a simulation step where the result is drawn on the screen).
Frames can ...
1
vote
2
answers
46
views
When/Where to use Node2d as parent vs Other Node
tl;dr = When/Where/Why use 'Node2d' as the parent vs going straight to 'Other Node'?
I have just started diving into using Godot for the first time. I completed the Your First Game official tutorial (...
0
votes
0
answers
32
views
Why do my trigger zones change rotation randomly on gameStart in editor?
I'm now doing a racer on rails like "Outrun". I do have a cool Script from internet that makes the camera and the player follow the Waypoints. The Waypoints are Trigger shapes. I have a ...
1
vote
1
answer
73
views
Is there a PBR-like material system for audio?
With visual/rendering materials, a very popular system for this is PBR. Materials made using PBR may define properties like albedo color, normal maps, emission, roughness, metallic, specular, etc. ...
0
votes
0
answers
28
views
How to load a whole folder of assets without using a Resources folder?
I have a folder full of images that I want to keep ready in a script. The Unity way to do this is to have a MonoBehaviour with, for example, a ...
0
votes
1
answer
32
views
Infinite character loop when trying to play Dialogue
I am trying to make a dialogue system in Unity by following this tutorial: (29) 5 Minute DIALOGUE SYSTEM in UNITY Tutorial - YouTube. There is a slight twist to this and that is that I am triggering ...
0
votes
1
answer
42
views
Transparent Composite Object In Unity HDRP
Potentially a big question, but it seems like it should be simple enough. I have an object in my game composed of multiple parts (connected GameObjects with their own renderers). I want to make this ...
1
vote
1
answer
281
views
Area2D only detecting body_exited once
I am new to game development, I am practicing by creating a pong game.
I currently have an Area2D set up with a signal listening for ...