MAnd
  • Member for 6 years, 2 months
  • Last seen more than 1 year ago
  • USA
2 answers
2 votes
23k views
How can I detect that the mouse is over a button so that I can display some UI text?
Accepted answer
2 votes

For example, for detecting clicks, I'm using onClick event trigger, but I can't find anything related to something like a onHover event Due to that piece of your question, I assume that what you want ...

View answer
4 answers
7 votes
19k views
Intersection of a Line and a Rectangle
Accepted answer
6 votes

As you will easily find out, the most straight-forward solution is to run multiple times an algorithm that checks whether there is an intersection between the segment formed by Point1 and Point2 (let'...

View answer
2 answers
-1 votes
101 views
Center of Image whose height, width and position are known
Accepted answer
3 votes

If the (X,Y) is at the top-left corner of the rectangle as you have drawn in the picture in your question, then the center is simply: (X + W*0.5 , Y - H*0.5 ) Note that it is always a good practice ...

View answer
4 answers
1 votes
5k views
A* pathfinding takes too long, shortcuts needed
Accepted answer
4 votes

As you yourself have stated, you still didn't have resorted yet to optimizations. So yes, there are many ways to speed that up. But since you were talking in general terms, I will stick with what I ...

View answer
2 answers
9 votes
4k views
How to determine lowest PC requirenments for my game to run
4 votes

First thing: as @ZEKE has suggested in the comments to your question, you should check: How do I determine my games minimum hardware/software requirements? Also, in the end of the day, only ...

View answer
2 answers
0 votes
152 views
Efficiently calculating best nearest sphere from a point in 3D space
Accepted answer
0 votes

You said that the value you describe falls off in a gradient from the center of the sphere. So I suppose it achieves its minimum (e.g. zero) when reaches the sphere boundaries. In that case, there is ...

View answer
1 answers
0 votes
505 views
Normal to an edge of a polygon, from a point inside the polygon
Accepted answer
0 votes

I construct a polygon with n sides. I have a point P(x,y) that is inside the polygon. I want to draw normal from Point P to edge/edges of polygon For each edge: 1) finding a normal for a line-...

View answer
1 answers
6 votes
2k views
What is best method for 2D pathfinding in procedural world?
Accepted answer
8 votes

As you shall see, the spirit of this answer is that, in game programming, there is rarely a dead-on answer like A is always better than B. But let's dive a bit more into the details. So my main ...

View answer
3 answers
-1 votes
101 views
C# temporary variable error
2 votes

The problem is that x, y and z are components of "transform.position", and you are not allowed to make changes to single components of properties. In other words, you can not directly assign a value ...

View answer
2 answers
-2 votes
326 views
How do I properly combine the colors of different lights?
Accepted answer
3 votes

Your question makes it clear what you don't want, i.e. a combination of a color like (0.1,0.1,0.1) with itself to result in pure addition, giving (0.2,0.2,0.2), when you would expect it to result to ...

View answer
2 answers
0 votes
131 views
How can i call a thing a lot of times (game: dodger)
Accepted answer
0 votes

How can i make the object spawn til i say stop and spawn at difrent times You have two different questions there. One is how you can make the object spawn until you say it to stop. The other is how ...

View answer
2 answers
1 votes
3k views
Will using similar/exact name to a current Marvel superhero name for your game be a problem?
2 votes

Usual disclaimer: I am not a lawyer and in this site questions about these issues have to be always taken as ideas, thoughts or experiences, never as technical advice. That said, first of all, ...

View answer
2 answers
1 votes
1k views
Detecting Left and Right Mouse clicks on UI Text objects that are dynamically created
Accepted answer
1 votes

I suppose that when you create the UI Text objects, you are adding to them a RectTransform component, just like I answered you here: How to dynamically create an UI text Object in Unity 5?. Knowing ...

View answer
3 answers
5 votes
247 views
Find Minion with shortest path
0 votes

I don't known if you've solved the issue since the question was posted, but how do you expect to know which is the carrier that is closer to the building at a given time, if you don't know their ...

View answer
3 answers
8 votes
26k views
How to dynamically create an UI text Object in Unity 5?
Accepted answer
9 votes

