Skip to main content

Questions tagged [mouse]

A very common input device in computer games. It offers a more direct form of movement compared to directional input.

1 vote
0 answers
207 views

I want to implement a panning system, and people said to me that the cursor should be locked in place during the panning. However in Unity all I could find is setting the ...
Tudvari's user avatar
  • 801
1 vote
1 answer
67 views

I am currently implementing a map editor for a 2D platformer and run into trouble with my viewport and mouse movement. I have two viewports: one main viewport in the top 2/3 of the screen which has a ...
Canox's user avatar
  • 113
0 votes
1 answer
203 views

I have a grid of Area3D objects, and when nothing is around them, they handle the mouse_entered signal exactly as I would expect. The only issue is that I also use Area3D's on other game objects, like ...
Fred Etingen's user avatar
0 votes
2 answers
93 views

I am trying to get the camera to rotate towards a location and position. Which works at the moment, but once it is done and re enables the mouse look script or bool in the script the mouse look ...
WestMansionHero's user avatar
0 votes
1 answer
443 views

I am working on a 2D isometric perspective game using SDL2 and I would like to implement the ability to pan the map when the right mouse button is held down. I was wondering what is best way to set ...
lancen's user avatar
  • 33
0 votes
2 answers
323 views

I know we're able to scroll a background image hardcoded or using awsd keys(or arrows) if they're pressed. But what about scrolling it with mouse movement? So I have a piece of panoramic image as a ...
Intice's user avatar
  • 31
1 vote
1 answer
2k views

I want to position a 3D object at my mouse cursor. How can I do that in Godot? In Unity, I'd use Camera.ScreenToWorldPoint.
idbrii's user avatar
  • 1,088
0 votes
1 answer
352 views

i am learning how to make a 2d game using sdl and c++ and am currently trying to rotate the sprite so that is always facing the cursor, my game is set up with an entity component system, i have a ...
user21746705's user avatar
2 votes
2 answers
6k views

This question refers to the use of enhanced input in Unreal Engine 5. Whenever I say "modifier", I refer to modifier keys such as Shift, Alt, and Ctrl (rather than the Input Modifers such as ...
Simon Fischer's user avatar
0 votes
1 answer
318 views

I'm working on a basic Vulkan renderer that's presently relying on Win32 raw mouse input for camera pitch and yaw. It's all very basic, but what I've noticed is that at higher frame rates, I'm ...
pdm's user avatar
  • 103
0 votes
1 answer
581 views

I want to detect when a UI object it dragged and released on top of a game object. The drags starts on a sprite on the canvas outside of the game object. I tried using ...
mustafa candan's user avatar
3 votes
1 answer
384 views

My Win32/DirectX 11.1 project requires that I render the mouse cursor myself rather than use the system cursor. This is easy enough; however, I've found that there is a human-perceptible latency when ...
Matthew Elkins's user avatar
1 vote
2 answers
1k views

I am working on a 2D game with a spatial node (a 3d node) inside a viewport. Nodes within the viewport should be able to detect user input from what I can find online, but for some reason it doesn't ...
Qusk2's user avatar
  • 11
0 votes
0 answers
224 views

I'm working on a twin stick shooter where the player looks at the mouse cursor. Like most I use the absolute mouse position and the player's position to determine the direction and derive an angle. ...
mjx's user avatar
  • 1
1 vote
1 answer
343 views

How can I implement snapping via code? I have this 2d circle that the players rotate via drag and it works like a rotating dial. The best way to describe what I wanted to achieve is similar to a clock ...
PeytonFarquhar's user avatar

15 30 50 per page
1
2 3 4 5
18