All Questions

0
votes
2answers
28 views

Foreach/list loop problem

i am having a problem with a foreach loop. When my AOE ability hits an enemy it creates a CircleCollider2D and puts all enemies on a list, which then the loop goes trough and adds damage to their ...
0
votes
1answer
8 views

Unity 2019 build for Oculus Go not appearing on device

My project was building fine in 2018 and showing up on my Go under "unknown sources". My project builds fine in 2019 and it says it gets installed but it no longer shows up under "unknown sources" or ...
0
votes
0answers
10 views

Solve Constraints with linear factor of 0 in Bullet Physics

In my code I need to set the linear factor for velocity to 0 (sometimes). For example, game->rigidBody->setLinearFactor(btVector3(0, 0, 0)); When this is done,...
0
votes
0answers
10 views

How to make good and likeable character designs in a video game [on hold]

i need help. A character's design is something that is difficult for me,especially in in video games. anybody got any advice? i want characters to be likeable and look good
0
votes
0answers
9 views

Spawning player at a certain point after a new scene was loaded

I have a Game Manager with a DontDestroyOnLoad function on it, before loading a scene I'm passing the variables needed to reset players position to a certain position. This is what my code looks like; ...
0
votes
0answers
17 views

c# hex grid screen

I am able to draw a single hex to the screen. I want to draw a whole screen of hexes. Here is my code so far. ...
9
votes
6answers
2k views

Why do games have consumables?

Thinking along the lines of this question, and the too awesome to use trope in general. Why do game designers want to include consumable items in their games? Mortal Kombat 11 got me thinking... ...
0
votes
0answers
8 views

Unity - adding camera contraint to prevent the player from seeing beyond the scene

Like the title says, I'm after some kind of constraint for the camera to prevent the player from seeing beyond the scene and seeing the Skybox. I came across the code to add a Mathf.Clamp, but I can't ...
0
votes
1answer
8 views

Unity - IsTouchingLayers problem

I'm experimenting with 2d physics, and the problem is this: The IsTouchingLayers function reveals that the object is touching a layer, but only if I use the...
0
votes
0answers
22 views

Eager or lazy loading synchronization

Imagine joining a room with 100 (moving) players and a lot of items and being assigned a random position in the room (read: agar.io). At the moment I'm eager loading the other players and items and ...
0
votes
1answer
18 views

Emotiv Epoc integration with Unity

I'm coding a small game on Unity to control with the Emotiv Epoc headset. However, as I'm new to Unity, I'm having some trouble setting everything up to connect the device with my game. I downloaded ...
-1
votes
0answers
17 views

Creating objects in one for loop and destroying them in another [on hold]

I need to dynamically create some objects in a for loop. After they've been created, I need to destroy some of these obects in a second ...
0
votes
0answers
17 views

Unity - character model not blinking

I'm a bit confused as to what's going on, but I've just noticed that my imported character model never blinks during his animations. I currently have 3 animations - an idle, walk and jump. Every ...
0
votes
0answers
12 views

Various unreproducible crashes caused by asset bundles

We recently released a game on iOS and Android, and a bunch of crash reports have started coming in on iOS through Crashlytics that appear to be due to problems with shaders in asset bundles and other ...
0
votes
0answers
7 views

btBvhTriangleMeshShape useQuantizedAabbCompression Crash

I use btBvhTriangleMeshShape for static world collision. Generally this works fine, but recently I have encountered situations where the construction of btBvhTriangleMeshShape would crash. In debug ...
0
votes
1answer
23 views

How to implement trail renderer like unity?

I wang to implement a trail renderer in my course about compute graphics using OpenGL. I google this question and search it in https://gamedev.stackexchange.com/ and find nothing except unity trail ...
2
votes
1answer
155 views

Workflow for authoring hitbox data for a 2D fighting/platformer game

