Questions tagged [selection]
Selection methods, eg. in RTS games
35 questions
2
votes
1
answer
123
views
How would I implement the edge loop function from Blender (and how does it work)?
I'm a fairly new game developer, and I've been working on a custom mesh editing system. I've been able to implement edge bevelling (almost, stuck on a division by zero problem), Catmull-Clark ...
3
votes
1
answer
595
views
Handling complex selection mechanics in RTS-style game
When we look at complex RTSs where a simple left button mouse click can mean twenty or more different things, depending on the game and UI state, the code handling this interaction and assigning the ...
0
votes
1
answer
794
views
Unity3D multiple objects user rectangle selection
I wish to allow the user to select multiple units by click and drag as most RTS do. The issue I have is that the tutorials are either in 2D or only use the ...
0
votes
1
answer
264
views
Unity RTS Single Selection Problem
I am trying to build an RTS game and I have managed to form a way to select a unit using Raycast and the tag system. I made it so that if the object the ray falls onto is of tag "TankUnit" Make so and ...
2
votes
1
answer
856
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 ...
-1
votes
1
answer
252
views
Having trouble making more than 1 clickable object
I am a student trying to figure out how to make multiple clickable objects in pygame.
I was able to make 1 working clickable object (dx,dy) work, but when I tried to make another clickable object (qx,...
1
vote
1
answer
327
views
Handling mouse input depending on selected unit and clicked tile
I am making a turn-based tactical game (think something like X-Com) and I am currently trying to figure out how to handle mouse input in a clean way without a mess of if-statements.
I have a lot of ...
-1
votes
1
answer
60
views
Using Gimp and clone tool. Source selection selects center of four pixels
I am using gimp to make tilesets. When I use the clone tool and hold ctrl to select the source, the selection is in the center of four pixels instead of just one pixel. I don't know if I am doing ...
1
vote
1
answer
185
views
In PhaserJS, how do I get a clicked Physics.P2 body's data?
I have a sprite with Phaser.Physics.P2 enabled, using a custom shape loaded with loadPolygon() from a ...
0
votes
1
answer
3k
views
How to handle focus on a custom actor in Unreal Engine?
I created a custom actor, placed it on my scene and selected it.
When I press "F" to focus on it, the camera zoom back very far from the scene, probably because I didn't implement the method supposed ...
4
votes
1
answer
175
views
Selecting the closest point in perspective view mode
I'm trying to improve my algorithm for selecting points in perspective view mode (OpenGL/Qt/C++). The current implementation works as follows.
The user clicks on a certain ...
0
votes
2
answers
226
views
Implementing grid based selection box
What is a good way of implementing a RTS selection box for tiles on a grid? I'm making a game with some similarities to Evil Genius, the building in particular. In that game you click one place, drag ...
12
votes
3
answers
1k
views
How to hide a post-processed mesh outline when/where the mesh is hidden
I'm working on setting up an active outline in my 3d engine, a highlight effect for selected 3d characters or scenery in the screen. After working with the stencil buffer and getting some ...
2
votes
1
answer
136
views
how to accurately select a sprite on a scene with a click?
I have a scene with some sprite on it (added), the gamer has to select one of them and take the next action.
What is the simplest way to select one of the sprites accurately?
I am looking for a ...
2
votes
2
answers
15k
views
How do I trigger OnSelect() via the ISelectHandler in my class?
I'm trying to figure out how I can make a custom UI element identify when it has been selected or deselected. Classes such as Selectable inherit from the ...