All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
9 views

Boolean is true in the blackboard, but stays false in the graph when playing

I'm having a problem with the boolean set to true on the Blackboard window, but it runs as false in the flow graph view. I have this script for a character model object. It works for the original ...
0
votes
0answers
29 views

Filtering and aliasing in a scene

I have 4 fisheye cameras and I project them after lens correction onto a 3D bowel mesh. I'm getting flickering or really like ants are moving in those areas of the scene (top view) of the cameras. I'...
0
votes
1answer
23 views

How can I correctly map a texture onto a sphere?

I'm trying to make a 3d model of the Earth (it doesn't have to be a fully-accurate geoid), but whenever I try with a map as a material's albedo to do so, it looks kind of weird and wonky. I assume ...
0
votes
2answers
51 views

Applying friction separately to forward and side directions

I'm making a movement-based, first-person 3D game where the player should be able to gain a lot of horizontal speed over time with WASD, but also will stop due to friction very quickly the moment they ...
0
votes
0answers
27 views

How do I show the user the right key for variable keyboards?

So, I have a lot of shortcuts in my game but for some keys, I don't know how to show the right mapping. Those are the keys labelled for example OEM1 and ...
4
votes
2answers
81 views

2D topdown generating stairs (access) to generated hill

I'm doing 2d topdown procedurally generated world. I'm generating perlin height values, and when certain value is crossed I'm generating one level higher, while edging biomes creates cliff of the ...
0
votes
0answers
43 views

How do I write a script for Unity that allows a gameobject to be scaled using pinch & zoom touch controls?

I need a script for Unity that allows a gameobject to be scaled using pinch & zoom touch controls. I have found lots of answers for scripts that cause the camera to zoom in/out but I want a ...
1
vote
0answers
34 views

How can I turn on/off lights automatic depending on the surrounding lights areas?

When the player enter this dark area I want the lights to turn on automatic and if the player is getting out this area to the desert area in the screenshot the light should be turn off automatic. This ...
4
votes
1answer
100 views

In OpenGL, why do people worry that the accuracy of the depth buffer gets worse the farther away?

I'm really new to graphics programming, so I'm learning about depth buffers with this article. I got that the conversion from View Space to NDC is non-linear, but I think we can avoid the problem by ...
-1
votes
1answer
43 views

Wait for time Unity C# when called to

I am currently programming a custom programming language and using Unity to run it. My current issue is that while loops freeze the game when their done. Is there a simple way to wait until end of ...
0
votes
1answer
24 views

How to queue a paid function to run in Unity after an IAP button purchase completes to fund it?

My app will feature tokens to fund some in app functions. If someone clicks a menu button to run a paid function and has insufficient tokens, they should be prompted with a new token purchase menu to ...
0
votes
0answers
28 views

How can I make the lights to start turning off faster?

The problem is not the duration it take to turn off the light but when the whole turning off action start. The first script is what make the lights turn off/on : ...
1
vote
0answers
11 views

How to control from which point radial image fill starts in Unity?

This is probably basic question but can I set the point from which fill starts. I know about down, up, left, right options but I want more control with start point, for example I want my fill to start ...
1
vote
1answer
42 views

Having trouble implementing edge collapse operation with half-edge data structure

I'm trying to make a half-edge data structure to interact with meshes in 2D space in Unity but I'm having trouble with implementing an edge collapse operation that merges one vertex into its twin half-...
0
votes
0answers
10 views

Camera with controls in Unity with C# [duplicate]

So I have been making a camera in Unity for my first-person game. Currently, I have gotten the camera to be able to look around, but the camera has two issues. The first, and more pressing, matter is ...
1
vote
1answer
69 views

Infinite Stairs Design

In Unity, I'm trying to create a puzzle in a 2D platformer game where the player has to face some infinite stairs. The player can move left, right and jump. The idea is that at some point the player ...
1
vote
1answer
64 views

How to play audio in Unity when a mobile game runs in the background or the screen is locked?

I am trying to make a 3D audio player with a retro cassette-like interface. The first thing is to make audio playable smartphone-wise, even when the game is in the background or when the screen is ...
0
votes
1answer
15 views

