All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
64 views

How to write a shader that only uses a bump map without a normal map

So I understand that for best results one uses a height (or bump) map and a normal map together. And I also understand that one can calculate a normal map from a height map using some sobel operator. ...
0
votes
0answers
13 views

Unity animation editor's object rotation is doing weird

When using the Unity timeline to create an animation or by using the animator itself, I am unable to properly rotate an object. Whenever I do rotate it, it will usually go something as follows: From 0 ...
0
votes
0answers
16 views

Is there a way to know if an ID3D12Resource is committed or placed?

I'm trying to find out if a ID3D12Resource was created with CreateCommittedResource or ...
0
votes
0answers
21 views

Unity Tilemap collider stopping player's movement [duplicate]

I am using tilemap collider to create collision between my world tilemap and the player, but sometimes when the player runs on the tilemap, it stops the player's movement and kind of makes it look ...
1
vote
0answers
10 views

Skinning, Bones, IK of character lost after Unity restart. Reproduceable

After i properly rig my character for skeletal animation with IK and everything works as expected but I quit my editor and restart, all bones are gone, IK does not correspond to the limbs and nothing ...
0
votes
1answer
89 views

How do I make the player gun stop firing when sprinting

I am trying to get the players gun to fire when the player is walking and the stop firing when the player starts to sprint. The gun will work just fine and ire when the player is walking, but it will ...
0
votes
1answer
15 views

3D title Rendering in Maya For babylon Js Game Engine

I created a 3D title in Maya and applied color through lambert and rendering with mental ray. Problem is when the coder is rendered in the game engine, it is looking very sad. The colors are faded ...
-1
votes
0answers
59 views

Grand Theft Auto Multiverse [closed]

Punch kick punch punch. How can GTA fighting with other users be more like Tekken Force with a full range of fighting moves list winner takes the others stuff? Even farther how can a Battle Royal be ...
0
votes
0answers
11 views

Unreal: Where should I place a DLL so it will copied when packaged or zipped?

I'm currently using the FPaths::ProjectPluginsDir() directory to store a custom DLL for Unreal. However, when I build or zip the project, I need to manually create ...
0
votes
1answer
29 views

Character blocking when walking on cube edges

I have my character walking on a ground made of cube. (scale 1,1,1). There is no space between them. Also, I have a RigidBody with 15 drag and I'm moving with <...
1
vote
0answers
17 views

Unity calculate the size of a text box before text gets drawn so it can lerp to the next size

Im trying to make a dialog box image that lerps to the next size. In order to do that I need to calculate the size of the image before the text gets drawn. My idea is to use the legacy GUI stuff ...
0
votes
0answers
20 views

How do I draw a world rectangle as a GUI

I am showing a green pane in world space: I would now like to draw this rectangle as a GUI (world space) element in front of all other things instead. The GUI rectangle should appear in gameplay, ...
0
votes
1answer
62 views

When I exit the pause menu of my game the gun fires

When The player exits the pause menu in my game the gun will fire. I figured out that it happens when the player clicks when the game is paused. Basically i the player goes to the pause menu and ...
0
votes
0answers
19 views

How does the stateTimer parameter is initialized in this method getKeyFrame(stateTimer)?

I have been following the tutorial https://www.youtube.com/watch?v=1fJrhgc0RRw&list=PLZm85UZQLd2SXQzsF-a0-pPF6IWDDdrXt&index=11 I an not able to understand what is stateTimer in getframe ...
1
vote
1answer
84 views

Round to the nearest multiple of 0.75 in C#

How can I round a number to the nearest multiple of 0.75 in C# / Unity? The context is that I have a block and I want its position to be rounded at the nearest 0.75 multiple. For example: 0, 0.75, 1....
0
votes
0answers
42 views

Shader code not working

While compiling the following code. I get a error ...
-1
votes
1answer
18 views

unity android sdk error

