Newest Questions
57,678 questions
-1
votes
1
answer
347
views
GameMaker Studio 2 random isnt random [duplicate]
I'm making a game where things randomly generate. It used to work, but now all the sudden they keep spawning in the same area every time. does anybody know a fix?
0
votes
2
answers
75
views
Unity collision help
So my problem is this:
I have a block, which is used as a "pointer block" to show where a block will be spawned. It will be green if it isn't colliding anyone, meaning you can spawn a block. It gets ...
0
votes
1
answer
368
views
Reading a text file and changing each digit into a value inside an array c#
I'm having a bit of an ordeal with the StreamReader.
I'm working on a game where you build the map with a 2D array by imputing different numbers so the array like this:
...
0
votes
1
answer
123
views
Restore object right vector to horizontal position using quaternions
I'm fairly new in gamedev mathematics and i have a problem i cannot solve on my own.
I'm working on L-System tree generation engine and i'm having serious difficulities while trying to work out ...
4
votes
0
answers
181
views
Understanding unknown mesh data structure
I have a large number of old mesh files in a custom, undocumented binary format. I have managed to parse almost everything but am left with one group of structures, described below, that I don't ...
0
votes
1
answer
980
views
How can I render attack ranges as in this screenshot?
Divinity: Original Sin 2 has an amazing range-of-attack display. When I select a character's abilities, the range of the ability will appear (as shown in the screenshot below).
I'd like to know how ...
-1
votes
1
answer
410
views
How to limit where an object spawns GameMaker Studio 2
When the game starts, I am trying to generate an object in a random area. It's working, but sometimes the object spawns in the players view.
How to have an object that generates in a random location, ...
0
votes
1
answer
720
views
Libgdx stop animation at last animated frame
How i can stop animation at last frame.
...
1
vote
2
answers
622
views
What is moving the camera useful for, if I have to do culling myself?
I'm new to libgdx and especially to using OrthographicCameras. I'm trying to understand how useful they are.
The question is, suppose I have a game map 500 units wide. I have an OrtographicCamera ...
4
votes
1
answer
210
views
How to make the winner emerge as late as possible in a quiz game?
I have a quiz game with my 4 friends. We've had 3 seasons so far. One season consists of 5 games (every player organizes one). Each game must have a total of 20 points that a player can earn. There ...
4
votes
2
answers
1k
views
How to calculate Camera "correct" position and distance to Frame all my Scene?
Consider I have N dynamic points on my Scene, I would like to "frame" all them, with my Camera.
How can i calculate (at runtime) Vector3 Position to correctly frame all my scene ?
This is my idea:
...
0
votes
1
answer
697
views
Manually creating an instance of object derived from MonoBehaviour
I'm currently "newing" an instance of a class I have that derives from MonoBehaviour and store it in a list. The value of this instance is "null" however, even though it has all the fields of my ...
0
votes
2
answers
8k
views
Diagonal movement is faster than horizontal or vertical movement. How to fix?
When using Horizontal or Vertical input keys, the the movement is normal. But when trying to move diagonal, multiple keys are to be pressed, and the speed just stacks up.
Yes there are many answers ...
1
vote
1
answer
372
views
When drawing transparent object in OpenGL it cuts some sides of other object?
I am making some OpenGL program, and I have a lost of cubes next to each other like this:
When I am making this hole, I am just skipping those cubes, just don't draw them.
...
1
vote
0
answers
39
views
Rendering a scene or prefab in a gallery style view in Unity3D?
I'm working on a project that is a bit like YouTube where someone browses some content, clicks on one and sees it in the youtube player while still seeing the rest of the content.
In my case the ...