I understand that collisions in fighting games are detected using hitboxes and hurtboxes associated with specific frames of the animation I am looking for techniques to author the data for these ...
1
vote
0answers
8 views

Zenject injection from an existing in scene prefab

guys I am trying to use Zenject to automatically inject a reference to a component on a game object that I have in the scene but can only seem to make the create new component on new object work. ...
0
votes
0answers
14 views

Cascaded shadow map proplems

I am implementing the cascaded shadow map technique with OpenGL and C++, I have some strange behaviors I think my issue with calculating the frustum orthographic matrices, corners and cascaded ends, I ...
0
votes
0answers
15 views

Keep player within screen bounds, top down shooter

I am using x and z axis to go left/right ; up/down respectively. The Camera is on the y-axis. I have the following code so far - private float playerWidth; private float playerDepth; ...
0
votes
0answers
26 views

How can I get rid off the imprecision of the model matrix when I using WGS84 as the coordinate system to render the earth?

The global coordinate of WGS84 is too big, a float is not accurate enough. The only two ways I can come up with are using dmat replace for mat or transferring the modelview matrix rather than the ...
0
votes
2answers
26 views

Add logic if Shift is pressed nothing to do if not speed=100 to my BP

I have followed tutorial on how to make 3rd person game but I cant figure out how to implement logic if Shift is pressed nothing to do and if its not set speed to be some value lets say 100
0
votes
2answers
22 views

How to detect whether a transform has rotated left or right

I have a game object in my scene, and I want to know how can I calculate whether this game object rotating to the right or to the left. For example : ...
0
votes
0answers
13 views

object reference not set to an instance of an object [duplicate]

hello i have a error "object reference not set to an instance of an object" when my ball collide with the spikes.its supose to remove one heart but it doesnt. health code: ...
1
vote
0answers
11 views

Issue with creating a view in a tilemap environment (SFML)

I'm experiencing a problem with my simple 2d tile map game. I have a character on screen that moves in all directions in a world made up of tiles/blocks. Basically I have created an array that with ...
0
votes
1answer
21 views

Why is my mesh outside its collision component grid?

I've created a blueprint (well, two of them, as a test since the first one wasn't working right) with an sphere component around a mesh, as in the picture: As you can see, the mesh is well placed ...
1
vote
2answers
83 views

Magic Number Difficulty Balancing

So I've been working on my game for roughly two years now and although it's significantly more balanced than it was a year ago, I still feel like it's too easy, or rather, doesn't really have any sort ...
0
votes
0answers
22 views

Smooth network movement lunge (UE4)

I am working on a melee in Unreal Engine 4 that lunges towards an enemy until it reaches it and applies damage. I have tried various approaches to get the movement looking smooth on the local client. ...
1
vote
1answer
48 views

Math needed to create a very simple 2D side view car game

I'm trying to create a 2D side view car game (something like Hill Climb Racing, but much more simpler), but I'm confused on the math and physics. Most of the tutorials I found were about making a top-...
1
vote
1answer
19 views

Pygame - Maze collisions problem

I am a beginner in Python and Pygame and I have a problem with my game in pygame. I have Maze class and Player class but I can't do proper collisions. I reached the moment where I have no idea why my ...
1
vote
2answers
68 views

Move rigidbody using WASD keys but rotate it based on camera/mouse movement

I am very new to unity and my scripts are based on some scripts found on the web. I want to make a first person view so the camera is attached to my rigidbodys head. Then i want to move my rigidbody ...
1
vote
0answers
22 views

MousePicking in LWJGL - How to do it?

I have been working on a mouse picker for a scene in 3d for a client, and been having issues implementing a proper mouse pick. His application does not use a camera, and I am trying to get the ray ...
0
votes
0answers
10 views

Unity rigidbody glitch throu corners [duplicate]

No matter how thick the wall is, the player will glitch through. I've tried changing the settings on the rigidbody but nothing have worked. The walls fits together almost perfectly. Why is this ...
0
votes
0answers
22 views

