All Questions

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

How could I calculate the distance between the parent and neighbors node when there is a line of sight between two points?

I have completed my Astar algorithm in Python and now I need to convert it to a Theta star algorithm, I have built my line of sight algorithm below, but when I come to my Theta star algorithm I face ...
-3
votes
0answers
20 views

Any Suggestions for my project [on hold]

https://drive.google.com/drive/folders/10YmdNd--G8W9MabGN4yeSShs4P9JRwfI?usp=sharing Please if you have any suggestions please comment it down below.
-1
votes
0answers
24 views

I may be loading to many graphics assets at once - What modern ways are there to profile my GPU?

I have a 2D game I am making and I load all the assets at launch. At the moment I have 136 textures to load and some can get pretty large (over 320x160) some even to 2000x2000. I added some new ...
0
votes
1answer
18 views

Unity ads displaying only unity products

i just implemented unity ads on my project and now its only showing a single unity product each times. Can anyone suggest why? Thanks..
-1
votes
0answers
20 views

Could I run two functions inside OnTriggerEnter?

My weapon fire a gameobject "clone bullet" with a script attached on it. There is a part from the script doesn't work. That part is when this "clone bullet" hit object with "enemy" tag, check if this ...
0
votes
0answers
21 views

Spritesheet Usage

I am working on an RPG game and I am storing most of my textures in separate .png files, but for my sprites I would like to use a sprite sheet. How do you cut and store the sheet into individual ...
0
votes
0answers
3 views

MatterJS Trigger Mouse Input Programmatically Server- Side

So I want to create a simple multiplayer game using MatterJS. The game is basically you have a slingshot and a ball, you drag the ball and when you release the ball flies (like Angry Birds Basically)....
0
votes
1answer
62 views

What to do with collision detection?

I am able to get collision detection (CD) into my game but... what do I do with it? Do I push the player back to the last location? Something else? I am programming the game in C++ using the Irrlicht ...
0
votes
1answer
17 views

Additional Entity ID for networking instead of general EID?

http://t-machine.org/index.php/2015/06/09/entity-ids-how-big-using-uuids-or-not-why-etc/ I see this one article that proposes specific IDs just for the networking side of the game. If you are already ...
0
votes
0answers
45 views

Help with moving a character in Unity [on hold]

I am attempting to move my cube character with the arrow keys, however, all of the scripts I used would throw up an error. I have tried multiple file movement structures, and I have tried single files....
1
vote
1answer
31 views

How can I control ads frequency?

This question was already asked a while ago, and I wanted to check the present situation: Can I control ads frequency from the dashboard? (e.g. frequency capping in Admob) Can I control ads frequency ...
0
votes
0answers
14 views

Opengl Instancing and SceneGraph architecture

I am developing this game engine and using opengl instancing for rendeing some meshes. The problem is that i need a buffer of transforms (this means in continuous memory) but each transform is ...
0
votes
0answers
14 views

Cross platforms decoding

To advance those coding language and enhance the combination of gameplay device. Here are a file extension with ".d" Any compilers would I find for checking if it's able to run?
0
votes
0answers
14 views

Jittery / stuttering motion when using SDL2

I've been using C++ and SDL2, but can't seem to get smooth motion when I have objects moving in the window. I was originally using SDL_GetTicks() and SDL_Delay() in my game loop, but one of the posts ...
0
votes
0answers
19 views

Lag in updating UI

I have code that changes the color of an image when a touch screen on Windows 10 is touched. When the screen is touched I also have an external function that I call to toggle a GPIO pin on a board. My ...
0
votes
0answers
4 views

How do I scale a group in Phaser 3

In Phaser 2 we scale a simple by setting the scale property as explained in docs: https://phaser.io/examples/v2/groups/group-scale But there is no equivalent in Phaser v3. The possible url https:...
0
votes
2answers
33 views

Dragging a Rigidbody2D without passing through obstacles

