All Questions
54,003
questions
0
votes
0
answers
5
views
How would one go about changing local scale of game objects that has its transforms x value being affected by the Mathf.PingPong function in unity?
I am making a 2D platformer in unity and I programmed one of the enemies to move back and forth with the ping pong function. I would like to change the local scale depending on which direction the ...
1
vote
0
answers
16
views
How to handle duplicate logic in a state machine for a platformer player?
I'm trying to implement a platformer character using a finite state machine, but I have troubles understanding what kind of logic goes into a state and what logic goes into a main player class ...
0
votes
0
answers
12
views
Single pixel disappears in outlining shader
I've recently (11 hours ago, to be precise😅) started to work with shaders and it's going pretty well. I've created a simple shader to create an outline and I tested it on a simple object to see how ...
1
vote
1
answer
14
views
Model path of bullet to hit future position of balloon
I am coding a Bloons Tower Defense Game and one of the problems I have is how to shoot a projectile from a tower and have it hit a balloon that is moving along a certain path. The way I am currently ...
0
votes
0
answers
8
views
Multiserver support in Mirror [Unity]
Is there any mechanism in Mirror networking library to scale the load in case single server gets overloaded?
There is possibility to use "lobby" conception, but if you want all players to ...
0
votes
1
answer
23
views
Any way to copy data into a component in another thread?
Pretty sure the answer to this is a resounding no but just in case...
Running an expensive algorithm in a separate thread. However, it returns data that must be copied into the arrays of a Shapes....
0
votes
0
answers
20
views
Gaps in shadows even with zero bias set Unity
I have a problem with gaps in shadows in Unity. I know that there are many questions about that, but all of the answers are usually about setting bias property to 0. But this didn't help me. I use ...
0
votes
0
answers
37
views
Scalable MMO networking core: is that opportunity available for indie teams? [closed]
Recently available solution on market - SpatialOS - let small developer teams almost completely forget about networking problems in MMO games. But for now it is looks like this project become canned. ...
0
votes
2
answers
32
views
Dynamically generating and modifying non-Euclidean/Tardis houses while maintaining AI navigability
General Description
I want to build a tech demo about a game concept I am carrying around for quite some time now. A lot of influences from different sources shaped this, and I will try to hint on its ...
0
votes
0
answers
24
views
Firebase messed up Google Play Games Service authentication and saved data
Currently, I'm collaborating on advertising my game with Google's official advertising team.
Recently, they requested me to link my game with Firebase to track user events and analysis. So I made a ...
0
votes
0
answers
29
views
Motor Bike MSK 2 Kit Turning Radius Problem in unity
I am working on a Chopper Style Motorbike Simulation game and using the Motor Bike Starter Kit (MSK) in Unity. I want to change the turning radius of my bike according to my game requirement. But in ...
0
votes
0
answers
26
views
Not able to set custom prefab as a mesh to Particle system
I am extremely new to Unity and trying my hands on the Particle System and facing an unusual problem. I don't know whether it is a bug or a legit logic, but in below picture / scene, I am not able to ...
0
votes
0
answers
25
views
Should I use blend or state or layer for jump?
I am very confused on unity animation system. Should I be using a blend or state or layer?
I need the following animations
walk ( WASD )
run ( shift + WASD )
jump ( space )
push/pull ( p)
throw ( t )
...
0
votes
0
answers
34
views
How do I clear all gameobjects placed on a tilemap?
If I call the following on a tilemap:
myTilemap.ClearAllTiles();
It clears all tiles placed using the tilemaps built in system. But if I've placed any tiles via ...
0
votes
1
answer
31
views
Merging multiple FBX files into a single gltf
I have about 10 FBX files. Each file has a single mesh, skeleton and animation. The mesh and skeleton are the same for all files but each has a different animation.
My software can only handle gltf ...
0
votes
1
answer
32
views
How to reference a script that's on just one object in the same scene via code?
private TileMovement tileMovement;
As you can see in the code above I am trying to reference a TileMovement script, where I ...
0
votes
0
answers
57
views
Player rotation using relative mouse movement instead of absolute
I'm working on a twin stick shooter where the player looks at the mouse cursor. Like most I use the absolute mouse position and the player's position to determine the direction and derive an angle. ...
0
votes
0
answers
37
views
Game networking with physics different client and server languages
We are currently having only "turn based" multiplayer games in our party game lobby system. Now we considered to add realtime multiplayer games as well, for example golf in 3D. Our current ...
0
votes
2
answers
45
views
0
votes
1
answer
51
views
How to use Unity job system to do background work spanning multiple frames?
I have a slow level generation algorithm that freezes the main thread when it runs.
I found this post which is exactly the same problem, but predates the Jobs system.
All the jobs examples I found are ...
11
votes
4
answers
4k
views
What is the function or benefit of including juggling mechanics in a fighting game?
I am putting together the initial design ideas for a 3D fighting game. Overall the style of the combat I would like to be something between UFC and DOA games, so focused on realism but the pacing more ...
0
votes
0
answers
33
views
My real-time multilplayer is perfect on local server but choppy when deployed online [closed]
I am making a real time multiplayer game for the first time. For the server part I am using Node.js with WebSockets. The game runs perfectly when the server is running locally but when I deploy it to ...
0
votes
0
answers
35
views
How to visualise my matrices?
I'm new to CG and I'm starting to make my own engine for college but I have a very hard time visualising matrix transformations and projection matrices. How can I visualise them in real time?
0
votes
1
answer
30
views
Send an array of struct to compute shader
I am using Unity to send two types of data to the Compute Shader:
A struct:
struct Flock
{
public Vector3 position;
public Vector3 velocity;
}
And an ...
0
votes
1
answer
33
views
How to build a system for ammunition being fired out of cannons when player characters and crewmates can also be ammunition?
I'm currently working in Unity building a game inspired by the niche DS game, Dragon Quest Rocket Slime. It's a Zelda-like forced-perspective top-down game where the primary combat mode is you ...
0
votes
0
answers
28
views
How can i make multi-line dialog box?
I'm trying to make a dialog box with pygame, and initially everything was going well. I printed the letters sequentially on the screen and it works very well in a single line of text, but when I use <...
0
votes
0
answers
15
views
supertiled2unity isometric tilemap import looks weird in game view
I am using Tiled to streamline the process of creating maps for my game. I am using SuperTiled2Unity to import the Tiled tilemaps into unity. That worked successfully. But when I added an imported ...
0
votes
0
answers
17
views
Unity Snap to grid not exact
I just noticed that unities snap-to-grid feature results in a strange behavior. The results are not precise. My geometry is comprised of 32x32 pieces. They appear to snap fine to the grid, but when I ...
0
votes
1
answer
24
views
Tangent Space View Direction based factor value remap
I'm trying to setup a mask similar to what Fresnel produces. Unfortunately Fresnel gives pretty bad results at grazing angles so I ended up using this :
...
0
votes
0
answers
38
views
Can a game have characters named after video game franchises?
The video game Battlerite, a free to play team brawler, includes a hero called "Destiny", essentially named after the Destiny video game franchise. Is this legal, and why it is not a ...
0
votes
0
answers
28
views
Best way to implement a weapon/tool swing
In some games like Keplerth or Archvale, a weapon basically points towards the mouse and stays around the player sprite. But when you attack the weapon swings. I don't believe this is done with a ...
0
votes
1
answer
43
views
Transforming world to canvas goes wrong when camera is moving
I am attempting to draw a box around a selected target in my space game. I had this working fine using normal techniques when my canvas was set to Screen Space - Overlay. However my setup is that ship ...
0
votes
0
answers
57
views
Is it advantageous if the conflict resolution for a 3d game is fake?
The game is you are a monster trainer in "3D" (I am going with WildPet(WP) for the game and the monsters). In battle with one other WP, you give the WildPets commands which can be tactical ...
0
votes
1
answer
36
views
How to extract the largest mipmap of a DXT5-compressed VTF file?
I'm trying to programmatically convert the largest mipmap of a 32x32 DXT5-compressed VTF file to a PNG. Here is what the image should look like after conversion:
And here is what mine looks like:
...
0
votes
0
answers
9
views
Unreal Engine: UNavigationSystemV1::ProjectPointToNavigation is not working in editor, always returns false
I'm trying to find the closest point on navmesh in the editor. The Navigation is built but this method is always returns false with any extent. Also, UNavigationSystemV1::GetMainNavData() is always ...
0
votes
0
answers
34
views
Can whitelisting authenticated IPs at the Firewall level reasonably mitigate DDoS attacks on a server cluster?
Wasn't sure if this belonged to GameDev or Security, but since there are DDoS Mitigation services specialized in game-related packets I figured this may be a good place.
I'm working on a server ...
0
votes
0
answers
27
views
GMS2 - Game showing the wrong object
I'm making an Undertale fangame in GMS2 and i have a problem with my Game:
It's supposed to show this:
But it shows this:
obj_next_room code:
The car (obj_torcar) doesn't have code.
Room creation ...
0
votes
0
answers
20
views
Problems with reflection angles during collision resolution between ellipse and rectangle vertices (2D)
I'm having a hard time trying to resolve the reflexion angles when the ball collides with one of the brick's corners (square vertices) in my brick breaker game.
The collision detection system is ...
0
votes
0
answers
152
views
How can I use single uniform variables inside this Vulkan shader?
I have set up a shader like so. Instead of having all projection view model in a single ...
0
votes
0
answers
18
views
Scene Turns purple on headset but not in editor
I have a scene that looks fine in the editor and even if I am connected via Oculus link and am running the game the plane interior comes out fine. However when I push a build through adb or app lab I ...
1
vote
1
answer
61
views
Unity hierarchical state machines and SOLID principles questions
i was wondering if you could help me out with some confusion i have over state machines and SOLID principles! sorry if the post gets too long, i'll try to keep things simple! So i have a huge player ...
0
votes
0
answers
24
views
How do you track a 3D model of a building for navigation in Unity and AR Foundation?
In AR Foundation, you can track planes, feature points, etc. Is it possible to create a 3D model of a space to scale (in Blender, for example) and use the tracking features of AR Foundation to align ...
0
votes
1
answer
32
views
Synvar not syncing when Instantiating gameObject
I am instantiating a gameObject server-side using the code below. The problem I am facing is that the SyncVar "PlayerUnit" is null on the client, even though I referenced a networked ...
0
votes
0
answers
23
views
Download a video to PersistentDataPath in Unity while also playing it as it downloads?
I am attempting to integrate a video function which will playback short looping videos (similar to YouTube Shorts or TikTok). I therefore want the videos to download to PersistentDataPath and be ...
0
votes
0
answers
28
views
d3d Convert 1 descriptor table (2 cbvs) to 2 descriptor table (each one cbv) get screen flicker
I am learning d3d develpoment recently.
For the triangle example, I add code about model, view matrix setting.
Here I set model, view seperate.
There are 3 methods to do this.
root constants
root ...
0
votes
0
answers
24
views
2D circle and rotated square collision detection and response
I'm creating a 2D multiplayer game in javascript, but I'm actually struggling with a problem (not really a problem, but I don't know how to do). I'm actually trying to make my player (circle hitbox) ...
9
votes
3
answers
1k
views
Maintaining unit formation while following path
I'm currently working on a 2D Age of Empires style RTS game.
Here's my problem:
I'm currently using the A* algorithm (via Path finding package) to move my units.
When you select a "group" of ...
0
votes
0
answers
37
views
What are some strategies for handling multiple sources of control on a given entity?
Let's say I have a character controller on my player that is typically controlled using a script that reads human inputs and manipulates it using those inputs. But what if I also have a scene in my ...
0
votes
0
answers
33
views
Using different hurt animations for different Melee attacks
I am currently trying to make a beat them up 2d game for learning purpose and was trying implement a combat system where if player hits with slash attack then enemy will be playing let's say "...
0
votes
1
answer
101
views
Why nobody creates shared world games? [closed]
Vast majority of modern network games use "lobby" conception: when limited amount of players connect to a single lobby server and play the game in isolation from everyone else who is not in ...