Can't get ThirdPersonController player to stick to a moving platform

I've followed 10+ tutorials on setting up basic C# code to allow a player gameObject to stick to a moving platform (even followed the code verbatim) and nothing works. I added some debug print ...
1
vote
0answers
19 views

Remove multiple packages before build proceeds

I'm trying to delay the build process in Unity when building locally. Before building I want to remove some packages via the Client.Remove method in a prebuild ...
0
votes
0answers
9 views

In Unity how do I translate a game object's position relative to the axes of its parent object? [duplicate]

Basically, I have the following issue in my game scenario. I have a player game object whose parent object is a player rig (the parent also contains a camera following the player). I want to be able ...
0
votes
0answers
37 views

Do gaming consoles come with built-in crash reporting system for the developers?

I'm working at a game industry and my company's planning on releasing some games for consoles (PS, Nintendo Switch). I'm wondering if we should integrate some kind of custom crash reporting system ...
1
vote
2answers
115 views

How would I actually implement A* pathfinding in a 3D world?

I have been trying to implement pathfinding in Minecraft for a while. Everything is in blocks, so this shouldn't be too difficult. I have gone through a lot of different posts and articles but I haven'...
0
votes
1answer
32 views

Is it possible to have multiple simultaneous tweens within a LeanTween sequence?

I'm trying to create a sequence that controls multiple animating objects (ObjectA and ObjectB). I want it to look like this... Step 1: ObjectA moves to center, while rotating. Step 2: ObjectB moves ...
0
votes
1answer
25 views

Internal representation of checkers board

I am creating a game of checkers using the but am struggling to find a good internal representation for the game. My initial thoughts were to store the game board in a 2d list, with 0=empty, 1=always ...
2
votes
0answers
29 views

How can I modify the TMP Text shader to add a Venetian blinds effect in Unity?

Is there a way to modify a TMP shader so it has Venetian Blinds effect (text appearing in like blinds pattern) like in Adobe after effects.I found a shader that does that the problem is how do I get ...
-2
votes
0answers
40 views

How to Shift Rows Down and Clear Them (Tetris C++)

I'm working on a version of Tetris in C++ for a university class. However, I'm having trouble with shifting rows down and clearing them once they're full. We're supposed to be using the structures ...
0
votes
0answers
23 views

How to create empty game object in canvas on unity?

Whenever I set up my main menu and put them in an empty gameobject inside the canvas so I can turn it off to switch menu It messes up the gui inside device simulators on several phones. In short it ...
0
votes
0answers
18 views

What is the most efficient way to keep a vertex contained within a network of edges/vertices?

Given this picture, I want to move or displace the red vertex but I don't want it to pass the orange edge boundaries or the blue vertices. I either want to stop the red vertex when it gets close ...
0
votes
0answers
20 views

How to make doors that only one player team can use?

I am creating a minigame in Minecraft Education Edtion. In this minigame there is a killer and survivors. So I set it so 1 person is a killer and the reset are survivors. In the game there are doors ...
0
votes
2answers
29 views

opengl two vbo names

I'm a newbie in OpenGL trying to learn VBO. I have two arrays (point0 with 3 points and point1 with 6 points). Suppose I have ...
0
votes
0answers
13 views

Does Animator.StartRecording(int frameCount) scale the framebuffer if not stopped by Animator.StopRecording()?

During testing, the Animator played the same animation, which generally goes for 2.30 fs of a second in real time. It contains 90 frames. I know I'm calling the ...
0
votes
1answer
16 views

What is Animator.Update(float deltaTime) doing?

It looks like it does the same thing as Time.timeScale, only for the Animator. But it works somehow specifically. You need to call each frame for it to work + you ...
0
votes
1answer
57 views

Make materials higher quality as the user gets closer

Scenario I have a sphere with an low-quality earth texture on it. I also have a much higher quality earth texture (Gigabytes in size) that I can use but it's too performance intensive to use on most ...
0
votes
0answers
43 views

How to balance coin system for Idle Runner?

