All Questions

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

Unity New Input System - Changing The Binding of An InputAction Without Using A String?

Good Afternoon, I would like to change the binding of an InputAction at runtime without using a string. This is how I am currently doing it: ...
PayasoPrince's user avatar
0 votes
0 answers
18 views

How do you do vehicle rendezvous?

If you want to have a missile track and hit a target, Proportional Navigation is a common technique. But that's simple intercept and collision, getting the pursuer to the same X, Y, Z as the target. ...
Will Hartung's user avatar
0 votes
0 answers
17 views

My character keeps bugging into the ground or into the air [closed]

You can see in the video that my character mesh is hard bugged and im sure its because of the scale since the character mesh is small I had to scale it up by about 30 when changing the size back to 0 ...
Bald Pro's user avatar
0 votes
0 answers
20 views

How to fix distortion when wrapping heightmap around sphere

I currently have a 3D model of the moon. You are able to pick a point on the moon and it takes longitude and latitude coordinates of that point and generates a mesh based on the heightmap. So if you ...
ElliotPutnam's user avatar
0 votes
1 answer
17 views

"Button is not an attribute class" error when integrating Steam achievements

I am writing the code for my button, but it's giving me errors like this: Assets\Scripts\SteamIntegration.cs (60, 6): 'Button' is not an attribute class Where did I make a mistake in this code? <...
Syeda Aqsa Sakina's user avatar
0 votes
0 answers
31 views

How to rotate body in server-side physics without imparting angular velocity?

I'm developing a 2D cloud-based MMO using WebSocket and have struggled a lot to get proper working physics on the server side. I'm using Next.js for the client and currently Node.js for the server. I ...
Hydroper's user avatar
  • 101
0 votes
1 answer
46 views

How to save and instantiate game data containing lists of polymorphic types

Let's say I have a class named Entity such as: ...
Trobibot's user avatar
1 vote
0 answers
53 views

Dialogue Manager Godot 4 Signals

When using the Dialogue Manager addon on Godot, I am trying to run a function to change the sprite of a character. My function look like this under my character script: ...
TheJalfireKnight's user avatar
0 votes
2 answers
67 views

Unity New Input System - What Is The Correct Way To Check If Any Button From An Action Map Was Pressed?

Good Morning All, I am using Unity's New Input System. I have an Action Map created called 'Menu'. Currently, this is how I check for specific button presses. ...
PayasoPrince's user avatar
-2 votes
2 answers
95 views

Please explain this matrices interpolation code

int rate,frac; sint16 *frmptr[2]; frac = GetFrames(item, frmptr, &rate); ...
black4's user avatar
  • 167
3 votes
2 answers
69 views

How would I mask the player node out of a canvas shader?

I'm making a 3D game, and I want to create a post processing effect using a canvasitem and a colorrect, that effects everything on screen apart from the player. I already have the shader itself made, ...
JackHainsworth's user avatar
2 votes
1 answer
52 views

Changing the scale of a character and speed to match the perspective of a 2D background while traveling along the Y axis

I am making a 2D point and click game, just for fun. I want to create some sense of perspective, so I am trying to change the scale of the player as he travels along the Y axis. Obviously, the speed ...
ehtio's user avatar
  • 121
0 votes
1 answer
91 views

Validate structure for a room escape game

In a game like a simple adventure or a room escape game, I would like to know if there are established algorithms to check for simple constraints on the layout. I would like some pointers so I could ...
john_smith's user avatar
1 vote
1 answer
80 views

Twin-stick backwards tank movement

I'm creating a 3D twin-stick tank game in Godot with C#. I have created the tank movement and rotation, separate of its turret, and it seems to be working properly. The issue: I want the body of the ...
Reinier de Vries's user avatar
0 votes
1 answer
52 views

Using github pages as development blog

Can I use github pages for free hosting of a development blog about my game, even if: the game itself is not hosted on github, not even in a private repository, the blog would contain posts not ...
Dalibor-P's user avatar
  • 101
0 votes
1 answer
29 views

Rotate Object Smoothly When Dragging

I want to make a 3d object rotate smoothly when being dragged in a ui in Unity. My stuff currently works but I just can’t get it to rotate smoothly, I can only make it rotate instantly which looks bad....
Zagro's user avatar
  • 1
0 votes
0 answers
16 views

Can a C file compiled from CGo code, be imported into Cython? [closed]

Is it possible to 'include' a C file compiled from CGo (C+Golang) code, into Cython (C+Python) ? If not, is there any other way to access Golang API hosted on a server, from Python clients ?
Neel's user avatar
  • 229
0 votes
1 answer
42 views