I think what you are looking for is something like following: GameObject CreateText(Transform canvas_transform, float x, float y, string text_to_print, int font_size, Color text_color) { ...

View answer
3 answers
2 votes
2k views
Using Unreal Engine 4 to model Earth
Accepted answer
3 votes

UE4 does not have exactly an inherent limit to what you can simulate at the engine. Nothing like a map size limit or something. However, besides the obvious memory and CPU hardware-limitations that a ...

View answer
1 answers
2 votes
387 views
Simplyfing/dissolving octree to simple boxes by adjacent octants with similar traits
Accepted answer
1 votes

If what you mean is that you need a nav-volume with fewer nodes because the oct-tree ends up leaving you with too many nodes, the main issue behind you problem is, of course, symmetry. Or better said,...

View answer
2 answers
0 votes
3k views
In Unity3D, how do I move the camera with the mouse without spinning it on its axis when looking down/up?
0 votes

EDIT: this answer was addressing the problem as originally formulated by the OP, i.e. "how to make sure the camera doesn't spin around its axis when looking downwards or upwards". For that, the answer ...

View answer
2 answers
3 votes
4k views
How can I randomly spawn circles on a screen but make sure they don't overlap?
3 votes

You did not specify whether you will have many circles or just a few. However, by the measures you mentioned I assumed it's just a few (by the way, if the measures you are thinking of are correct, ...

View answer
2 answers
20 votes
3k views
Faking a 3D object to decrease number of polygons
Accepted answer
26 votes

If I understand correctly what you want to achieve, you are looking for the concept of "imposters". These are precisely 2D representations of 3D objects, used to decrease the geometric complexity of ...

View answer
4 answers
5 votes
196 views
Dealing with collisions across adjacent static bodies
Accepted answer
2 votes

If I understand the problem correctly, you were close to properly solving it. Your approach with the normals is what you want, but instead of only saving the normal of the last collision, save a list ...

View answer
2 answers
8 votes
11k views
When do I copyright a game?
10 votes

Usual disclaimer: I am not a lawyer and in this site questions about these issues have to be always taken as ideas, thoughts or experiences, never as technical advice. That said, in the US you hardly ...

View answer
1 answers
2 votes
13k views
Is flowchart correct way to visualize gameplay?
Accepted answer
5 votes

Flowcharts and diagrams are very often used to represent game mechanics or game-play. I would dare to say that most visual assessment of game mechanics are indeed based on some given type of flowchart ...

View answer
1 answers
7 votes
551 views
Cossacks game pathfinding
8 votes

I don't know which technique was specifically used in Cossacks, but I guess you are also interested in the problem at hand in general terms. In fact, nowadays, there are ways trough which such result ...

View answer
4 answers
1 votes
2k views
I want to make a racing game.Can I have licensed cars without paying for licenses?
5 votes

Usual disclaimer: I am not a lawyer and in this site questions about these issues have to be always taken as ideas, thoughts or experiences, never as technical advice. That said, yes, if you or ...

View answer
4 answers
11 votes
8k views
Is it legal to use other game's title word in my game's name?
Accepted answer
15 votes

Usual disclaimer: I am not a lawyer and in this site questions about these issues have to be always taken as ideas, thoughts or experiences, never as technical advice. That said, it's good that in ...

View answer
2 answers
3 votes
516 views
Questions on the legal protection of games and their parts (assets, sounds, title)
4 votes

First of all, I am not a lawyer and in this site questions about these issues have to be always taken as ideas, thoughts or experiences, never as technical advice. Second, I see you are not from US ...

View answer
1 answers
0 votes
121 views
Is It Better To Generate A Pre-Generated Map or A Randomly Generated Map When Using Tile Properties?
Accepted answer
0 votes

I think your question is not very clear and actually brings many mini-questions in one (what you should avoid doing in this website). That said, I will address very briefly some points: is it even ...

View answer
1 answers
9 votes
314 views
2D Physics: storing previous position vs storing velocity
Accepted answer
1 votes

Without knowing exactly the tutorials or books you have read, here is what I can tell you. To be more precise in terms of physics definition: the vector direction is calculated as the difference ...

View answer
2 answers
2 votes
405 views
About tiles in games
Accepted answer
4 votes

Per your question, I understand you are not asking for detailed implementation code, since that would be asking for too much more than one single question can offer. So, I understand you are actually ...

View answer