I have this body of code written for an object that needs to be an obstacle and another object that is draggable. I have colliders on both and a kinematic rigidbody on the draggable object, but the ...
12
votes
3answers
4k views

Efficiently pathfinding many flocking enemies around obstacles

I'm working on trying to improve the pathfinding for my game's enemies. Right now, they basically just constantly move towards the player's exact position by calculating the angle between themselves ...
1
vote
2answers
41 views

How to update the value of all owners of shared_ptr?

I’m writing a render, there is a class that shaders should store, something like a shader manager. These shaders are stored as ...
0
votes
0answers
24 views

What´s wrong with my Frustum Culling implementation?

I´m struggling with a weird problem since hours. Ive implemented frustum culling with the help of online articles and a book. The problem is that the objects are not culled correctly. I´m using ...
0
votes
0answers
26 views

Unity: Make a moving rigidbody stop exactly at a given distance

I have an object that only moves along Z-axis, its rigidbody has a mass of 1 and a drag of 0.2. That object accelerates till MaxVelocity and then moves at that constant velocity in the Z-axis. When ...
0
votes
2answers
23 views

How can I install SharpDX for my project?

Unfortunately, as an experienced developer, I can not find the download link for SharpDX's binary files on SharpDX's download page here https://www.nuget.org/packages/SharpDX/4.2.0 I am very ...
0
votes
1answer
46 views

How to move player along navmesh link's curve?

NavMesh Link creates a navigable link between two locations that use NavMeshes. This link can be from point to point or it can span a gap, in which case the Agent uses the nearest location along ...
0
votes
2answers
31 views

Unity Component Hierarchy

I'm currently working on a 3D RPG game and I'm adding Interactions with objects. I have a lot of objects to interact with and I've placed them in an folder/empty object "Interactables". Now, I want ...
0
votes
0answers
11 views

Unity light baking out of memory

I have a problem where whenever I try to bake the light in my scene I get this error after a while: ...
0
votes
0answers
42 views

GetPixel() doesn't return properly the values

So I'm trying to use GetPixel() function to get which colors is the texture as a value of x and y. So far it works well but it only return 1 color, being unable to get the rest of the colors of the ...
0
votes
3answers
35 views

Center Perspective Camera on Coordinates

I've got a PerspectiveCamera and set of coordinates (x,y,z). How could I pan the camera to make these coordinates at the center of the screen?
0
votes
2answers
19 views

Accessing strings based on score

I have strings named like this: list_1 = {"a", "b", "c"}; list_2 = {"v", "t", "d"}; list_3 = {"e", "a", "b"}; .. list_100 = {"g", "q", "z"}; and I have a ...
0
votes
0answers
17 views

Keep my 3d player from jumping if he's not on the Ground [duplicate]

I'm making a 3d game, and I have only made games in 2D before, but i have used blender before too. My player can now walk and jump, but he is not limited to only jumping of the ground. In 2D, you ...
1
vote
1answer
33 views

Could use some help figuring out bouncy physics material in this PhotonEngine game

So I'm trying to prototype a primitive 1v1 fighting game where the goal is to push the opponent off of the platform rather than actually fight. This is working great in a local multiplayer setup using ...
0
votes
1answer
28 views

How to detect a pinch in Unity?

How do I detect a pinch motion on Unity for an android or Iphone? I need to also know whether the player pinches a certain character or not. How do i do that?
0
votes
1answer
29 views

App name containing spaces?

My new app is ready to publish but I have big dilema: will space characters in title hurt my game in search engines (google, google play, itunes)? There are two teams in the game called 'MAD' and 'MED'...
1
vote
2answers
50 views

How to store ever-expanding maps with top-bottom, left-right hierarchy?

I'm writing a game that will largely take place on only a screen-worth of hexagons, but which will require map to expand in every direction. Also the way I want to display those hexagons requires that ...
0
votes
0answers
20 views

NullReferenceException: Object Reference Not Set to an Instance of an Object (How is that so and I should I solve it?) [duplicate]

