All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

Efficient PRNG for WASM and x86_64?

For a game I am finishing, I need a random sequence that can be generated in Wasm and in the server, yielding the same result. This generated 64-bit(or more if supported by WASM) numbers sequence is ...
Kroma's user avatar
  • 111
0 votes
1 answer
74 views

Why does this movement script prevent you from jumping if you're running forward (but running in other directions does allows jumping)?

This is a rigidbody-based movement script. I notice that it doesn't let you jump while you're running. This problem persists whether you are using new Input System or not (I tested both ways). Notably,...
yunum's user avatar
  • 67
0 votes
2 answers
39 views

Unity Camera snaps back to camera mouse look after lerping to a point and rotating normally. Once mouse look is re-enabled it overrides and snaps back

I am trying to get the camera to rotate towards a location and position. Which works at the moment, but once it is done and re enables the mouse look script or bool in the script the mouse look ...
WestMansionHero's user avatar
0 votes
1 answer
48 views

How to add gameTime to movement with acceleration and diagonal normalization?

I recently started rewriting my engine from scratch, because the old one was my first attempt and the structure was very messy. Everything has been going great, but now I'm being held back by some ...
Markus Vaittinen's user avatar
3 votes
1 answer
109 views

Checking if a node is of a given type in Godot 4

I want to check if the player is near a door. In practice, this means that I want to check if the Area2D of the player node overlaps a door node (an ...
Eldy's user avatar
  • 825
0 votes
0 answers
43 views

Why is _GrabTexture(texture of current frame buffer) always empty in my code and how do I fix it?

*I am using Unity 2021.3.29 and the built-in render pipeline. Here is a fragment shader I wrote that uses a grab pass to replicate an "average color" blend mode ...
rasputin's user avatar
0 votes
1 answer
65 views

How to delete unnecessary points given a jointed path

I'm writing code for client-side pathfinding, the player can setup more than one point and then pathfinding in segments finally get a concatenated path.(actually it's for the long distance pathfinding,...
Chuan Littlefat's user avatar
0 votes
1 answer
43 views

Checking if I am looking through a window using angles

I am developing a mod for a game with a Lua api. I am trying to detect if I am looking through from behind a window when I shoot an enemy. For context, when I shoot through this window I apply a ...
Ben R's user avatar
  • 1
1 vote
0 answers
47 views

What does a "non viable function" error mean?

I am trying to use a websocket and some C++ code in order to trigger a function toogleLight every time Unreal connects with a server. But I have the following error:...
Nicolas Osorio Bustos's user avatar
0 votes
1 answer
41 views

How to prevent sun light from passing through the walls and flickering when navigating in viewport?

I am new to UE5. I am using a geometry brush to create an inner box and an outer box. The inner is set to brush type ‘subtractive’, resulting in a simple room like this: Then I create several windows ...
storycg's user avatar
0 votes
0 answers
35 views

Determining a direction/projection/heading for an object in 3D space after it has been rotated

I hope this is a good place to find an answer. I'm not a math wiz and I've tried to tackle this problem many times over the past decade or so. I have a 3D space world, and I'm in a little space ship. ...
edasac's user avatar
  • 1
3 votes
2 answers
169 views

How to allow replaying levels in story mode

I'm working on a game that focuses on a campaign/story mode for the majority of the content; the player progresses their character, collecting items/currency/upgrades along the way, and playing levels ...
tkers's user avatar
  • 393
0 votes
0 answers
44 views

90 degrees rotation of 2D isometric game

I am learning unity and wandering how to rotate an isometric map at 90 degrees. I have a fixed grid about 96x96 and would like to implement rotation of my game scene. Now I am wandering what approach ...
Valeriy's user avatar
  • 13
6 votes
4 answers
500 views

In a tile based game, with units that can move a specific amount per turn, how do i make my pathfinding avoid damage unless it is the only valid path?

i am making a 3d tactics game, visually similar to something like final fantasy tactics. it's tile based, with units able to move up and down the level onto buildings and up staircases and what have ...
graveyard's user avatar
0 votes
1 answer
44 views

I'm trying to find a way to iterate through a list of game objects to find furthest object in the list. Then re iterate if path is blocked

I've got the first part of the code working. It iterates and does a check through the gameobjects to find the furthest nav point to hit. Then it calculates path to see if its valid or not. Now I'm ...
WestMansionHero's user avatar
20 votes
7 answers
17k views

Do real game developers use blueprints, or do they always use C++?

I'm starting to learn Unreal Engine 4. Every time I use blueprints, I think "that's not right" and I need to use C++, but there are not as many tutorials with c++ code. So, is it ok to use ...
mendzek 's user avatar
2 votes
2 answers
59 views

Audio Cue for Accuracy game

I'm really not sure if this is the appropriate community to ask in. I want to use some sort of audio cue that provides feedback for a player's accuracy in a task. They perform some action in real time ...
oweydd's user avatar
  • 121
0 votes
1 answer
42 views

How to structure this concept in ECS?

High level At a high level, I'm looking to create a galaxy exploration-style game. A number of points of interest will be selectable on the map (I'd like to aim for several hundred, but flexible and ...
Basic's user avatar
  • 1,242
0 votes
1 answer
139 views

How to develop a game on a 2015 MacBook Pro without learning Metal?

I'm on Mac and OpenGL and Vulcan are not supported. Even worse, I'm on a 2015 MBP 13". Yeah, can't do much with that. I spent a full year learning C++ and I have no patience to try and learn ...
BeardlessDev's user avatar
0 votes
0 answers
21 views

How can I make waveHeight return based on a Vector3 position entered from another script?

I have this script which calculates waveHeight based on a raycastHit point. Right now it only casts the ...
yunum's user avatar
  • 67
2 votes
0 answers
51 views

How would I switch an animation track between continuous and discrete mid-animation?

How could I set it so that an animation track switches update mode mid animation? For example, when I need to have separate parts of a sprite's image remain in place as the frame changes? An example ...
Programmer S's user avatar
0 votes
1 answer
55 views

Setting up perspective projection in OpenGL

I'm trying to set up perspective projection in OpenGL but it doesn't work ...
DDD's user avatar
  • 1
1 vote
1 answer
68 views

Curved Grid Layout Group

I can't find a quick answer anywhere, besides adding a 100 line script that I'm pretty sure is outdated. As the title suggests, I am trying to curve a grid layout group. I also want the children of ...
sammyiscuul's user avatar
1 vote
1 answer
37 views

Strange Marker2D behavior in Godot with barebones code

I'm new to programming in Godot but I've been playing around with things I've learned in various tutorials. That is, until I ran into the following issue which I can't seem to debug. I attached a ...
potatochopsticks's user avatar
0 votes
1 answer
22 views

Dark spot glitch in normal mapping shader - WebGPU

I'm implementing a normal mapping PBR shader using WebGPU, but I'm getting a strange dark spot and visual glitches. My scene consists of a cube with a brick texture which has a normal map, as well as ...
realmayus's user avatar
2 votes
0 answers
43 views

How does non ECS parts work with ECS parts?

I incorporated ECS to my graphics engine and I have a problem with my Renderer needing the camera which is an entity and the process is a bit bizarre. Originally, I ...
Konjointed's user avatar
0 votes
2 answers
43 views

Unity VR using OpenXR, how to spawn object when you grab a static object

I am trying to create a simple VR card game in Unity using OpenXR, just to learn Unity and also some VR stuff. I made a deck of cards object and a card object. I put both in a scene. The card is ...
nivs1978's user avatar
  • 103
1 vote
1 answer
39 views

What is the purpose of Uv_clipping in godot?

Can anyone tell me what is the purpose of uv_clipping property of rendering section in tilemap in godot with example? I don't understand what's the use of this property
saad virk's user avatar
0 votes
2 answers
64 views

What happens with global/singleton objects when using ECS?

As I've been learning about ECS one thing that gets me confused are things like input which in my case has usually been some singleton that gets polled or in one project was event based where code can ...
Konjointed's user avatar
0 votes
1 answer
31 views

AddExplosionForce in 2D

Its a pretty simple question. I have a gun that shoots bullets, to make the game more fun i want the bullets to be used to navigate. For example shooting them below you would make the player jump up. ...
Pow's user avatar
  • 152
2 votes
1 answer
151 views

GLSL wrong data read from attribute

I'm developping an OpenGLes 3.0 app with Java and I started writing the shader code. For some reason, it seems to mix up the attributes data locations and I don't understand why. Here's the code : ...
Gyoo's user avatar
  • 114
0 votes
1 answer
56 views

How to make UI specific to players?

How can I implement a system in my application's user interface (UI) where certain UI elements are selectively visible to specific players, ensuring that each player, such as Player A, can exclusively ...
Blue's user avatar
  • 101
1 vote
1 answer
102 views

How to pause or slow down/speed up Time.deltaTime when it is inside the Update() method?

My player is able to dive for a limited amount of seconds (let's say 10 seconds) while swimming. When he's not diving his breath gauge fills up again to a max of 10 seconds: ...
Tomo's user avatar
  • 133
1 vote
1 answer
40 views

Problem recreating shader on Phaser 3

I'm trying to recreate the following shader from shadertoy using Phaser 3: https://www.shadertoy.com/view/wdG3Rz I managed to fix the errors I was getting but it just loads an empty black square when ...
Javier Villanueva's user avatar
0 votes
1 answer
41 views

Why the following code does not smoothly resets my orientation in Unity?

Hi I have the following code snippet in Unity and I am trying to smoothly reset my orientation. However the code below snaps my object in default orientation. Any suggestions why this would be ...
kosig's user avatar
  • 1
1 vote
0 answers
46 views

Swept AABB for 3d collisions

https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/swept-aabb-collision-detection-and-response-r3084/ So I was following the tutorial above to implement swept aabb for ...
Kevin Chen's user avatar
0 votes
0 answers
43 views

Forced based physics engine

Most physics engines appear to use impulse based formulations. Is it possible to use a forced based formulation instead with things like repulsive forces for contact constraints be defined by ...
maxical's user avatar
  • 101
1 vote
0 answers
28 views

Physics interpolation given an asynchronous physics thread

I've followed https://gafferongames.com/post/fix_your_timestep/ to do interpolated physics. I have a separate thread entirely from my graphics thread. I use vulkan which allows me to do asynchronous ...
Krupip's user avatar
  • 1,763
0 votes
0 answers
28 views

Spherical Billboard Effect

I try to make a spherical billboard that follow the camera's direction. But, the result that I got is model get distorted or event twisted. If I'm using only a yaw/pitch quaternion per time, it works ...
oremx986a's user avatar
2 votes
2 answers
26 views

Moving "theme" file to a different folder - is it possible to update the resource paths within the "theme"?

Assume the following: One theme is created via the Godot Editor (version 3.5) and saved under res://themes/my-theme.theme. Due to changes in the project's file ...
dsacre's user avatar
  • 71
1 vote
0 answers
33 views

How do you supply custom reflections to a shader?

I'm using Unity with Amplify Shader Editor and/or Shader Graph, but willing to learn to write a shader if that's what it takes to achieve what I need. I need to be able to supply my own reflection ...
Ben Mora's user avatar
  • 427
0 votes
0 answers
36 views

Convert new position into a velocity?

Still trying to fix my enemy's bugs. The current one is that Im using a step system that moves the enemy towards a certain position like this: ...
Pow's user avatar
  • 152
1 vote
1 answer
77 views

inserting 3d .obj into scene with godot code

I am trying to write some code, where upon running it will place a 3d obj. It is a tool to help build a map before game runtine. It is a simple 3d obj arrayMesh I am trying to add to a tscn file. In ...
nammerkage's user avatar
-1 votes
0 answers
18 views

The screen does not appear

When I implemented the light and material functions, the screen stopped showing up. I find the constentBuffer_matreal becoming zero and I do not understand why ...
mueoc mueoc's user avatar
1 vote
0 answers
34 views

How to equalize volumes of lines by different voice actors using different setups?

I have 500 voice lines as .wav files, coming from 20 different voice actors who spoke each in their home studios with different voice volume. In the game, the different volume of each line comes ...
user41258's user avatar
  • 131
1 vote
3 answers
129 views

Add wobblyness to moving object

I've been working on a custom enemy "AI", the way it works is it generates a point inside a colliders bounds, then moves the enemy towards the point. Once the enemy reaches it. The point is ...
Pow's user avatar
  • 152
0 votes
0 answers
16 views

How do I add simple integer properties to an actor in TADS3?

I'm working on an IF game using TADS 3 and I'm looking for a way to keep track certain things on the player. The goal I'm trying to accomplish is tracking how many times a player has been damaged or ...
Shadomew's user avatar
  • 101
0 votes
0 answers
20 views

Get index of Basemap where raycast hit occurred

Initially I thought questions like this, showing how to get the index on a material's main texture from a raycast hit would be the answer Experimenting with this, however, leads me to suspect that ...
user1999728's user avatar
0 votes
2 answers
35 views

Trouble setting camera position in Unity

I'm attempting to set the camera position in Unity through code. I have a simple 2D game and there's not much programming so far. I've attached a script to the camera, and in that script I've added ...
Nightmare Games's user avatar
0 votes
0 answers
88 views

How to scale UI for different screen resolutions

Godot 4.2.1, not a pixel art game. This is about scaling the UI, not sprites etc. I am targeting 1080p (base resolution), 1440p, and 4K. 4K is easy, I just set the scale to 2. But for 1440p, if I set ...
Jakub's user avatar
  • 1

15 30 50 per page