#Making a pseudo cursor
1 messages · Page 1 of 1 (latest)
Is the cursor 2D or 3D
Wdym by "moving the player moves the cursor", isnt it supposed to be tied to the mouse position (with a distance limit)
** You are now Level 1! **
but half-way kinda
basically, if you move the mouse, it just moves the mouse
if you move the player, the cursor would move with the player
but you said it takes input from the mouse?
yes, because you cannot directly control the mouse through scripts apparently
which is why the pseudo cursor is needed to behave like that
Well your explaination is kinda self contradicting. I am going to take a wild guess and say that what you are trying to do is to limit how far the mouse can get from the player?
yea
idk if maybe I explained it wrong, maybe a video would've been better
to be more blunt, i want to recreate the cursor system used in hotline miami
from just checking a little bit, it seems like the cursor is a fixed distance from the player
is that all you want?
The cursor has no affect on the "fake cursor" it just rotates the player to look in the right direction?
@boreal dock
No, I already have something which will rotate the character to face the cursor
as seen in the video, the cursor hits a point where it can no longer move, aswell as moving with the character
@boreal dock
- Use https://create.roblox.com/docs/reference/engine/classes/UserInputService#MouseIconEnabled to hide the default cursor
- Use https://create.roblox.com/docs/reference/engine/classes/UserInputService#MouseBehavior to lock the cursor to the center of the screen
- Use https://create.roblox.com/docs/reference/engine/classes/UserInputService#InputChanged to detect movement of the mouse
Whenever the cursor moves by some amount, move your pseudo cursor by the same amount
From there you can apply whatever transformations or restrictions you want on the psueo cursor's position
cursor hidden, and locked within the constraints of the window, thank you so much!
now to do the hard part... learning how to make the pseudo cursor 