i am using unity 18.x. i downloaded the android sdk itself and the android studio also but they are not working,unity is not detecting the android sdk. if anyone succceed in exporting the apk ...
1
vote
1answer
44 views

How to add noise into a texture?

I'm working on a Heat Map generated from Perlin Noise. So far I've got 2 different outputs. Let's go step by step: The result should be something like this: This is the Perlin Noise I've got, easy ...
1
vote
0answers
21 views

MonoGame: Music does not stop playing upon exit of game

I use MediaPlayer to play the background music. Sometimes, the music does not stop playing when I exit the game. This is even though I use the following code: ...
0
votes
1answer
31 views

Collision detection and solution causes teleportation on corners

I am making my own game engine on Python and I got stuck with collision between objects. ...
0
votes
0answers
30 views

How do I make a Doom (1993) clone? [closed]

I couldn't find a clear explanation on other forums, just googling the question did not help at all. I have found a tutorial explaining the mathematics behind the engine though But where can I find ...
0
votes
0answers
15 views

How to know if a game concept is “different enough”? [duplicate]

For the past year or so, I've been designing a top-down zombie shooter game. However, after playing a 2d top-down battle royale game, it's given me inspiration to build a similar game. The graphics ...
0
votes
2answers
54 views

How to handle grid snapping when the object is greater than the grid cell width and height?

I want to be able to move objects on a grid always by what the grid cell size is, and objects bigger than the grid size should not overlap. The cube in this GIF below is snapping how I want (1 x 1). ...
0
votes
0answers
20 views

P5.js for 2d games… Performance [closed]

Last weekend I tried to make a simple 2d game for Web. I don't have to much experience with Javascript, but I know the little basics about 2d game development. I started by using PIXI.js, but I would ...
1
vote
1answer
43 views

Loading a heavy scene behind some loading screen in unity

Is there a way to load a heavy built scene behind a loading screen in unity to not make the game look like stuck loading the scene rather show the player some loading bar that would help the player ...
0
votes
1answer
72 views

How can I snap player-constructed objects in a 3d world together?

I m trying to build minecraft type of game with more complex builds like that of fortnite, so I wanted to start with the best practices i have to follow to create those builds. the blocks in ...
1
vote
1answer
28 views

Debug.Assert Behavior in Unity

Is this normal behaviour that Unity continues to run after a condition in a Debug.Assert statement was NOT met when I launch the game within the Editor? I can see ...
0
votes
1answer
32 views

Making 2 Player UI

For practice, I'm trying to remake the character select screen from Street Fighter II. I managed get it working with a Grid Layout Group, ScriptableObjects, and some scripts to have the 1P cursor ...
0
votes
0answers
32 views

My FollowPlayer script doesn't follow the player anymore

With the script I'm using, it would make whatever model it was attached to, follow the player when they were close enough. Even though I have NOT updated to the newer version of Unity, the script isn'...
0
votes
1answer
19 views

Method call order & instantiated component instances

I want to call things in a specific order. I'm trying to lay the foundation for my online game. Each player will have its own game object ("avatar"), which is instantiated at runtime. Each of these ...
0
votes
1answer
24 views

OverlapBox() dimensions are huge but are fine when tested in isolation

To be completely transparent, I more-or-less copied this question from the Unity forums since I did not get a reply. I'm creating this system where I'm placing level chunks together and I need to ...
0
votes
0answers
10 views

How can i show interstitial admob by click button moving to the next scene in Unity?

How can i show the interstitial ad admob in the action of click button to move in to the next scene, I'm already trying something which one you will see in bellow. *first method i'm creating a ...
0
votes
0answers
14 views

Why is my TouchScript gesture event not firing?

I am using TouchScript (v9.0) with Unity (2018.2.14f1) and am struggling with getting the Flicked gesture event to fire. I created an empty game object with a few ...
0
votes
0answers
8 views

Player walking on bent mesh