I have a classic mobile runner with left/right swipe controls, where each level player can collect different amounts of coins. (For example on level 1 coin amount is 100, on level 5 amount is 70 and ...
1
vote
1answer
37 views

What's the relationship between the actor's pose and shape's pose in PhysX?

I have 2 Meshes and I want to add physics to them. The first is a primitive box, the second is a terrain. The box and terrain are made with DirectXMath Using the PhysX library, I made a copy of the ...
0
votes
1answer
45 views

confusion on desired velocity

In one of the videos of the dead earth game dev series , the author mentions of calculating a local desired velocity of a NavMeshAgent. My point of confusion was, ...
0
votes
1answer
39 views

How to handle octave & frequency in the Perlin noise algorithm?

I would like to implement a Perlin noise algorithm into my MonoGame project in order to procedurally generate 2D terrain. I've been using engines in the past (Godot, mostly) where there was an API to ...
0
votes
0answers
23 views

Unity - how Default Line material can be applied to line constructed using code, without using inpector to pass default material?

I have scene with camera, light source and empty object with an attached script. I generate red line but its material is never set. Ho can I set, in script, its material as Default-Line? Without this ...
1
vote
0answers
31 views

What Unity editor settings maximize the editor performance?

I am teaching a Unity game development course through Zoom, and apparently the load of both Zoom and Unity is straining my 3 years old laptop. I would like to change some settings in the Unity editor ...
1
vote
1answer
53 views

Minimax in a losing scenario vs an imperfect player

I'm working on a solver for Triple Triad, a simple two-player zero-sum card game. Right now, I'm using Negamax (a variant of the well-known Minimax algorithm) with alpha beta pruning, and the game is ...
0
votes
0answers
29 views

Very basic question: Passing data in fragment shader to next frame (Metal)

I am casually trying to learn a bit about writing simple fragment shaders, in particular using Metal API. I have been experimenting in KodeLife. As a simple example, I am trying to remake the Double ...
1
vote
0answers
21 views

Touch phase is moved when touch pressure changed

I am trying to scale my object by a finger touch just like in Jelly Shift game. It should scale up/down when I move my finger up and down and it should stop when the touch is in stationary phase. The ...
4
votes
3answers
207 views

Is there an "official" term for the "key-door problem"?

The "key-door problem" is a term I've come up with, after playing a number of Metroidvania or Zelda style indie games. One distinctive feature of these games, is that the player is free to ...
0
votes
0answers
29 views

A Godot tool script that adds a button the the inspector that opens a different scene

Here's what I need but can't quite figure out: I want a button on the Inspector of a particular node. When that button is clicked (during the editing, not when the game is running), I want to switch ...
2
votes
0answers
16 views

Tweak brightness of widget in UE4

I would like to make an interactable monitor in Unreal Engine 4.26. I am using the default material for widgets as you can see in the image below: The texture I would like to show is: When I drive ...
-2
votes
0answers
18 views

when I type "void On-Collision" in VS code it is not being completed like any other command. what should I do?

'Ninja.OnCollisionEnter2D(Collision2D)' must declare a body because it is not marked abstract, extern, or partial [Assembly-CSharp]
0
votes
2answers
35 views

How do I track 2 lights in real time with a camera and send it to a phone in Unity?

I am trying to track 2 lights and send that data to Unity for VR controller tracking. How do I get started? Do I make an app that communicates with Wifi or something? And how do I detect the lights? ...
-1
votes
3answers
36 views

Cannot drag GameObject into exposed field in the Inspector

I followed the Brackeys' How to make a health bar tutorial on YouTube, and it worked perfectly when playing around with the sliders myself. But, when I tried to drag the health bar object into the ...
0
votes
0answers
20 views

Unity game extecutable sometimes takes longer to launch, and Unity splash logo doesn't show

In the exported build of my game (which uses Unity 2020.3.15f2), I notice that sometimes the game's executable launches immediately, correctly fading in and out the built-in Unity logo on the splash ...
0
votes
0answers
28 views

How would I determine the size / camera bounds of a staggered isometric map?

I am currently making an isometric 2D game, and the map grid is of the staggered-isometric type. I want to attempt to create the camera so that it stops at the end of the map bounds. Now I am fully ...

15 30 50 per page