How do games package their textures in relation to image compression?

I know that you have to keep in mind what platform you're targeting, but it feels like you might have to have multiple sets of textures. Like let's say you're targeting desktop. How do I know what ...
Zebrafish's user avatar
  • 189
0 votes
0 answers
26 views

How to adjust resolution to display only in portrait mode for both phones and tablet devices?

I am facing an issue where I'm able to adjust the resolution for different phones like Android and iOS but not for tablet devices. Is there any way to set it, for all kinds of devices, to display only ...
Mohammed Rilwan Ibrahim's user avatar
0 votes
0 answers
31 views

Rotating 2D sprite around tilted Y axis

I am building a sprite that I want to spin along an axis. I am using SpriteKit on iOS for this, but I'm sure that the question is not really tool specific. In my case, I have a sprite such as: and I ...
PKCLsoft's user avatar
  • 213
2 votes
1 answer
87 views

Calculation of far distance plane based on yaw and pitch for a map renderer

I'm working on a vector map renderer. I want to calculate the far plane for a protective transformation, based on the yaw, pitch, roll and height of the camera above the map. Yaw (looking to the left ...
maxammann's user avatar
  • 123
0 votes
0 answers
27 views

Change colors after drawing lines in Pangolin using OpenGL

I am drawing a bunch of lines using pangolin library. Each line has 4 vertex pairs. My goal is to give each line a different colour. Here is the code snippet I am using. In each render loop I do the ...
Nitron_707's user avatar
0 votes
0 answers
44 views

FixedUpdate in Unity

I am trying to test my project for different discretization levels of a game object. For this I use a metric to compare the dynamics of the object for different discretization (compare the positions). ...
the2second's user avatar
0 votes
0 answers
28 views

Enemy not responding to chained attack

I am working on a 2D mobile platformer where there will be different characters with unique skill sets. I am working on a character that should be able to perform chained attacks. I have a button in ...
shanksVR's user avatar
0 votes
0 answers
23 views

How to achieve a blend of Top Down 2D and Isometric maps/art like in Sea of Stars?

I recently started playing Sea of Stars and what amazed me was the seamless blend of Isometric and Top Down 2D. Sometimes even in the same map. It's what I have in mind for the game I'm currently ...
Pat's user avatar
  • 179
3 votes
1 answer
77 views

What does VSync mean on a variable refresh rate monitor?

A game which enables VSync means that the game frames get synchronized to the monitor's refresh rate (to avoid tearing). A variable refresh rate monitor means that the monitor refresh rate gets ...
Panda Pajama's user avatar
  • 13.4k
1 vote
0 answers
22 views

Move UI element by a specific amount relative to current screen resolution

I want to achieve the following: At some point in the game, the UI Image (dashed rectangle) should shift towards the right edge of the screen (black outline rectangle) up until the part of the image, ...
Russel Ledge's user avatar
0 votes
1 answer
29 views

Static Niagara System for fire on a torch

I'm building a Niagara System for fire and smoke that would be placed on a torch when it's lit. While smoke works just fine when it's static, when I move the camera (and so the torch itself moves too) ...
user3272018's user avatar
1 vote
0 answers
47 views

Raycast suspension simulation rebounds car on landing

I'm expecting the car to land and engage the suspension to dampen the landing. The code I'm using currently has this effect: ...
Lousifr Illuminos's user avatar
4 votes
1 answer
81 views

Explode image into component pixels shader

I'm currently stuck on trying to write a shader for Godot 4.x. and get it to look right. I'd like to take an image, pixelate a bit so that particles are a bit chunky, and then explode it into ...
Ghoul Fool's user avatar
1 vote
0 answers
43 views

Mobs in 3D tutorial "Squash the creeps" don't move

I'm following the tutorial Squash the Creeps using Godot 4.1.2 on Ubuntu 22.04. At some point, the mobs are instantiated but they are not moving. I'm sure the mob scene is called from the main scene ...
Free_ion's user avatar
0 votes
0 answers
37 views

Convert legacy OpenGL script to a newer one

I have a script drawing 3D chart, three axes and a surface. Unfortunately, it was implemented using old OpenGL approach with Begin and ...
Anonymous's user avatar
  • 109
0 votes
1 answer
48 views

Why are the transform game objects moving away from the snail when they are swapping their direction?

I am making a game in which I created a character (main player) and another character(snail). Now the snail will move on the ground, when there is no ground detected it will change its direction. I ...
gamePlay's user avatar
0 votes
0 answers
22 views

Change width/height of ellipse to always be circular, independent of viewing angle

