All Questions
52,439
questions
0
votes
0answers
2 views
Input.KeyUp Not working for a very quick press and release unity
Currently I am trying to get the Horizontal axis(-1,0,1) as well as when that key went up for furthur logic.
But unfortunately when I quickly presses and releases the key, the flow for GetAxisRaw ...
1
vote
0answers
10 views
How to properly assigned PlayerState variable from Game Mode?
I am currently trying to assign Player Index to my PlayerStates and I have made it through GameMode like below from PostLogin. This is the relevant part:
My problem right now is the server actually ...
0
votes
0answers
10 views
Why addForce creating some small movement in my game object?
I'm working in a project with Unity 2d where player walks on a small planet. I try to use some code from youtube tutorial to apply gravity to my planet.This code consists of two parts, Attractable and ...
0
votes
1answer
18 views
Best approach to game items?
I'm learning javascript, and trying to create some sort of game engiene for a text based game.
I'm not sure how to approach items. Object literals seem like the wrong idea, and constructors require ...
1
vote
0answers
7 views
Move sprite in relation to parent? [duplicate]
I'm writing a simple game in C# and i'm having some difficulty to calculate the local position of a sprite.
What i'm aiming to achieve:
Calculate the sprite "local position" relative to the ...
-1
votes
1answer
12 views
Unable to restart level in Pygame
So, I am making Flappy Bird and when the player dies I have the spacebar assigned to reset the game.
However, it's not working and I truly have no idea why (after like 3 hours of going through ...
0
votes
0answers
16 views
Drawing 4D coordinates OpenGL WebGL
Quick question summary: how do I make openGL take 4 coordinates per point into the vertex shader from an array? I will then convert these to 3 coordinates (glPosition.xyz).
More detailed explanation:
...
1
vote
1answer
20 views
How do I make rigid bodies on a spinning plate move accordingly?
I have two 3D objects in my scene, a spinning plate (rotating flat disc) which has a Mesh Collider, and a Rigid Body cube.
The ...
0
votes
0answers
17 views
2
votes
0answers
12 views
Ue5 AI MoveTo does not work
I have been having problems working with AI MoveTo and created a very basic version in the hopes of finding the problem:
As you may see, I have one single character with the default skeletal mesh and ...
0
votes
0answers
25 views
0
votes
0answers
12 views
Unity Quest System Pro Integration with Easy Save 2 conflits
I am trying to integrate "Quest System Pro" with "Easy Save 2" in Unity 2020.3.12f1. After clicking on integrate, the "Quest System Pro" automatically downloaded the &...
0
votes
1answer
26 views
How to keep objects in the same position relative to their parent?
I'm writing a simple game in C# and i'm having some difficulty to calculate the local position of a sprite.
What i'm aiming to achieve:
Calculate the sprite "local position" relative to the ...
0
votes
0answers
9 views
How to make the image in Unity the same as in MagicaVoxel?
I've seen a similar question before, but this question was asked 5 years ago and a lot of things in Unity have changed.
Here is the result I would like to achieve
But what happened in Unity
How can I ...
1
vote
1answer
17 views
Unity Camera resets rotation instead of using existing values
I'm working on a generic camera rig using mouse inputs, kind of like an RTS camera but it will be used to look at models with as a sort of turntable viewer.
The issue I am having is that when I rotate ...
0
votes
1answer
25 views
how to make a character controller like the one used in Fall guys
I've been trying to make a character controller like the one used in Fall guys, but so far I've only been able to create a standard character controller. I'm still new to Unity Game Engine.
3
votes
0answers
32 views
Why my player can suddenly fly?
I'm working in a project with Unity 2d where player walks on a small planet. I try to use some code from youtube tutorial to apply gravity to my planet.This code consists of two parts, Attractable and ...
1
vote
0answers
10 views
LIBGDX ShaderProgram not passing uniforms
I'm trying to implement a Shader that turns any RGB values below 190 into black.
LIBGDX code:
...
1
vote
1answer
29 views
How to lerp between diferent spot angles
I have this code that Change spot angle randomly between 'minAngle' and 'maxAngle' each 'interval' seconds:
...
0
votes
0answers
15 views
Update the positions of child objects of a scroll bar when its parent moves?
I'm implementing a vertical scrollbar for a small game project and I'm having some issues with calculating
correct positions of the scrollbar controls when its parent control moves.
At the moment, ...
0
votes
1answer
32 views
Prevent Unity From Loading The Next Scene After Getting to the Final Scene
I'm a beginner in Unity, I wrote a script that will load the next scene whenever monsters in a scene are dead. The script is working fine.
Here's my script.
...
0
votes
0answers
17 views
OpenGL : std140 alignment and uint64_t arrays
I have a problem but I can't figure out what is happenning (I think that there is an alignment problem...), so in my OpenGL application I use bindless textures which handles are sent to the shader via ...
2
votes
1answer
18 views
Resize and move widgets when screen resized
I want to add buttons to my libgdx based game and have them be independent of the window's size, but when I resize the window, the buttons stretch and deform instead of being resized and/or moved.
...
0
votes
1answer
43 views
Can anyone tell me how to implement ammo types in C#
I want to implement an ammo changing mechanism for my game and I know how to do it with array index, is there another easy way to implement this feature in C#, Thanks in advance.
0
votes
0answers
34 views
How do i code double jumps to character controller on unity?
heres my script. i just started coding like 3 days ago so idk much.
...
0
votes
0answers
19 views
Which jump type implement in third person player game [closed]
I have a question. In games (in particular from the third person), what type of jump do you like:
Controlled (As in mario)
Normal (Linear in time/ Parabola)
I can't remember a game that wasn't a ...
0
votes
0answers
12 views
Move animation bones hierachy
I took an asset from the asset store with some animation.
The animation expect the Animator to be put directly on the object that contains all the bones.
=> fbx (with animator)
=> bones
I would ...
0
votes
0answers
10 views
When dealing with Image based lighting, are the generated irradiance map and specular ibl dynamic?
I have been reading about IBLs, trying to understand how they work; so, I can implement them in my engine. I have understood the general concept and the calculation for the diffuse but I am still a ...
1
vote
0answers
22 views
Faster Alternatives to Jacobi Pressure Solving in Navier Stokes Simulation
While Jacobi itself is quite simple it needs at least 10 iterations to produce acceptable results. However that results in a higher total time cost than the rest of the Navier Stokes Simulation ...
0
votes
0answers
31 views
How to prevent re-opening a scanned image's URL again after pressing back to return to the app
Simply, after scanning the trigger image with the phone's camera, the URL opens
successfully. When I press on the back button to return to the phone's camera,
the app reopens the URL again as you see ...
-1
votes
0answers
24 views
This keeps popping up while I'm trying to get an animation working in Unity
What does this mean? I've been trying to get a character to change animations when it is near an object. But nothing happens and this keeps showing up. Any advice?
0
votes
0answers
16 views
How can i have someone press a button on a mobile client and have it interact with the pc client? [closed]
What I want to happen is for someone to press a button on a mobile client and for something to happen as a result on a pc client. I just want to be pointed in the right direction so i can dig into ...
0
votes
0answers
14 views
UVs Distored When Importing Mesh?
The first image shown below is of part of my mesh in Blender, and the second is of that same part of the mesh in UE4. For whatever reason, the UVs are distorted and glitchy once imported into UE4. I'...
1
vote
0answers
19 views
Is it a good idea to swap between a lot of different shader states during runtime?
What I'm trying to do is create a specific shader states(depthstencil, blend, and rasterizer)...
-1
votes
0answers
18 views
How to be inside a halo light
i have a couple of light with halo but when i get too close to them in game mode the halo disapears. I want to be able to feel inside the halo, is it possible?
Thanks!
0
votes
0answers
19 views
How to structure an event class
Hi everyone I'm currently taking my first steps into game/sim development and I'm kind of stuck on what the best way to approach this might be. Basically I'm trying to figure out the best way to write ...
0
votes
0answers
26 views
Performant way to generate a cylindrical mesh along a dynamic spline
I am working on a mobile game, in which I am tiling a cylindrical mesh along a dynamic spline. The points of the spline are changing each frame, so the vertex positions and normals of the tiled mesh ...
1
vote
0answers
12 views
How to write a Geometry shader (GSMain) and add it to a mesh in Stride3d?
In Xenko/Stride3d, I need to create a mesh and add a geometry shader to it. This shader should update the vertices.
Need complete work flow on how to do this. How to create a shader? how to add it to ...
0
votes
0answers
23 views
How to access the Windows 10, x64 sound system
I am interested in reading the real-time audio data stream from, and sending real-time audio data to, a Windows 10, x64 sound system. The particular focus is for a Lenovo Flex 5 laptop.
I am using C++...
0
votes
1answer
27 views
How to make instantiated gameObject to be child of other object
I have a game object that I want to instantiate. There is no problem at all with the Instantiate() method. But the problem is, whenever I instantiate the object I ...
0
votes
1answer
27 views
How do I add multiplayer in to my unity game?
I made a 2d game for phones where screen is divided in two parts. I have made game for local multiplayer. Upper half player1 and lower half player2.
What do I need to do to make that upper half ...
0
votes
0answers
4 views
Making VR head turn add rotation to player controller
I want to make a control system where, if you look far enough left or right, the controller starts to rotate.
To do this, I find the vector (Vh) between L & R hand controllers, then
find the angle ...
1
vote
0answers
23 views
How to display localized text from the selected language's script file?
I am trying to make a textbox engine for my RPG using Gamemaker Studio 2 as my game engine, and so far I have managed to make a pretty good-looking animation for when the textbox comes in and out. I ...
0
votes
0answers
19 views
How to make a drag and drop system for a Tower Defense game
First off, I know this question has been asked many times before, but, the answers haven't quite worked for me. I am developing a tower defence game in C++ and Raylib, and I am trying to solve the ...
1
vote
0answers
26 views
Why my output image is not seamless?
I offset a region of an image but when I tried to restore it using same method it doesn't look right. here is my input and output:
And this is the code I used to restore :
...
0
votes
0answers
24 views
Is there a Godot equivalent of VelocityChange (like in Unity3D)?
In my Pong game the pressing of the required key and the actual movement has a delay in b/w. I believe this is because the force is building momentum and then moving, a problem I solve in Unity by ...
0
votes
0answers
13 views
Make character fall straight down on a collision
I'm building a game where I need my character to fall straight down when an overlap (collision) event occurs while jumping.
Depending on the angle my character gets deflected, I want it to fall ...
0
votes
0answers
5 views
Unity `Animatior.keepAnimatorControllerStateOnDisable` doesn't work properly
I encountered an issue with Unity Animator component.
Having 2 states:
Normal (default state with no animated fields)
Highlight (with animated fields)
I call ...
1
vote
0answers
24 views
How is the processing for FPS games with massive worlds (like Planetside 2) distributed between servers?
For such massively sized maps with an insane amount of players when it came out (or maybe it still has thousands of players in one general area at once still?), I'm almost certain the entire world is ...
1
vote
0answers
19 views
Get selected string from TextMeshPro input field/text on Android
i am trying to create a tag system for a journal i'm making and that requires being able to select specific parts from either an input field or a text element with the finger (drag and select) and ...