I have a top down camera view of my player character. I want my character to walk as on flat surface, but also handle bent surfaces with more polygons. My problem is if I have a bent surface mesh set ...
1
vote
1answer
30 views

Nonsense change of floor and enemies materials (when restarting scene)

I have a game where: player (green cube) enemies (red cubes) floor (blue plane) Image before losing (player colliding with enemy): Image after restarting game: GameOver Code (Player.cs): ...
0
votes
0answers
12 views

Correcting different dash distances depending on frame rate when using deltaTime

I'm trying to make a character do a short hop or dash. The player doesn't have control of the character for the duration of the dash, which is supposed to be about .4 seconds. I tried several ways of ...
1
vote
1answer
37 views

How to fix double click problem in this code?

Please see the gif below to better understand what's going on. On first click they all work normally but after first click I have to double click them to select them. I'm not a advanced developer so ...
0
votes
1answer
36 views

Error Handling in Unity

I try to understand what's the best way to handle error conditions in Unity. In a lot of places I've read that throwing exceptions is a bad thing. Unfortunately, I have not found any guidance on Unity ...
0
votes
1answer
19 views

Unexpected velocity changes in unity

I have a character that moves with a rigidbody. When I jump, it looks fine, but sometimes, my character boosts up while in the air and shoots out of the map very quickly. I checked, and when it ...
0
votes
1answer
15 views

Instantiate player prefab using player data

When my scene loads, I want to add my prefab to it along with its components. Here is what I mean: scene loads player gender is determined via playerprefs or playfab sdk player prefab is loaded and ...
0
votes
0answers
23 views

Unity 2D game object moving up in curve?

How can I make a rigidbody2d game object moving up curve like the attached screenshot?
1
vote
2answers
59 views

Unity 2D: Smooth ease-out movement on grid

I'm trying to create a grid movement in Unity, as where the player will ease-out on a tile when stopping, but I can't seem to get it right. I need a little nudge in the right direction for how to ...
0
votes
1answer
29 views

LibGDX FileHandle does not delete file

I'm using this line of code to delete a file: if(Gdx.files.local("/files/ids.json").exists()) { Gdx.files.local("/files/ids.json").delete(); } The same code ...
0
votes
1answer
37 views

Unity: Move Collider up stairs/ramps

The bots have a simple Capsule collider which cannot tilt. Movement is applied across the horizontal axes, gravity is enabled on the rigidbody. It moves up stairs okay with steps roughly 0.2 units ...
0
votes
1answer
66 views

Is it really more efficient to have a local variable for transform here or is Rider being over-zealous?

I'm just going through a quick C# / Unity crash course (coming from Java) and I recieved a warning about "Repeated property access of a built-in component is inefficient" while working in Jetbrains ...
0
votes
0answers
22 views

Snake Python 2nd player wont move

I'm trying to code a two player snake game, a the moment the first snake works perfectly but, my second snake won't budge. I used the same layout code for the 1st and 2nd snake but only the first ...
0
votes
1answer
45 views

How should I structure the layout and saving system of my game concept?

I am a huge fan of Minecraft and (to an extent) Terraria. I’ve always wanted to make my own version of that type of Creative sandbox game, and recently I’ve been thinking of so many things I could add ...
0
votes
1answer
39 views

How do I make a GameObject carry across only 2 specific scenes?

I have a GameObject in my main menu and help scenes that I want to carry across both scenes but be destroyed on all other scenes. I am having multiple issues with it such as it wont destroy on other ...
0
votes
1answer
17 views

How can I apply UV mapping in parent space?

I'm trying to apply UV mapping in parent space - ie. taking into account the object's own transformation matrix but no matrices further up the transformation hierarchy. For example, I'd want to be ...
0
votes
1answer
39 views

Selling Android game with using Google Play Games

I'm making an Android Game that using Google Play Games for authentication, and storing user data to cloud. Originally I planned this game as free, and put some in-app-purchasement stuffs in it, but ...

15 30 50 per page