I have the following shader graph attached to a quad that draws two circles at some position. Naturally, when viewed at an angle, the circles appear to be ellipses. I'd like to know how to adjust ...
Phyo's user avatar
  • 1
0 votes
0 answers
43 views

Solution for session based MMO [Unreal] [closed]

Re-posting the question from UE forums, since no one responded to it :) I have an idea for a game. The idea is: session based MMO with battles of 5-200 players. What’s the best networking solution for ...
cool_cat's user avatar
1 vote
0 answers
50 views

Generate coastal line from water tiles

I have a 2D tiles map. Some tiles are water (black tiles on image). I can compute which tiles are coastal when it's 4 neighbors are not water (black dots on image). I would like to compute coastal ...
bux's user avatar
  • 137
0 votes
0 answers
43 views

How to extract data about in-game events?

I recently started playing New World, and I thought I would like to create something like a "data collector". It would report data like: during the session, I fired X bullets, type of ...
WILCZUR's user avatar
0 votes
0 answers
20 views

Stuck trying to build UE for iOS on Mac

I am trying to build an AR game for iOS, using a custom build of Unreal Engine 5.1.1, on an Apple Silicon (M1 Max) Macbook Pro. (I have to use a custom branch of UE5 because there is a problem with ...
Dan's user avatar
  • 101
0 votes
0 answers
17 views

Batch rendering with more textures than texture slots

I'm trying to implement batch rendering for my 2d game engine, and I need to render more than 32 different textures every frame. The first thing that comes to my mind is to sort the vertices by ...
Faby's user avatar
  • 1
0 votes
1 answer
13 views

How do I remove the gap in a Godot HBoxContainer between items?

I created a HBoxContainer and put two ViewportContainers into it. They line up side by side, but there is a gap of a couple of pixels between them. How do I tell Godot that I don't want any spacing/...
NibblyPig's user avatar
  • 151
1 vote
0 answers
20 views

Procedural NavigationPolygon for a platformer in Godot 4

I'm trying to make navigation possible for npcs in a 2D platformer. The game generates chunks with random platforms as the player ascends, so I also need to implement the navigation procedurally. Each ...
Alex CB's user avatar
  • 366
0 votes
0 answers
53 views

Can i copy exactly same character from league of legends? [duplicate]

Lets say i will copy exactly same mechanic of a character from the game "league of legends" or Copying puzzles from another games. But changed assets etc. Is it illegal ?
Canovich's user avatar
1 vote
1 answer
66 views

Units in Unity?

I have read that in Unity 1 cube of size 1x1x1 and scale 1x1x1 is representing a cube in real life of 1mx1mx1m. Now, the only setting I find, where I can input anything related to Units is gravity, ...
the2second's user avatar
0 votes
0 answers
15 views

How do I change the motion reference in an animation state during runtime?

I tried this solution: https://discussions.unity.com/t/how-to-change-animation-clips-of-an-animator-state-at-runtime-is-there-a-way/183135/4 But this doesn't work if I try to use a different animation ...
jus coakley's user avatar
0 votes
0 answers
16 views

Vertex Shader Sphere Projection and CPU Distance Calculation

I have multiple planes whose vertices are transformed to a position on a sphere in the vertex shader. The GLSL function called pointToSphere transforms a point <...
Miguel Myers's user avatar
0 votes
0 answers
71 views

Separating Game code and Engine code

I've decided to take on a challenge of making 16 c++ games based on this challenge from FamTrinli, I'm using SDL + OpenGL. I've created a simple 2D game in the past, but I didn't like the code ...
koogel's user avatar
  • 79
0 votes
0 answers
34 views

How can I handle voxels that require extra data in my octree?

I am using octrees as an efficient way to store voxel data in a voxel game. The details of my octree implementation can be found here, but in a nutshell, each node is 16 bits, and the most significant ...
user16217248's user avatar
1 vote
1 answer
43 views

How to get Keyboard working with GameInput on PC in C++

I need some help here. I try this for a while now but it won't work and I can't find anything online. I want to write my own input handling. At first I used XInput for gamepads and Win32 callbacks for ...
Fragrantius's user avatar
0 votes
0 answers
27 views

Is there a way to make area affected by light completely white despite object color in Unity?

I have a 3D object that is affected with a directional light with a cookie texture (might be irrelevant). This object has a specific color lets say blue for the example. I would like the area affected ...
Ivan's user avatar
  • 307
0 votes
0 answers
12 views

Camera.main.WorldToScreenPoint does not return correct position

I have a cube in the center of my camera view, when I call Camera.main.WorldToScreenPoint(transform.position) I expect to get the same result as if I called ...
Majs's user avatar
  • 375

15 30 50 per page
1
2 3 4 5
1120