I am stuck several days because of this problem, which I am almost on the verge of giving up. (Using Unity Engine 2019.3a by the way). The TextButtonName.text can't read what TextButton is throwing to ...
6
votes
1answer
430 views

Unity: transform.LookAt(target) not “looking at” target?

I have been troubleshooting a prefab for several hours and am out of ideas. It concerns a method that I thought I was comfortable with, transform.LookAt(target). I have this prefab: As you can see, ...
0
votes
0answers
17 views

How to make game playable in all mobile screen resolution using Unity Cinemachine with perspective mode?

I want my 2D game to be playable (auto scale) in all screen resolution. I'm using Cinemachine & under "perspective" mode. I found tutorial to change the screen in "orthographic" mode but there is ...
0
votes
0answers
36 views

Stages of creating a computer 3D game on Unity [on hold]

I am writing a computer game, but I do not know what is missing, because I collect information in Youtube on unfinished courses by the authors. What stages of development I learned from the videos: ...
0
votes
0answers
17 views

How To Send a Friend Request Using Play fab?

I m making a multiplayer game. I create a playfab account and then add a titleid in playfablogin.cs and then run my script and then unity says: Congratulations, you made your first successful API ...
0
votes
1answer
27 views

Moving an object to random points Unity3d c#

So here is the problem I want to change the position of gameObject to specific points that I declared with empty objects randomly but the problem is the moment the object reaches one of the points it ...
0
votes
1answer
22 views

How do I keep UI texts in their relative positions at all screen resolutions?

I need to position several UI texts on the screen. I do this using a Canvas with Screen Space Overlay. Also, these UI texts need to stay at their relative positions at different screen sizes. Here ...
0
votes
0answers
9 views

Modelling/texturing workflow when the character's final look is in flux

I'm now currently modeling the protagonist for my game. I am currently uncertain how what the protagonist will wear, and even how the hair will look like, but I want to just continue on developing the ...
0
votes
0answers
11 views

Cross Platform Mobile Multiplayer Game Development [on hold]

I will develop a real time mobile multiplayer game specifically for iOS and Android together. I need to handle with multiple players in single game sessions (player matching, managing network ...
0
votes
1answer
23 views

Unity 2019 depth-only camera now overwrites everything

We have a pretty traditional camera stacking set up: UI camera on top of a everything-else camera. The UI camera is set to only clear depth, and only draws the UI layer. The everything-else camera ...
-1
votes
0answers
30 views

I need a good graphics library for C [on hold]

I am trying to develop games in C. I don't want anything super complex like a game engine. I just want something that will create a window, and I can display shapes or images (In the form of textures)....
0
votes
2answers
49 views

How to find all possible destinations, within a certain walking distance of a unit?

I have a standard 2D grid that i use for pathfinding. I already use A* to find the path of my units when I want to move them around. What I need to implement now is a preview of all possible ...
0
votes
0answers
3 views

Extract “alpha” layed from “.dds” DXT3/DXT5 texture file

Given: Examples are provided using python, but it's not matter. There is white_small.png, contains RGBA. And there is ...
0
votes
0answers
20 views

How to use CreateGridMesh in RuntimeMeshComponent

I don't know to pass on the 5th parameter. I'm still new with C++ so if someone could help me with the pointer ...
-4
votes
0answers
79 views

Is it safe to access array past bounds? [on hold]

In a game engine, there are numerous structs like typedef struct { uint32_t w; uint32_t h; uint32_t pixels[1]; } bitmap_t; which are allocated like ...
0
votes
1answer
44 views

How to encode a save game / game state as a string?

I'm building an HTML game. For this game I want to implement a save-feature that should work like in some already existing games: The user can chose export, this ...
0
votes
1answer
40 views

Multiplayer platformer

I'm considering building a multiplayer game having a central server handling the game and keep clients updated. I was checking various examples of ".io" games styles of implementation and seems pretty ...

15 30 50 per page