3d characters on 2d background game suggestions [on hold]

First off, I am wanting to get back into making games, I have made a few for personal use in gamemaker but never finished them as school always got in the way or they would get deleted when my ...
0
votes
0answers
15 views

How to use opengl3.3 with CUDA using OpenGL Interoperability

I want to render a mesh whose vertices and surfaces are populated and constantly updated inside the GPU. For simple rendering using opengl3.3 alone, I have brought out the data from the GPU to CPU ...
0
votes
1answer
13 views

Unity using raw mocap data without actually moving the character

I play around with animations and unitys raw motion capture data asset pack. My problem is as followed: I have an idle, walkforward and a runforward animation and play them based on the keyboard ...
0
votes
0answers
12 views

Bash script crashes when sourcing

I have been following a tutorial about setting up vulcan on macOS and have been having trouble. I think it might have something with the versions. I am using 1.1.101.0 and the tutorial uses 1.1.73.0 ...
2
votes
0answers
45 views

How can I implement slow motion for one player in multiplayer?

Special attacks in Mortal Kombat Mobile require slow motion i.e. delay in game play. On multiplayer mode, when the opponent uses special attacks, I don't observe any lag/delay. When I use special ...
0
votes
1answer
16 views

Unity - rotating character for 2.5D platformer

I'm currently making a prototype for a college project in Unity. The game is a 2.5D platformer, though I've incorporated a script for the camera from a 2D platformer so the camera moves ahead of the ...
0
votes
0answers
18 views

Generate spritesheets on the server or in the client browser?

I want to make a browser game (using HTML5-canvas) where the user can create their own character with different clothing and stuff. I want to use something like the Universal LPC Sprite Sheet set. ...
-1
votes
1answer
41 views

How to make a desktop application for a unity game? [on hold]

I searched through Google but couldn't find am answer for this question. I made a shooting game in unity,and now I want to make an application for it on my desktop.
0
votes
3answers
50 views
0
votes
1answer
21 views

Directx9 - Generate mesh from vertex and index buffer

I've got a single vertex buffer and an index buffer for a cube in Directx9. I now want to generate a LPD3DXMESH object from them, so that I can manage mouse picking and other stuff with the cube ...
0
votes
0answers
4 views

“Sheen” on character model in Play mode [duplicate]

I’ve noticed there’s a ‘sheen’-like look to my character model when viewed in the Game tab, Play mode, and in the final build. In the Scene Editor, it’s fine. I’ve tried playing with the light and ...
1
vote
1answer
55 views

Need instructions for my AI racing car game

I'm having a school project to create an 2D AI racing car game, but nobody know where is the destination, and the map is randomly generated. But to avoid the dead end, we must teach the car not to ...
0
votes
1answer
23 views

Understanding the “gradient” in Perlin Noise

If I didn't get it wrong from the wikipedia, the word "gradient" should represents either the derivative for continuous functions, or the differential for discrete functions. To rebuild the original ...
0
votes
1answer
20 views

How to properly handle sending arrow-key movement data to a authoritative server?

I've made a little C# server which receives UDP packets and shows me the incoming information. I want to make an authoritative server in C# which simulates character movement and interaction in a 2D ...
0
votes
1answer
22 views

Javascript Jumping Physics

I have asked questions for this project before, but the jumping physics are a bit messed up. I cannot jump unless I hold down the W key, and then it just teleports me upwards. Does anybody know how to ...
1
vote
0answers
19 views

Unity5 mixing animations with different properties

Maybe there are tons of questions about this but i dont know what to look for. I have 2 animations, one is aiming a weapon and the other one is shooting. When i aim the weapon i animate only its ...
0
votes
0answers
8 views

Player controller (Concurrent FSMs + Animation Graph) question

I'm building a little Player Controller for my new 2D game. I have all the basic things setup and now I would like to get into player state management and anim sincronization. My player will be able ...

15 30 50 per page